[gnome-control-center] background: The chooser should have exactly 3 columns



commit 85a0016b7d589c51b230c2f8b7d70790d8c4a4bc
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Dec 19 17:52:26 2013 +0100

    background: The chooser should have exactly 3 columns
    
    The correct way to specify the number of columns is to use
    gtk_icon_view_set_columns.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=720652

 panels/background/cc-background-chooser-dialog.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/panels/background/cc-background-chooser-dialog.c 
b/panels/background/cc-background-chooser-dialog.c
index 61d19d4..f99267b 100644
--- a/panels/background/cc-background-chooser-dialog.c
+++ b/panels/background/cc-background-chooser-dialog.c
@@ -406,6 +406,7 @@ cc_background_chooser_dialog_init (CcBackgroundChooserDialog *chooser)
 
   priv->icon_view = gtk_icon_view_new ();
   gtk_widget_set_hexpand (priv->icon_view, TRUE);
+  gtk_icon_view_set_columns (GTK_ICON_VIEW (priv->icon_view), 3);
   gtk_container_add (GTK_CONTAINER (priv->sw_content), priv->icon_view);
   g_signal_connect (priv->icon_view, "selection-changed", G_CALLBACK (on_selection_changed), chooser);
   g_signal_connect (priv->icon_view, "item-activated", G_CALLBACK (on_item_activated), chooser);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]