gnome-applets r11197 - trunk/stickynotes
- From: diegoe svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-applets r11197 - trunk/stickynotes
- Date: Wed, 14 Jan 2009 07:57:34 +0000 (UTC)
Author: diegoe
Date: Wed Jan 14 07:57:34 2009
New Revision: 11197
URL: http://svn.gnome.org/viewvc/gnome-applets?rev=11197&view=rev
Log:
Drop gnome_help from stickynotes applet
Modified:
trunk/stickynotes/stickynotes.c
trunk/stickynotes/stickynotes_applet.c
trunk/stickynotes/stickynotes_applet_callbacks.c
Modified: trunk/stickynotes/stickynotes.c
==============================================================================
--- trunk/stickynotes/stickynotes.c (original)
+++ trunk/stickynotes/stickynotes.c Wed Jan 14 07:57:34 2009
@@ -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 @@
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);
}
Modified: trunk/stickynotes/stickynotes_applet.c
==============================================================================
--- trunk/stickynotes/stickynotes_applet.c (original)
+++ trunk/stickynotes/stickynotes_applet.c Wed Jan 14 07:57:34 2009
@@ -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;
Modified: trunk/stickynotes/stickynotes_applet_callbacks.c
==============================================================================
--- trunk/stickynotes/stickynotes_applet_callbacks.c (original)
+++ trunk/stickynotes/stickynotes_applet_callbacks.c Wed Jan 14 07:57:34 2009
@@ -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_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 @@
{
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]