diff options
author | Srinivasa Ragavan <sragavan@src.gnome.org> | 2008-01-24 16:34:13 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@src.gnome.org> | 2008-01-24 16:34:13 +0800 |
commit | d5ec942afbcd814dbe6f9adaa0bf4d31b7b1b26a (patch) | |
tree | 3414e5e5ecbcbad24beca888e4e22d670ee1a988 /widgets/misc | |
parent | e953820d261cf20176cd62f08b4212a676e8edec (diff) | |
download | gsoc2013-evolution-d5ec942afbcd814dbe6f9adaa0bf4d31b7b1b26a.tar.gz gsoc2013-evolution-d5ec942afbcd814dbe6f9adaa0bf4d31b7b1b26a.tar.zst gsoc2013-evolution-d5ec942afbcd814dbe6f9adaa0bf4d31b7b1b26a.zip |
Cairofication of the preference window's etable.
svn path=/trunk/; revision=34877
Diffstat (limited to 'widgets/misc')
-rw-r--r-- | widgets/misc/ChangeLog | 6 | ||||
-rw-r--r-- | widgets/misc/e-multi-config-dialog.c | 41 |
2 files changed, 6 insertions, 41 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog index c87ee04d38..029e2c20f6 100644 --- a/widgets/misc/ChangeLog +++ b/widgets/misc/ChangeLog @@ -1,3 +1,9 @@ +2008-01-24 Srinivasa Ragavan <sragavan@novell.com> + + * e-multi-config-dialog.c: (canvas_realize), + (e_multi_config_dialog_add_page): Enable for Cairofication of the + settings dialogs's etable. + 2008-01-11 Jeffrey Stedfast <fejj@novell.com> Patch by Jean-Christophe BEGUE to fix bug #329692. diff --git a/widgets/misc/e-multi-config-dialog.c b/widgets/misc/e-multi-config-dialog.c index bd73f1d2de..6ebc66239c 100644 --- a/widgets/misc/e-multi-config-dialog.c +++ b/widgets/misc/e-multi-config-dialog.c @@ -214,45 +214,8 @@ e_multi_config_dialog_class_init (EMultiConfigDialogClass *class) ((color).blue & 0xff00) >> 8) static void -fill_in_pixbufs (EMultiConfigDialog *dialog, int row) -{ - GdkPixbuf *original = e_table_model_value_at (dialog->priv->list_e_table_model, 1, row); - GtkWidget *canvas; - guint32 colors[3]; - int i; - - if (original == NULL) - return; - - canvas = GTK_WIDGET (e_table_scrolled_get_table (E_TABLE_SCROLLED (dialog->priv->list_e_table))->table_canvas); - - colors[0] = RGB_COLOR (canvas->style->bg [GTK_STATE_SELECTED]); - colors[1] = RGB_COLOR (canvas->style->bg [GTK_STATE_ACTIVE]); - colors[2] = RGB_COLOR (canvas->style->base [GTK_STATE_NORMAL]); - - for (i = 0; i < 3; i++) { - GdkPixbuf *pixbuf = gdk_pixbuf_composite_color_simple (original, - gdk_pixbuf_get_width (original), - gdk_pixbuf_get_height (original), - GDK_INTERP_BILINEAR, - 255, - 1, - colors[i], colors[i]); - e_table_model_set_value_at (dialog->priv->list_e_table_model, i + 2, row, pixbuf); - g_object_unref(pixbuf); - } -} - -static void canvas_realize (GtkWidget *widget, EMultiConfigDialog *dialog) { - int i; - int row_count; - - row_count = e_table_model_row_count (dialog->priv->list_e_table_model); - for (i = 0; i < row_count; i++) { - fill_in_pixbufs (dialog, i); - } } @@ -385,10 +348,6 @@ e_multi_config_dialog_add_page (EMultiConfigDialog *dialog, e_table_memory_store_insert (E_TABLE_MEMORY_STORE (priv->list_e_table_model), -1, NULL, title, icon, NULL, NULL, NULL); - if (GTK_WIDGET_REALIZED (e_table_scrolled_get_table (E_TABLE_SCROLLED (dialog->priv->list_e_table))->table_canvas)) { - fill_in_pixbufs (dialog, e_table_model_row_count (priv->list_e_table_model) - 1); - } - page_no = gtk_notebook_append_page (GTK_NOTEBOOK (priv->notebook), create_page_container (description, GTK_WIDGET (page_widget)), NULL); |