[Xfce4-commits] [xfce/exo] 01/01: Replace ExoCellRendererIcon with GtkCellRendererPixbuf to improve the icon chooser appearance (bug #14971)

noreply at xfce.org noreply at xfce.org
Fri Jan 11 04:13:52 CET 2019


This is an automated email from the git hooks/post-receive script.

b   l   u   e   s   a   b   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/exo.

commit c551d0857e0595abb45d118d7c289fe57a44bf14
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Thu Jan 10 22:13:47 2019 -0500

    Replace ExoCellRendererIcon with GtkCellRendererPixbuf to improve the icon chooser appearance (bug #14971)
---
 exo/exo-icon-chooser-dialog.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/exo/exo-icon-chooser-dialog.c b/exo/exo-icon-chooser-dialog.c
index feb54f7..cac5db9 100644
--- a/exo/exo-icon-chooser-dialog.c
+++ b/exo/exo-icon-chooser-dialog.c
@@ -273,13 +273,16 @@ exo_icon_chooser_dialog_init (ExoIconChooserDialog *icon_chooser_dialog)
   gtk_widget_show (priv->icon_chooser);
 
   /* setup the icon renderer */
-  renderer = exo_cell_renderer_icon_new ();
+  renderer = gtk_cell_renderer_pixbuf_new ();
   gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (priv->icon_chooser), renderer, TRUE);
-  gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (priv->icon_chooser), renderer, "icon", EXO_ICON_CHOOSER_MODEL_COLUMN_ICON_NAME, NULL);
+  gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (priv->icon_chooser), renderer, "icon-name", EXO_ICON_CHOOSER_MODEL_COLUMN_ICON_NAME, NULL);
+  g_object_set (G_OBJECT (renderer),
+                  "stock-size", GTK_ICON_SIZE_DIALOG,
+                  "follow-state", TRUE,
+                  NULL);
 
   /* setup the text renderer */
   renderer = g_object_new (GTK_TYPE_CELL_RENDERER_TEXT,
-                           /*"follow-state", TRUE,*/
                            "wrap-mode", PANGO_WRAP_WORD_CHAR,
                            "wrap-width", 104,
                            "xalign", 0.5f,

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list