summaryrefslogtreecommitdiff
path: root/gtk/gtkmountoperation.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-03-22 11:45:19 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-03-22 11:45:19 -0400
commitb55aa154e636237fc7ffbb488bda864cb7c2f650 (patch)
treebeeede812dfe8b190ef035d6b567743fd4dbb1d4 /gtk/gtkmountoperation.c
parent03417cf8646aebf85301f052587329afae2a8725 (diff)
downloadgtk+-b55aa154e636237fc7ffbb488bda864cb7c2f650.tar.gz
mount operation: Minor formatting cleanup
The pattern for g_object_add_weak_pointer calls is to have the same expression in both arguments.
Diffstat (limited to 'gtk/gtkmountoperation.c')
-rw-r--r--gtk/gtkmountoperation.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/gtk/gtkmountoperation.c b/gtk/gtkmountoperation.c
index 89a0882f60..4d7a87b0a4 100644
--- a/gtk/gtkmountoperation.c
+++ b/gtk/gtkmountoperation.c
@@ -1436,13 +1436,10 @@ create_show_processes_dialog (GtkMountOperation *op,
gtk_box_pack_start (GTK_BOX (content_area), vbox, TRUE, TRUE, 0);
if (secondary != NULL)
- {
- s = g_strdup_printf ("<big><b>%s</b></big>\n\n%s", primary, secondary);
- }
+ s = g_strdup_printf ("<big><b>%s</b></big>\n\n%s", primary, secondary);
else
- {
- s = g_strdup_printf ("%s", primary);
- }
+ s = g_strdup_printf ("%s", primary);
+
g_free (primary);
label = gtk_label_new (NULL);
gtk_label_set_markup (GTK_LABEL (label), s);
@@ -1518,8 +1515,8 @@ create_show_processes_dialog (GtkMountOperation *op,
priv->process_list_store = list_store;
priv->process_tree_view = tree_view;
/* set pointers to NULL when dialog goes away */
- g_object_add_weak_pointer (G_OBJECT (list_store), (gpointer *) &priv->process_list_store);
- g_object_add_weak_pointer (G_OBJECT (tree_view), (gpointer *) &priv->process_tree_view);
+ g_object_add_weak_pointer (G_OBJECT (priv->process_list_store), (gpointer *) &priv->process_list_store);
+ g_object_add_weak_pointer (G_OBJECT (priv->process_tree_view), (gpointer *) &priv->process_tree_view);
g_object_unref (list_store);
g_object_ref (op);