Don't store the cell renderer in AppearanceData, it is only needed by

2007-07-29  Denis Washington  <denisw@svn.gnome.org>

	* appearance.h:
	* appearance-desktop.c: (desktop_init):
	Don't store the cell renderer in AppearanceData, it is only needed by
	desktop_init().

svn path=/trunk/; revision=7927
This commit is contained in:
Denis Washington 2007-07-29 17:45:51 +00:00 committed by Denis Washington
parent a316e82ccc
commit 11cd98e2d1
3 changed files with 12 additions and 8 deletions

View file

@ -1,3 +1,10 @@
2007-07-29 Denis Washington <denisw@svn.gnome.org>
* appearance.h:
* appearance-desktop.c: (desktop_init):
Don't store the cell renderer in AppearanceData, it is only needed by
desktop_init().
2007-07-29 Jens Granseuer <jensgr@gmx.net>
* appearance-themes.c: (theme_message_area_update), (themes_init):

View file

@ -923,6 +923,7 @@ desktop_init (AppearanceData *data,
const gchar **uris)
{
GtkWidget *add_button;
GtkCellRenderer *cr;
GtkFileFilter *filter;
g_object_set (gtk_settings_get_default (), "gtk-tooltip-timeout", 500, NULL);
@ -979,14 +980,11 @@ desktop_init (AppearanceData *data,
gtk_cell_layout_clear (GTK_CELL_LAYOUT (data->wp_view));
data->wp_cell = cell_renderer_wallpaper_new ();
cr = cell_renderer_wallpaper_new ();
g_object_set (cr, "xpad", 5, "ypad", 5, NULL);
g_object_set (data->wp_cell, "xpad", 5, "ypad", 5, NULL);
gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (data->wp_view),
data->wp_cell,
TRUE);
gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (data->wp_view), data->wp_cell,
gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (data->wp_view), cr, TRUE);
gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (data->wp_view), cr,
"pixbuf", 0,
NULL);

View file

@ -39,7 +39,6 @@ typedef struct {
gboolean wp_update_gconf;
GtkIconView *wp_view;
GtkTreeModel *wp_model;
GtkCellRenderer *wp_cell;
GtkWidget *wp_scpicker;
GtkWidget *wp_pcpicker;
GtkWidget *wp_style_menu;