[gnome-software] Some trivial cleanups



commit b4af1bcd1559fceedaf587861b99d808859ecac3
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Aug 26 15:48:01 2013 -0400

    Some trivial cleanups
    
    Set all notebook properties in the ui file, there is no need
    to do this manually in the code.

 src/gnome-software.ui |    1 +
 src/gs-shell.c        |    8 +-------
 2 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/src/gnome-software.ui b/src/gnome-software.ui
index 8afd60c..05966fe 100644
--- a/src/gnome-software.ui
+++ b/src/gnome-software.ui
@@ -286,6 +286,7 @@
             <property name="visible">True</property>
             <property name="can_focus">True</property>
             <property name="show_border">False</property>
+            <property name="show_tabs">False</property>
             <child>
               <object class="GtkScrolledWindow" id="scrolledwindow1">
                 <property name="visible">True</property>
diff --git a/src/gs-shell.c b/src/gs-shell.c
index e8af28a..c2f9a02 100644
--- a/src/gs-shell.c
+++ b/src/gs-shell.c
@@ -258,20 +258,14 @@ gs_shell_setup (GsShell *shell, GsPluginLoader *plugin_loader, GCancellable *can
        gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (),
                                           GS_DATA G_DIR_SEPARATOR_S "icons");
 
-       /* Hide window first so that the dialogue resizes itself without redrawing */
-       main_window = GTK_WIDGET (gtk_builder_get_object (priv->builder, "window_software"));
-
         /* fix up the header bar */
+       main_window = GTK_WIDGET (gtk_builder_get_object (priv->builder, "window_software"));
         widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "header"));
         g_object_ref (widget);
         gtk_container_remove (GTK_CONTAINER (gtk_widget_get_parent (widget)), widget);
         gtk_window_set_titlebar (GTK_WINDOW (main_window), widget);
         g_object_unref (widget);
 
-       /* setup callbacks */
-       widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "notebook_main"));
-       gtk_notebook_set_show_tabs (GTK_NOTEBOOK (widget), FALSE);
-
        /* setup buttons */
        widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "button_back"));
        g_signal_connect (widget, "clicked",


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