diff options
Diffstat (limited to 'stickynotes')
-rw-r--r-- | stickynotes/stickynotes.c | 6 | ||||
-rw-r--r-- | stickynotes/stickynotes_applet.c | 2 | ||||
-rw-r--r-- | stickynotes/stickynotes_applet_callbacks.c | 11 |
3 files changed, 12 insertions, 7 deletions
diff --git a/stickynotes/stickynotes.c b/stickynotes/stickynotes.c index 7042e2dca..d69e1a496 100644 --- a/stickynotes/stickynotes.c +++ b/stickynotes/stickynotes.c @@ -22,7 +22,6 @@ #include <X11/Xatom.h> #include <gdk/gdkx.h> #define WNCK_I_KNOW_THIS_IS_UNSTABLE 1 -#include <libgnome/libgnome.h> #include <libgnomeui/libgnomeui.h> #include <libwnck/libwnck.h> #include <string.h> @@ -354,7 +353,10 @@ static void response_cb (GtkWidget *dialog, gint id, gpointer data) { if (id == GTK_RESPONSE_HELP) - gnome_help_display ("stickynotes_applet", "stickynotes-settings-individual", NULL); + gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (dialog)), + "ghelp:stickynotes_applet?stickynotes-settings-individual", + gtk_get_current_event_time (), + NULL); else gtk_widget_hide (dialog); } diff --git a/stickynotes/stickynotes_applet.c b/stickynotes/stickynotes_applet.c index 7b868492a..0745680e7 100644 --- a/stickynotes/stickynotes_applet.c +++ b/stickynotes/stickynotes_applet.c @@ -25,8 +25,6 @@ #include <gtk/gtk.h> #include <libgnomeui/gnome-client.h> -#include <libgnomeui/gnome-icon-theme.h> -#include <libgnomeui/gnome-window-icon.h> StickyNotes *stickynotes = NULL; diff --git a/stickynotes/stickynotes_applet_callbacks.c b/stickynotes/stickynotes_applet_callbacks.c index f78e42198..cbc0dd14e 100644 --- a/stickynotes/stickynotes_applet_callbacks.c +++ b/stickynotes/stickynotes_applet_callbacks.c @@ -22,7 +22,6 @@ #include "stickynotes_applet_callbacks.h" #include "stickynotes.h" #include <gdk/gdkkeysyms.h> -#include <libgnomeui/gnome-help.h> #include <X11/Xatom.h> #include <gdk/gdkx.h> @@ -341,7 +340,10 @@ void menu_preferences_cb(BonoboUIComponent *uic, StickyNotesApplet *applet, cons void menu_help_cb(BonoboUIComponent *uic, StickyNotesApplet *applet, const gchar *verbname) { GError *error = NULL; - gnome_help_display_on_screen("stickynotes_applet", NULL, gtk_widget_get_screen(applet->w_applet), &error); + gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (applet->w_applet)), + "ghelp:stickynotes_applet", + gtk_get_current_event_time (), + &error); if (error) { GtkWidget *dialog = gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, _("There was an error displaying help: %s"), error->message); @@ -548,7 +550,10 @@ void preferences_response_cb(GtkWidget *dialog, gint response, gpointer data) { if (response == GTK_RESPONSE_HELP) { GError *error = NULL; - gnome_help_display_on_screen("stickynotes_applet", "stickynotes-advanced-settings", gtk_widget_get_screen(GTK_WIDGET(dialog)), &error); + gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (dialog)), + "ghelp:stickynotes_applet?stickynotes-advanced-settings", + gtk_get_current_event_time (), + &error); if (error) { dialog = gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, _("There was an error displaying help: %s"), error->message); |