diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-08-08 23:05:53 +0200 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-08-08 23:10:00 +0200 |
commit | 9ecfffa830f1afa58fb562f450b79438d3c9b0e1 (patch) | |
tree | d0cec61a044f6a5fc9b5b51817e9333e086bd903 | |
parent | b54fab2b89f6365e4c51cae6bac8580dd53242ed (diff) | |
download | gtk+-9ecfffa830f1afa58fb562f450b79438d3c9b0e1.tar.gz |
Formatting fixes
-rw-r--r-- | gtk/gtkplacessidebar.c | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c index 1f00bda337..0e64cd425f 100644 --- a/gtk/gtkplacessidebar.c +++ b/gtk/gtkplacessidebar.c @@ -2605,7 +2605,7 @@ unmount_mount_cb (GObject *source_object, static void notify_unmount_done (GMountOperation *op, - const gchar *message) + const gchar *message) { GApplication *application; gchar *notification_id; @@ -2618,29 +2618,30 @@ notify_unmount_done (GMountOperation *op, notification_id = g_strdup_printf ("gtk-mount-operation-%p", op); g_application_withdraw_notification (application, notification_id); - if (message != NULL) { - GNotification *unplug; - GIcon *icon; - gchar **strings; - - strings = g_strsplit (message, "\n", 0); - icon = g_themed_icon_new ("media-removable"); - unplug = g_notification_new (strings[0]); - g_notification_set_body (unplug, strings[1]); - g_notification_set_icon (unplug, icon); - - g_application_send_notification (application, notification_id, unplug); - g_object_unref (unplug); - g_object_unref (icon); - g_strfreev (strings); - } + if (message != NULL) + { + GNotification *unplug; + GIcon *icon; + gchar **strings; + + strings = g_strsplit (message, "\n", 0); + icon = g_themed_icon_new ("media-removable"); + unplug = g_notification_new (strings[0]); + g_notification_set_body (unplug, strings[1]); + g_notification_set_icon (unplug, icon); + + g_application_send_notification (application, notification_id, unplug); + g_object_unref (unplug); + g_object_unref (icon); + g_strfreev (strings); + } g_free (notification_id); } static void notify_unmount_show (GMountOperation *op, - const gchar *message) + const gchar *message) { GApplication *application; GNotification *unmount; |