mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
uppsrc: Various minor fixes (thanks mrped)
This commit is contained in:
parent
febbbf7f8b
commit
075b16fcd9
8 changed files with 1 additions and 14 deletions
|
|
@ -342,7 +342,6 @@ void Ctrl::IMCommit(GtkIMContext *context, gchar *str, gpointer user_data)
|
|||
void Ctrl::IMLocation(Ctrl *w)
|
||||
{
|
||||
if(w && w->HasFocusDeep() && focusCtrl && !IsNull(focusCtrl->GetPreedit())) {
|
||||
GdkRectangle r;
|
||||
Rect e = w->GetPreeditScreenRect();
|
||||
Rect q = w->GetScreenRect();
|
||||
GdkRectangle gr;
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ void PopUpList::SetLineCy(int ii, int cy)
|
|||
{
|
||||
ASSERT(cy >= 0 && cy < 32000);
|
||||
word& x = lineinfo.At(ii, 0x7fff);
|
||||
x = x & 0x8000 | cy;
|
||||
x = (x & 0x8000) | cy;
|
||||
if(popup)
|
||||
popup->ac.SetLineCy(ii, cy);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -64,7 +64,6 @@ int ScrollBar::ButtonCount() const
|
|||
}
|
||||
|
||||
void ScrollBar::Layout() {
|
||||
Size sz = GetSize();
|
||||
Set(pagepos);
|
||||
Refresh();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -257,7 +257,6 @@ int RichTxt::GetPos(int x, PageY y, RichContext rc) const
|
|||
RichHotPos RichTxt::GetHotPos(int x, PageY y, int tolerance, RichContext rc) const
|
||||
{
|
||||
int parti = 0;
|
||||
int pos = 0;
|
||||
int ti = 0;
|
||||
if(part.GetCount()) {
|
||||
while(parti < part.GetCount()) {
|
||||
|
|
@ -274,7 +273,6 @@ RichHotPos RichTxt::GetHotPos(int x, PageY y, int tolerance, RichContext rc) con
|
|||
}
|
||||
if(IsTable(parti))
|
||||
ti += 1 + GetTable(parti).GetTableCount();
|
||||
pos += GetPartLength(parti) + 1;
|
||||
parti++;
|
||||
rc = next;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -74,7 +74,6 @@ Size SplashCtrl::MakeLogo(Ctrl& parent, Array<Ctrl>& ctrl)
|
|||
Label& v1 = ctrl.Create<Label>();
|
||||
l.SetImage(logo);
|
||||
Size sz = Size(isz.cx, isz.cy/* + 80*/);
|
||||
int total = 0;
|
||||
|
||||
Index<String> classes;
|
||||
Index<String> items;
|
||||
|
|
|
|||
|
|
@ -161,10 +161,6 @@ String NaturalDeQtf(const char *s) {
|
|||
return String(r);
|
||||
}
|
||||
|
||||
static int sSplitT(int c) {
|
||||
return c == ';' || c == '<' || c == '>' || c == ',';
|
||||
}
|
||||
|
||||
String TopicEditor::GetLang() const
|
||||
{
|
||||
int q = topicpath.ReverseFind('@');
|
||||
|
|
|
|||
|
|
@ -404,7 +404,6 @@ void Indexer::SchedulerThread()
|
|||
return job;
|
||||
};
|
||||
int blitz_index = 0;
|
||||
int c_blitz_index = 0;
|
||||
for(const auto& pf : pkg.value) {
|
||||
FileAnnotation0 f;
|
||||
{
|
||||
|
|
|
|||
|
|
@ -81,7 +81,6 @@ String CleanupId(const char *s)
|
|||
return memcmp(s, "operator", 8) == 0;
|
||||
};
|
||||
|
||||
const char *b = s;
|
||||
String id;
|
||||
while(iscid(*s) || *s == ':') {
|
||||
id.Cat(*s++);
|
||||
|
|
@ -94,8 +93,6 @@ String CleanupId(const char *s)
|
|||
break;
|
||||
}
|
||||
SkipT(); // Skip template arguments like in Foo<Bar>::Method() -> Foo::Method
|
||||
b = s;
|
||||
|
||||
}
|
||||
}
|
||||
if(id == s_attribute) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue