diff options
author | Owen Taylor <otaylor@redhat.com> | 1999-01-21 17:27:23 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 1999-01-21 17:27:23 +0000 |
commit | d1d9c5bf04dba452d23169782230962a03097b07 (patch) | |
tree | 44b267cc62b13c4287eafca17a563cd0632f4de8 | |
parent | a46ac625c9f742118338aa89bc557e9b4ffd1e44 (diff) | |
download | gdk-pixbuf-d1d9c5bf04dba452d23169782230962a03097b07.tar.gz |
Pushing and popping the visual/cmap in the init() function does no good,
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...
-rw-r--r-- | ChangeLog | 15 | ||||
-rw-r--r-- | ChangeLog.pre-2-0 | 15 | ||||
-rw-r--r-- | ChangeLog.pre-2-10 | 15 | ||||
-rw-r--r-- | ChangeLog.pre-2-2 | 15 | ||||
-rw-r--r-- | ChangeLog.pre-2-4 | 15 | ||||
-rw-r--r-- | ChangeLog.pre-2-6 | 15 | ||||
-rw-r--r-- | ChangeLog.pre-2-8 | 15 | ||||
-rw-r--r-- | gtk/gtkcolorsel.c | 12 |
8 files changed, 111 insertions, 6 deletions
@@ -1,3 +1,18 @@ +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 diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 9026118ce..a57339555 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,18 @@ +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 diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 9026118ce..a57339555 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,18 @@ +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 diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 9026118ce..a57339555 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,18 @@ +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 diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 9026118ce..a57339555 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,18 @@ +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 diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 9026118ce..a57339555 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,18 @@ +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 diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 9026118ce..a57339555 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,18 @@ +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 diff --git a/gtk/gtkcolorsel.c b/gtk/gtkcolorsel.c index 3f53327de..5c031d1eb 100644 --- a/gtk/gtkcolorsel.c +++ b/gtk/gtkcolorsel.c @@ -1614,9 +1614,6 @@ gtk_color_selection_dialog_init (GtkColorSelectionDialog *colorseldiag) { 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); @@ -1652,9 +1649,6 @@ gtk_color_selection_dialog_init (GtkColorSelectionDialog *colorseldiag) 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 * @@ -1662,8 +1656,14 @@ gtk_color_selection_dialog_new (const gchar *title) { 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); } |