summaryrefslogtreecommitdiff
path: root/src/caja-application.c
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2016-10-23 18:39:57 -0400
committerlukefromdc <[email protected]>2016-10-23 18:39:57 -0400
commit30b7ce2e63080fca1db9bdf2dd82955ce7ad2cc7 (patch)
tree742ba07c746dc3ecf9a658f331c6036e96f0d1fd /src/caja-application.c
parentedb2cc870fa87cf1c57a61c0af5c578461b20a20 (diff)
downloadcaja-30b7ce2e63080fca1db9bdf2dd82955ce7ad2cc7.tar.bz2
caja-30b7ce2e63080fca1db9bdf2dd82955ce7ad2cc7.tar.xz
Refactor notification code to remove duplicate function
The desktop icon eject code required a function in libcaja-private so we no longer need it in caja-application.c
Diffstat (limited to 'src/caja-application.c')
-rw-r--r--src/caja-application.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/caja-application.c b/src/caja-application.c
index e1d8a892..dff984f3 100644
--- a/src/caja-application.c
+++ b/src/caja-application.c
@@ -159,36 +159,8 @@ struct _CajaApplicationPriv {
gboolean force_desktop;
gboolean autostart;
gchar *geometry;
- NotifyNotification *unmount_notify;
};
-void
-caja_application_notify_unmount_show (CajaApplication *application,
- const gchar *message)
-{
- gchar **strings;
-
- strings = g_strsplit (message, "\n", 0);
-
- if (application->priv->unmount_notify == NULL) {
- application->priv->unmount_notify =
- notify_notification_new (strings[0], strings[1],
- "media-removable");
-
- notify_notification_set_hint (application->priv->unmount_notify,
- "transient", g_variant_new_boolean (TRUE));
- notify_notification_set_urgency (application->priv->unmount_notify,
- NOTIFY_URGENCY_CRITICAL);
- } else {
- notify_notification_update (application->priv->unmount_notify,
- strings[0], strings[1],
- "media-removable");
- }
-
- notify_notification_show (application->priv->unmount_notify, NULL);
- g_strfreev (strings);
-}
-
#else
G_DEFINE_TYPE (CajaApplication, caja_application, G_TYPE_OBJECT);