diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2007-03-12 22:07:26 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2007-03-12 22:07:26 +0000 |
commit | 344285a70302edbcda599fa17ba7cf34ae485471 (patch) | |
tree | 92fa863a2f28051eef2a4a93d5befb1fa98580c6 /x11-toolkits/gtk20/files | |
parent | c3d547185c6ade81c81414d383ba734793f1b410 (diff) |
Notes
Diffstat (limited to 'x11-toolkits/gtk20/files')
-rw-r--r-- | x11-toolkits/gtk20/files/patch-gtk_gtkfilechooserbutton.c | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/x11-toolkits/gtk20/files/patch-gtk_gtkfilechooserbutton.c b/x11-toolkits/gtk20/files/patch-gtk_gtkfilechooserbutton.c deleted file mode 100644 index 1fa8a1d47438..000000000000 --- a/x11-toolkits/gtk20/files/patch-gtk_gtkfilechooserbutton.c +++ /dev/null @@ -1,66 +0,0 @@ -Index: gtk/gtkfilechooserbutton.c -=================================================================== ---- gtk/gtkfilechooserbutton.c (revision 17341) -+++ gtk/gtkfilechooserbutton.c (working copy) -@@ -1193,8 +1193,8 @@ - gpointer user_data) - { - gboolean cancelled = handle->cancelled; -- GdkPixbuf *pixbuf; - struct ChangeIconThemeData *data = user_data; -+ GtkTreePath *path; - - if (!g_slist_find (data->button->priv->change_icon_theme_handles, handle)) - goto out; -@@ -1205,29 +1205,33 @@ - if (cancelled || error) - goto out; - -- pixbuf = gtk_file_info_render_icon (info, GTK_WIDGET (data->button), -- data->button->priv->icon_size, NULL); -- -- if (pixbuf) -+ path = gtk_tree_row_reference_get_path (data->row_ref); -+ if (path) - { -- gint width = 0; -- GtkTreeIter iter; -- GtkTreePath *path; -+ GdkPixbuf *pixbuf; - -- width = MAX (width, gdk_pixbuf_get_width (pixbuf)); -+ pixbuf = gtk_file_info_render_icon (info, GTK_WIDGET (data->button), -+ data->button->priv->icon_size, NULL); -+ if (pixbuf) -+ { -+ gint width = 0; -+ GtkTreeIter iter; - -- path = gtk_tree_row_reference_get_path (data->row_ref); -- gtk_tree_model_get_iter (data->button->priv->model, &iter, path); -- gtk_tree_path_free (path); -+ width = MAX (width, gdk_pixbuf_get_width (pixbuf)); - -- gtk_list_store_set (GTK_LIST_STORE (data->button->priv->model), &iter, -- ICON_COLUMN, pixbuf, -- -1); -- g_object_unref (pixbuf); -+ gtk_tree_model_get_iter (data->button->priv->model, &iter, path); - -- g_object_set (data->button->priv->icon_cell, -- "width", width, -- NULL); -+ gtk_list_store_set (GTK_LIST_STORE (data->button->priv->model), &iter, -+ ICON_COLUMN, pixbuf, -+ -1); -+ g_object_unref (pixbuf); -+ -+ g_object_set (data->button->priv->icon_cell, -+ "width", width, -+ NULL); -+ } -+ -+ gtk_tree_path_free (path); - } - - out: |