Commit 8ec328fd authored by Alberts Muktupāvels's avatar Alberts Muktupāvels

sticky-notes: use gp_applet_show_help to show help

parent 96212dd0
......@@ -35,8 +35,6 @@
#define STICKYNOTES_ICON_SIZE 8
static void response_cb (GtkWidget *dialog, gint id, gpointer data);
static void
popup_create_cb (GSimpleAction *action,
GVariant *parameter,
......@@ -186,6 +184,17 @@ stickynote_show_popup_menu (GtkWidget *widget,
return FALSE;
}
static void
response_cb (GtkWidget *dialog,
gint response_id,
StickyNote *self)
{
if (response_id == GTK_RESPONSE_HELP)
gp_applet_show_help (GP_APPLET (self->applet), "stickynotes-settings-individual");
else if (response_id == GTK_RESPONSE_CLOSE)
gtk_widget_hide (dialog);
}
static gboolean
stickynote_toggle_lock_cb (GtkWidget *widget,
StickyNote *note)
......@@ -644,18 +653,6 @@ void stickynote_change_properties (StickyNote *note)
stickynotes_save (applet);
}
static void
response_cb (GtkWidget *dialog, gint id, gpointer data)
{
if (id == GTK_RESPONSE_HELP)
gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (dialog)),
"help:stickynotes_applet/stickynotes-settings-individual",
gtk_get_current_event_time (),
NULL);
else if (id == GTK_RESPONSE_CLOSE)
gtk_widget_hide (dialog);
}
/* Check if a sticky note is empty */
gboolean stickynote_get_empty(const StickyNote *note)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment