[gedit] Fix showing help in plugins



commit ae06032e33e055676156bc8674c5949acdc0adcf
Author: Garrett Regier <alias301 gmail com>
Date:   Mon May 3 16:06:29 2010 -0700

    Fix showing help in plugins

 plugin-loaders/python/bindings/gedit.override |    1 -
 plugins/sort/gedit-sort-plugin.c              |    9 +++++----
 plugins/spell/gedit-spell-language-dialog.c   |    9 +++++----
 plugins/time/gedit-time-plugin.c              |   16 +++++++++-------
 4 files changed, 19 insertions(+), 16 deletions(-)
---
diff --git a/plugin-loaders/python/bindings/gedit.override b/plugin-loaders/python/bindings/gedit.override
index e431e91..a19751d 100644
--- a/plugin-loaders/python/bindings/gedit.override
+++ b/plugin-loaders/python/bindings/gedit.override
@@ -10,7 +10,6 @@ headers
 #include <gedit/gedit-enum-types.h>
 #include <gedit/gedit-statusbar.h>
 #include <gedit/gedit-debug.h>
-#include <gedit/gedit-help.h>
 
 #include "gedit-plugin-python.h"
 
diff --git a/plugins/sort/gedit-sort-plugin.c b/plugins/sort/gedit-sort-plugin.c
index f5aacb7..e9b051e 100644
--- a/plugins/sort/gedit-sort-plugin.c
+++ b/plugins/sort/gedit-sort-plugin.c
@@ -33,7 +33,7 @@
 
 #include <gedit/gedit-debug.h>
 #include <gedit/gedit-utils.h>
-#include <gedit/gedit-help.h>
+#include <gedit/gedit-app.h>
 
 #define GEDIT_SORT_PLUGIN_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), GEDIT_TYPE_SORT_PLUGIN, GeditSortPluginPrivate))
 
@@ -115,9 +115,10 @@ sort_dialog_response_handler (GtkDialog  *widget,
 			break;
 
 		case GTK_RESPONSE_HELP:
-			gedit_help_display (GTK_WINDOW (widget),
-					    NULL,
-					    "gedit-sort-plugin");
+			gedit_app_show_help (gedit_app_get_default (),
+					     GTK_WINDOW (widget),
+					     NULL,
+					     "gedit-sort-plugin");
 			break;
 
 		case GTK_RESPONSE_CANCEL:
diff --git a/plugins/spell/gedit-spell-language-dialog.c b/plugins/spell/gedit-spell-language-dialog.c
index bc6a9ad..95fcc26 100644
--- a/plugins/spell/gedit-spell-language-dialog.c
+++ b/plugins/spell/gedit-spell-language-dialog.c
@@ -34,7 +34,7 @@
 #include <glib/gi18n.h>
 #include <gtk/gtk.h>
 #include <gedit/gedit-utils.h>
-#include <gedit/gedit-help.h>
+#include <gedit/gedit-app.h>
 #include "gedit-spell-language-dialog.h"
 #include "gedit-spell-checker-language.h"
 
@@ -70,9 +70,10 @@ dialog_response_handler (GtkDialog *dlg,
 {
 	if (res_id == GTK_RESPONSE_HELP)
 	{
-		gedit_help_display (GTK_WINDOW (dlg),
-				    NULL,
-				    "gedit-spell-checker-plugin");
+		gedit_app_show_help (gedit_app_get_default (),
+				     GTK_WINDOW (dlg),
+				     NULL,
+				     "gedit-spell-checker-plugin");
 
 		g_signal_stop_emission_by_name (dlg, "response");
 	}
diff --git a/plugins/time/gedit-time-plugin.c b/plugins/time/gedit-time-plugin.c
index d8eefae..3531bca 100644
--- a/plugins/time/gedit-time-plugin.c
+++ b/plugins/time/gedit-time-plugin.c
@@ -36,7 +36,7 @@
 #include <gconf/gconf-client.h>
 
 #include "gedit-time-plugin.h"
-#include <gedit/gedit-help.h>
+#include <gedit/gedit-app.h>
 
 #include <glib/gi18n-lib.h>
 #include <glib.h>
@@ -1069,9 +1069,10 @@ choose_format_dialog_response_cb (GtkWidget          *widget,
 		case GTK_RESPONSE_HELP:
 		{
 			gedit_debug_message (DEBUG_PLUGINS, "GTK_RESPONSE_HELP");
-			gedit_help_display (GTK_WINDOW (widget),
-					    NULL,
-					    "gedit-insert-date-time-plugin");
+			gedit_app_show_help (gedit_app_get_default (),
+					     GTK_WINDOW (widget),
+					     NULL,
+					     "gedit-insert-date-time-plugin");
 			break;
 		}
 		case GTK_RESPONSE_OK:
@@ -1215,9 +1216,10 @@ configure_dialog_response_cb (GtkWidget           *widget,
 		{
 			gedit_debug_message (DEBUG_PLUGINS, "GTK_RESPONSE_HELP");
 
-			gedit_help_display (GTK_WINDOW (dialog),
-					    NULL,
-					    "gedit-date-time-configure");
+			gedit_app_show_help (gedit_app_get_default (),
+					     GTK_WINDOW (dialog),
+					     NULL,
+					     "gedit-date-time-configure");
 			break;
 		}
 		case GTK_RESPONSE_OK:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]