aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/shortcut-bar
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnu.org>2000-04-15 13:33:04 +0800
committerMiguel de Icaza <miguel@src.gnome.org>2000-04-15 13:33:04 +0800
commit463e00c27828985d9a88e6d28c28105d540fb8df (patch)
treec204f1c7fab2b5e69fa1a65e84c909f1954e0be3 /widgets/shortcut-bar
parent9d8f1fa7d535bce1c5000d1fa2c8b48b370c8aaa (diff)
downloadgsoc2013-evolution-463e00c27828985d9a88e6d28c28105d540fb8df.tar.gz
gsoc2013-evolution-463e00c27828985d9a88e6d28c28105d540fb8df.tar.zst
gsoc2013-evolution-463e00c27828985d9a88e6d28c28105d540fb8df.zip
Apply some loving action when it comes to visuals and colormaps. Yes, we
2000-04-15 Miguel de Icaza <miguel@gnu.org> * 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 <lewing@helixcode.com> * e-icon-bar.c (flatten_alpha): update for new gdk-pixbuf. svn path=/trunk/; revision=2452
Diffstat (limited to 'widgets/shortcut-bar')
-rw-r--r--widgets/shortcut-bar/e-shortcut-bar.c13
1 files changed, 11 insertions, 2 deletions
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;
}