зеркало из https://github.com/mozilla/pjs.git
made the gdkcolor to nscolor code a tad cleaner. removed the
gtk_layout_freeze and gtk_layout_thaw calls as the object being resized was not always a layout.
This commit is contained in:
Родитель
bf153d6a2f
Коммит
1500b9eacf
|
@ -22,7 +22,7 @@
|
|||
static NS_DEFINE_IID(kILookAndFeelIID, NS_ILOOKANDFEEL_IID);
|
||||
|
||||
#define GDK_COLOR_TO_NS_RGB(c) \
|
||||
((nscolor) ((255 << 24) | ((c.blue)<<16) | ((c.green)<<8) | (c.blue)))
|
||||
((nscolor) NS_RGB(c.red, c.green, c.blue))
|
||||
|
||||
NS_IMPL_ISUPPORTS(nsLookAndFeel, kILookAndFeelIID);
|
||||
|
||||
|
|
|
@ -770,8 +770,6 @@ void DoResize(GtkWidget *w, GtkAllocation *allocation, gpointer data)
|
|||
// g_print("DoResized called\n");
|
||||
nsWindow *win = (nsWindow*)data;
|
||||
|
||||
gtk_layout_freeze(GTK_LAYOUT(w));
|
||||
|
||||
nsRect bounds;
|
||||
bounds.width = allocation->width;
|
||||
bounds.height = allocation->height;
|
||||
|
@ -790,7 +788,6 @@ void DoResize(GtkWidget *w, GtkAllocation *allocation, gpointer data)
|
|||
}
|
||||
|
||||
win->SetResized(PR_TRUE);
|
||||
gtk_layout_thaw(GTK_LAYOUT(w));
|
||||
}
|
||||
|
||||
NS_METHOD nsWindow::SetMenuBar(nsIMenuBar * aMenuBar)
|
||||
|
|
Загрузка…
Ссылка в новой задаче