[epiphany-extensions] actions: fix editor Close button



commit 4ddec7252b37c45beea4a0f0cb1d3a3f780d1aff
Author: Diego Escalante Urrelo <descalante igalia com>
Date:   Sat Jan 30 21:30:38 2010 -0500

    actions: fix editor Close button

 .../actions/ephy-actions-extension-editor-dialog.c |   38 ++++++++++----------
 1 files changed, 19 insertions(+), 19 deletions(-)
---
diff --git a/extensions/actions/ephy-actions-extension-editor-dialog.c b/extensions/actions/ephy-actions-extension-editor-dialog.c
index 953fa2c..a34d9b5 100644
--- a/extensions/actions/ephy-actions-extension-editor-dialog.c
+++ b/extensions/actions/ephy-actions-extension-editor-dialog.c
@@ -729,26 +729,26 @@ ephy_actions_extension_editor_dialog_response_cb
 	GdkScreen *screen;
 	GError *error = NULL;
 
-	if (response != GTK_RESPONSE_HELP)
-		return;
-
-	screen = gtk_widget_get_screen (GTK_WIDGET (dialog));
-	gtk_show_uri (screen, "ghelp:epiphany-extensions?epi-ext-action-manage",
-		      gtk_get_current_event_time (), &error);
-
-	if (error)
+	if (response == GTK_RESPONSE_HELP)
 	{
-		GtkWidget *errord;
-		errord = gtk_message_dialog_new (GTK_WINDOW (dialog),
-						 GTK_DIALOG_DESTROY_WITH_PARENT,
-						 GTK_MESSAGE_ERROR,
-						 GTK_BUTTONS_OK,
-						 _("Could not display help: %s"),
-						 error->message);
-		g_error_free (error);
-		g_signal_connect (errord, "response",
-				  G_CALLBACK (gtk_widget_destroy), NULL);
-		gtk_widget_show (errord);
+		screen = gtk_widget_get_screen (GTK_WIDGET (dialog));
+		gtk_show_uri (screen, "ghelp:epiphany-extensions?epi-ext-action-manage",
+			      gtk_get_current_event_time (), &error);
+
+		if (error)
+		{
+			GtkWidget *errord;
+			errord = gtk_message_dialog_new (GTK_WINDOW (dialog),
+							 GTK_DIALOG_DESTROY_WITH_PARENT,
+							 GTK_MESSAGE_ERROR,
+							 GTK_BUTTONS_OK,
+							 _("Could not display help: %s"),
+							 error->message);
+			g_error_free (error);
+			g_signal_connect (errord, "response",
+					  G_CALLBACK (gtk_widget_destroy), NULL);
+			gtk_widget_show (errord);
+		}
 	}
 
 	g_object_unref (pdialog);



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