mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-28 03:18:41 +00:00
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:
parent
9f635e44ef
commit
b08b22d323
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user