[gtk+] Trivial optimisation in GtkPrinterOptionWidget



commit f737246a6aacc3723cd3bf79856872ea09ce3fad
Author: Marek Kašík <mkasik redhat com>
Date:   Wed Jun 8 18:22:31 2011 +0100

    Trivial optimisation in GtkPrinterOptionWidget
    
    Signed-off-by: Richard Hughes <richard hughsie com>

 gtk/gtkprinteroptionwidget.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkprinteroptionwidget.c b/gtk/gtkprinteroptionwidget.c
index 88e49c6..acd2926 100644
--- a/gtk/gtkprinteroptionwidget.c
+++ b/gtk/gtkprinteroptionwidget.c
@@ -679,7 +679,6 @@ construct_widgets (GtkPrinterOptionWidget *widget)
   char *text;
   int i;
   GSList *group;
-  GtkWidget *hbox;
 
   source = priv->source;
   
@@ -833,10 +832,8 @@ construct_widgets (GtkPrinterOptionWidget *widget)
     case GTK_PRINTER_OPTION_TYPE_INFO:
       priv->info_label = gtk_label_new (NULL);
       gtk_label_set_selectable (GTK_LABEL (priv->info_label), TRUE);
-      hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
-      gtk_box_pack_start (GTK_BOX (hbox), priv->info_label, FALSE, TRUE, 0);
-      gtk_widget_show_all (hbox);
-      gtk_box_pack_start (GTK_BOX (widget), hbox, TRUE, TRUE, 0);
+      gtk_widget_show (priv->info_label);
+      gtk_box_pack_start (GTK_BOX (widget), priv->info_label, FALSE, TRUE, 0);
 
       text = g_strdup_printf ("%s:", source->display_text);
       priv->label = gtk_label_new_with_mnemonic (text);



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