MidoriAppInstance instance;
- #if !HAVE_HILDON
+ #if !HAVE_HILDON || !HAVE_LIBNOTIFY
gchar* program_notify_send;
#endif
};
#if HAVE_LIBNOTIFY
notify_init ("midori");
+ #else
+ app->program_notify_send = g_find_program_in_path ("notify-send");
#endif
- app->program_notify_send = g_find_program_in_path ("notify-send");
}
static void
#if HAVE_LIBNOTIFY
if (notify_is_initted ())
notify_uninit ();
+ #else
+ katze_assign (app->program_notify_send, NULL);
#endif
- katze_assign (app->program_notify_send, NULL);
G_OBJECT_CLASS (midori_app_parent_class)->finalize (object);
}
sent = notify_notification_show (note, NULL);
g_object_unref (note);
}
- #endif
-
+ #else
/* Fall back to the command line program "notify-send" */
if (!sent && app->program_notify_send)
{
g_free (command);
}
#endif
+ #endif
}