[evolution] e-table: Don't push/pop colormaps
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] e-table: Don't push/pop colormaps
- Date: Fri, 29 Oct 2010 18:41:24 +0000 (UTC)
commit 8563661b4e952167e01e21252b4b72e524b2eae4
Author: Benjamin Otte <otte redhat com>
Date: Thu Oct 21 11:31:18 2010 +0200
e-table: Don't push/pop colormaps
It's not necessary anymore.
widgets/table/e-table-field-chooser.c | 3 ---
widgets/table/e-table-header-item.c | 2 --
widgets/table/e-table.c | 4 ----
widgets/table/e-tree.c | 4 ----
4 files changed, 0 insertions(+), 13 deletions(-)
---
diff --git a/widgets/table/e-table-field-chooser.c b/widgets/table/e-table-field-chooser.c
index cad87e7..f0e3ece 100644
--- a/widgets/table/e-table-field-chooser.c
+++ b/widgets/table/e-table-field-chooser.c
@@ -183,8 +183,6 @@ e_table_field_chooser_init (ETableFieldChooser *etfc)
gtk_widget_set_size_request (widget, -1, 250);
gtk_box_pack_start (GTK_BOX (etfc), widget, TRUE, TRUE, 0);
- gtk_widget_push_colormap (gdk_rgb_get_colormap ());
-
etfc->rect = gnome_canvas_item_new (gnome_canvas_root ( GNOME_CANVAS ( etfc->canvas ) ),
gnome_canvas_rect_get_type (),
"x1", (gdouble) 0,
@@ -215,7 +213,6 @@ e_table_field_chooser_init (ETableFieldChooser *etfc)
G_CALLBACK (allocate_callback),
etfc);
- gtk_widget_pop_colormap ();
gtk_widget_show_all (widget);
}
diff --git a/widgets/table/e-table-header-item.c b/widgets/table/e-table-header-item.c
index e1c6c57..5135c69 100644
--- a/widgets/table/e-table-header-item.c
+++ b/widgets/table/e-table-header-item.c
@@ -474,7 +474,6 @@ make_shaped_window_from_xpm (const gchar **xpm)
gdk_pixbuf_render_pixmap_and_mask (pixbuf, &pixmap, &bitmap, 128);
g_object_unref (pixbuf);
- gtk_widget_push_colormap (gdk_rgb_get_colormap ());
win = gtk_window_new (GTK_WINDOW_POPUP);
gtk_window_set_type_hint (GTK_WINDOW (win), GDK_WINDOW_TYPE_HINT_NOTIFICATION);
@@ -482,7 +481,6 @@ make_shaped_window_from_xpm (const gchar **xpm)
gtk_widget_realize (win);
gtk_container_add (GTK_CONTAINER (win), pix);
gtk_widget_shape_combine_mask (win, bitmap, 0, 0);
- gtk_widget_pop_colormap ();
g_object_unref (pixmap);
g_object_unref (bitmap);
diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c
index 6f17c67..4cbd655 100644
--- a/widgets/table/e-table.c
+++ b/widgets/table/e-table.c
@@ -1647,8 +1647,6 @@ et_real_construct (ETable *e_table, ETableModel *etm, ETableExtras *ete,
e_table->model = etm;
g_object_ref (etm);
- gtk_widget_push_colormap (gdk_rgb_get_colormap ());
-
connect_header (e_table, state);
e_table->horizontal_scrolling = specification->horizontal_scrolling;
e_table->horizontal_resize = specification->horizontal_resize;
@@ -1713,8 +1711,6 @@ et_real_construct (ETable *e_table, ETableModel *etm, ETableExtras *ete,
GTK_FILL | GTK_EXPAND,
0, 0);
- gtk_widget_pop_colormap ();
-
g_object_unref (ete);
return e_table;
diff --git a/widgets/table/e-tree.c b/widgets/table/e-tree.c
index d69a111..01db243 100644
--- a/widgets/table/e-tree.c
+++ b/widgets/table/e-tree.c
@@ -1542,8 +1542,6 @@ et_real_construct (ETree *e_tree, ETreeModel *etm, ETableExtras *ete,
et_connect_to_etta (e_tree);
- gtk_widget_push_colormap (gdk_rgb_get_colormap ());
-
e_tree->priv->sorter = e_sorter_new ();
g_object_set (e_tree->priv->selection,
@@ -1592,8 +1590,6 @@ et_real_construct (ETree *e_tree, ETreeModel *etm, ETableExtras *ete,
GTK_FILL | GTK_EXPAND,
0, 0);
- gtk_widget_pop_colormap ();
-
g_object_unref (ete);
return e_tree != NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]