From 463e00c27828985d9a88e6d28c28105d540fb8df Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Sat, 15 Apr 2000 05:33:04 +0000 Subject: Apply some loving action when it comes to visuals and colormaps. Yes, we 2000-04-15 Miguel de Icaza * e-shortcut-bar.c (e_shortcut_bar_add_group): Apply some loving action when it comes to visuals and colormaps. Yes, we got one of those machines --again--. Sigh. This is what you get when you have been away from the Indy. The whole thing is breaking left and right. Hopefully, Gtk 1.4 fixes all of this, by always running in the slowest visual it can find. 2000-04-11 Larry Ewing * e-icon-bar.c (flatten_alpha): update for new gdk-pixbuf. svn path=/trunk/; revision=2452 --- widgets/shortcut-bar/e-shortcut-bar.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'widgets') diff --git a/widgets/shortcut-bar/e-shortcut-bar.c b/widgets/shortcut-bar/e-shortcut-bar.c index daa6bfde59..6fc50dd41a 100644 --- a/widgets/shortcut-bar/e-shortcut-bar.c +++ b/widgets/shortcut-bar/e-shortcut-bar.c @@ -191,6 +191,9 @@ e_shortcut_bar_add_group (EShortcutBar *shortcut_bar, gchar *group_name) g_return_val_if_fail (E_IS_SHORTCUT_BAR (shortcut_bar), -1); g_return_val_if_fail (group_name != NULL, -1); + gtk_widget_push_colormap (gdk_rgb_get_cmap ()); + gtk_widget_push_visual (gdk_rgb_get_visual ()); + group_num = shortcut_bar->groups->len; g_array_append_val (shortcut_bar->groups, tmp_group); @@ -199,8 +202,12 @@ e_shortcut_bar_add_group (EShortcutBar *shortcut_bar, gchar *group_name) group->vscrolled_bar = e_vscrolled_bar_new (NULL); gtk_widget_show (group->vscrolled_bar); - gtk_signal_connect (GTK_OBJECT (E_VSCROLLED_BAR (group->vscrolled_bar)->up_button), "pressed", GTK_SIGNAL_FUNC (e_shortcut_bar_stop_editing), shortcut_bar); - gtk_signal_connect (GTK_OBJECT (E_VSCROLLED_BAR (group->vscrolled_bar)->down_button), "pressed", GTK_SIGNAL_FUNC (e_shortcut_bar_stop_editing), shortcut_bar); + gtk_signal_connect ( + GTK_OBJECT (E_VSCROLLED_BAR (group->vscrolled_bar)->up_button), + "pressed", GTK_SIGNAL_FUNC (e_shortcut_bar_stop_editing), shortcut_bar); + gtk_signal_connect ( + GTK_OBJECT (E_VSCROLLED_BAR (group->vscrolled_bar)->down_button), + "pressed", GTK_SIGNAL_FUNC (e_shortcut_bar_stop_editing), shortcut_bar); group->icon_bar = e_icon_bar_new (); gtk_widget_show (group->icon_bar); @@ -246,6 +253,8 @@ e_shortcut_bar_add_group (EShortcutBar *shortcut_bar, gchar *group_name) e_group_bar_add_group (E_GROUP_BAR (shortcut_bar), group->vscrolled_bar, button, -1); + gtk_widget_pop_visual (); + gtk_widget_pop_colormap (); return group_num; } -- cgit