+Thu Jan 21 12:20:51 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkcolorsel.c (gtk_color_selection_dialog_new):
+ Pushing and popping the visual/cmap in the init()
+ function does no good, because the window itself needs
+ to be create with that visual/cmap.
+
+ So do it in the new() function instead.
+
+ This will require people doing gtk_widget_new() to do
+ the push/pop themselves, but I don't see any way around
+ it other than digging in and tweaking the window
+ widget's colormap and visual ourselves, which
+ is highly non-kosher, but would be safe...
+
Thu Jan 21 16:04:35 1999 Timur Bakeyev <mc@bat.ru>
* gtk/gtkrc.c (gtk_rc_init): It was reported by Owen Taylor
+Thu Jan 21 12:20:51 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkcolorsel.c (gtk_color_selection_dialog_new):
+ Pushing and popping the visual/cmap in the init()
+ function does no good, because the window itself needs
+ to be create with that visual/cmap.
+
+ So do it in the new() function instead.
+
+ This will require people doing gtk_widget_new() to do
+ the push/pop themselves, but I don't see any way around
+ it other than digging in and tweaking the window
+ widget's colormap and visual ourselves, which
+ is highly non-kosher, but would be safe...
+
Thu Jan 21 16:04:35 1999 Timur Bakeyev <mc@bat.ru>
* gtk/gtkrc.c (gtk_rc_init): It was reported by Owen Taylor
+Thu Jan 21 12:20:51 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkcolorsel.c (gtk_color_selection_dialog_new):
+ Pushing and popping the visual/cmap in the init()
+ function does no good, because the window itself needs
+ to be create with that visual/cmap.
+
+ So do it in the new() function instead.
+
+ This will require people doing gtk_widget_new() to do
+ the push/pop themselves, but I don't see any way around
+ it other than digging in and tweaking the window
+ widget's colormap and visual ourselves, which
+ is highly non-kosher, but would be safe...
+
Thu Jan 21 16:04:35 1999 Timur Bakeyev <mc@bat.ru>
* gtk/gtkrc.c (gtk_rc_init): It was reported by Owen Taylor
+Thu Jan 21 12:20:51 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkcolorsel.c (gtk_color_selection_dialog_new):
+ Pushing and popping the visual/cmap in the init()
+ function does no good, because the window itself needs
+ to be create with that visual/cmap.
+
+ So do it in the new() function instead.
+
+ This will require people doing gtk_widget_new() to do
+ the push/pop themselves, but I don't see any way around
+ it other than digging in and tweaking the window
+ widget's colormap and visual ourselves, which
+ is highly non-kosher, but would be safe...
+
Thu Jan 21 16:04:35 1999 Timur Bakeyev <mc@bat.ru>
* gtk/gtkrc.c (gtk_rc_init): It was reported by Owen Taylor
+Thu Jan 21 12:20:51 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkcolorsel.c (gtk_color_selection_dialog_new):
+ Pushing and popping the visual/cmap in the init()
+ function does no good, because the window itself needs
+ to be create with that visual/cmap.
+
+ So do it in the new() function instead.
+
+ This will require people doing gtk_widget_new() to do
+ the push/pop themselves, but I don't see any way around
+ it other than digging in and tweaking the window
+ widget's colormap and visual ourselves, which
+ is highly non-kosher, but would be safe...
+
Thu Jan 21 16:04:35 1999 Timur Bakeyev <mc@bat.ru>
* gtk/gtkrc.c (gtk_rc_init): It was reported by Owen Taylor
+Thu Jan 21 12:20:51 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkcolorsel.c (gtk_color_selection_dialog_new):
+ Pushing and popping the visual/cmap in the init()
+ function does no good, because the window itself needs
+ to be create with that visual/cmap.
+
+ So do it in the new() function instead.
+
+ This will require people doing gtk_widget_new() to do
+ the push/pop themselves, but I don't see any way around
+ it other than digging in and tweaking the window
+ widget's colormap and visual ourselves, which
+ is highly non-kosher, but would be safe...
+
Thu Jan 21 16:04:35 1999 Timur Bakeyev <mc@bat.ru>
* gtk/gtkrc.c (gtk_rc_init): It was reported by Owen Taylor
+Thu Jan 21 12:20:51 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkcolorsel.c (gtk_color_selection_dialog_new):
+ Pushing and popping the visual/cmap in the init()
+ function does no good, because the window itself needs
+ to be create with that visual/cmap.
+
+ So do it in the new() function instead.
+
+ This will require people doing gtk_widget_new() to do
+ the push/pop themselves, but I don't see any way around
+ it other than digging in and tweaking the window
+ widget's colormap and visual ourselves, which
+ is highly non-kosher, but would be safe...
+
Thu Jan 21 16:04:35 1999 Timur Bakeyev <mc@bat.ru>
* gtk/gtkrc.c (gtk_rc_init): It was reported by Owen Taylor
{
GtkWidget *action_area, *frame;
- gtk_widget_push_visual (gdk_rgb_get_visual ());
- gtk_widget_push_colormap (gdk_rgb_get_cmap ());
-
colorseldiag->main_vbox = gtk_vbox_new (FALSE, 10);
gtk_container_set_border_width (GTK_CONTAINER (colorseldiag), 10);
gtk_container_add (GTK_CONTAINER (colorseldiag), colorseldiag->main_vbox);
GTK_WIDGET_SET_FLAGS (colorseldiag->help_button, GTK_CAN_DEFAULT);
gtk_box_pack_start (GTK_BOX (action_area), colorseldiag->help_button, TRUE, TRUE, 0);
gtk_widget_show (colorseldiag->help_button);
-
- gtk_widget_pop_colormap ();
- gtk_widget_pop_visual ();
}
GtkWidget *
{
GtkColorSelectionDialog *colorseldiag;
+ gtk_widget_push_visual (gdk_rgb_get_visual ());
+ gtk_widget_push_colormap (gdk_rgb_get_cmap ());
+
colorseldiag = gtk_type_new (gtk_color_selection_dialog_get_type ());
gtk_window_set_title (GTK_WINDOW (colorseldiag), title);
+ gtk_widget_pop_colormap ();
+ gtk_widget_pop_visual ();
+
return GTK_WIDGET (colorseldiag);
}