[gnome-software/wip/installed_updates: 7/17] update dialog: Remove a local variable



commit 3da3a8dee15629b3fdcedd168d343e1a1acc82b3
Author: Kalev Lember <kalevlember gmail com>
Date:   Mon Apr 28 15:10:19 2014 +0200

    update dialog: Remove a local variable

 src/gs-update-dialog.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/gs-update-dialog.c b/src/gs-update-dialog.c
index 9d9bee2..099a306 100644
--- a/src/gs-update-dialog.c
+++ b/src/gs-update-dialog.c
@@ -126,12 +126,10 @@ gs_update_dialog_set_app (GsUpdateDialog *dialog, GsApp *app)
        /* set update description */
        if (kind == GS_APP_KIND_OS_UPDATE) {
                GPtrArray *related;
-               GtkListBox *list_box;
                guint i;
                GtkWidget *row, *label;
 
-               list_box = GTK_LIST_BOX (priv->list_box);
-               gs_container_remove_all (GTK_CONTAINER (list_box));
+               gs_container_remove_all (GTK_CONTAINER (priv->list_box));
                related = gs_app_get_related (app);
                for (i = 0; i < related->len; i++) {
                        app_related = g_ptr_array_index (related, i);
@@ -168,7 +166,7 @@ gs_update_dialog_set_app (GsUpdateDialog *dialog, GsApp *app)
                        gtk_widget_set_valign (label, GTK_ALIGN_CENTER);
                        gtk_box_pack_start (GTK_BOX (row), label, FALSE, FALSE, 0);
                        gtk_widget_show_all (row);
-                       gtk_list_box_insert (list_box,row, -1);
+                       gtk_list_box_insert (GTK_LIST_BOX (priv->list_box), row, -1);
                }
        }
 }


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