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:
pavlov%pavlov.net 1998-11-18 03:58:54 +00:00
parent 9f635e44ef
commit b08b22d323
2 changed files with 1 additions and 4 deletions

View File

@ -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);

View File

@ -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)