Eliminate 'send' flag from midori_app_send_notification
The declaration is misplaced and the logic actually makes no sense.
This commit is contained in:
parent
ca2582c5e3
commit
fb3fb594a9
1 changed files with 3 additions and 7 deletions
|
@ -1199,21 +1199,18 @@ midori_app_send_notification (MidoriApp* app,
|
||||||
#if HAVE_HILDON
|
#if HAVE_HILDON
|
||||||
hildon_banner_show_information_with_markup (GTK_WIDGET (app->browser),
|
hildon_banner_show_information_with_markup (GTK_WIDGET (app->browser),
|
||||||
"midori", message);
|
"midori", message);
|
||||||
#else
|
#elif HAVE_LIBNOTIFY
|
||||||
gboolean sent = FALSE;
|
|
||||||
|
|
||||||
#if HAVE_LIBNOTIFY
|
|
||||||
if (notify_is_initted ())
|
if (notify_is_initted ())
|
||||||
{
|
{
|
||||||
NotifyNotification* note;
|
NotifyNotification* note;
|
||||||
|
|
||||||
note = notify_notification_new (title, message, "midori", NULL);
|
note = notify_notification_new (title, message, "midori", NULL);
|
||||||
sent = notify_notification_show (note, NULL);
|
notify_notification_show (note, NULL);
|
||||||
g_object_unref (note);
|
g_object_unref (note);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
/* Fall back to the command line program "notify-send" */
|
/* Fall back to the command line program "notify-send" */
|
||||||
if (!sent && app->program_notify_send)
|
if (app->program_notify_send)
|
||||||
{
|
{
|
||||||
gchar* msgq = g_shell_quote (message);
|
gchar* msgq = g_shell_quote (message);
|
||||||
gchar* titleq = g_shell_quote (title);
|
gchar* titleq = g_shell_quote (title);
|
||||||
|
@ -1227,5 +1224,4 @@ midori_app_send_notification (MidoriApp* app,
|
||||||
g_free (command);
|
g_free (command);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue