aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-encoding-dialog.c
diff options
context:
space:
mode:
authorPiers Cornwell <piers@myrealbox.com>2004-01-05 06:26:51 +0800
committerChristian Persch <chpe@src.gnome.org>2004-01-05 06:26:51 +0800
commit0537ba7e4849075b4d3f863f71be1b427e681425 (patch)
treea751459539611a8e279622e354ce1d6968859b0a /src/ephy-encoding-dialog.c
parent4dd3ca40e89ad2ce3ad67b8732691766d862587a (diff)
downloadgsoc2013-epiphany-0537ba7e4849075b4d3f863f71be1b427e681425.tar
gsoc2013-epiphany-0537ba7e4849075b4d3f863f71be1b427e681425.tar.gz
gsoc2013-epiphany-0537ba7e4849075b4d3f863f71be1b427e681425.tar.bz2
gsoc2013-epiphany-0537ba7e4849075b4d3f863f71be1b427e681425.tar.lz
gsoc2013-epiphany-0537ba7e4849075b4d3f863f71be1b427e681425.tar.xz
gsoc2013-epiphany-0537ba7e4849075b4d3f863f71be1b427e681425.tar.zst
gsoc2013-epiphany-0537ba7e4849075b4d3f863f71be1b427e681425.zip
Add help button to encodings dialogue.
2004-01-04 Piers Cornwell <piers@myrealbox.com> * src/ephy-encoding-dialog.c: (ephy_encoding_dialog_get_type), (ephy_encoding_dialog_response_cb): Add help button to encodings dialogue.
Diffstat (limited to 'src/ephy-encoding-dialog.c')
-rw-r--r--src/ephy-encoding-dialog.c23
1 files changed, 15 insertions, 8 deletions
diff --git a/src/ephy-encoding-dialog.c b/src/ephy-encoding-dialog.c
index 9ecadd9fd..e57ec558a 100644
--- a/src/ephy-encoding-dialog.c
+++ b/src/ephy-encoding-dialog.c
@@ -31,6 +31,7 @@
#include "ephy-node.h"
#include "ephy-node-view.h"
#include "ephy-debug.h"
+#include "ephy-gui.h"
#include <gtk/gtklabel.h>
#include <gtk/gtkbutton.h>
@@ -74,7 +75,7 @@ struct EphyEncodingDialogPrivate
static void ephy_encoding_dialog_class_init (EphyEncodingDialogClass *klass);
static void ephy_encoding_dialog_init (EphyEncodingDialog *ge);
void ephy_encoding_dialog_response_cb (GtkWidget *widget,
- gint response,
+ int response,
EphyEncodingDialog *dialog);
static GObjectClass *parent_class = NULL;
@@ -82,9 +83,9 @@ static GObjectClass *parent_class = NULL;
GType
ephy_encoding_dialog_get_type (void)
{
- static GType ephy_type_encoding_dialog = 0;
+ static GType type = 0;
- if (ephy_type_encoding_dialog == 0)
+ if (type == 0)
{
static const GTypeInfo our_info =
{
@@ -99,12 +100,12 @@ ephy_encoding_dialog_get_type (void)
(GInstanceInitFunc) ephy_encoding_dialog_init
};
- ephy_type_encoding_dialog = g_type_register_static (EPHY_TYPE_EMBED_DIALOG,
- "EphyEncodingDialog",
- &our_info, 0);
+ type = g_type_register_static (EPHY_TYPE_EMBED_DIALOG,
+ "EphyEncodingDialog",
+ &our_info, 0);
}
- return ephy_type_encoding_dialog;
+ return type;
}
static void
@@ -240,9 +241,15 @@ activate_choice (EphyEncodingDialog *dialog)
void
ephy_encoding_dialog_response_cb (GtkWidget *widget,
- gint response,
+ int response,
EphyEncodingDialog *dialog)
{
+ if (response == GTK_RESPONSE_HELP)
+ {
+ ephy_gui_help (GTK_WINDOW (widget), "epiphany", "text-encoding");
+ return;
+ }
+
g_object_unref (dialog);
}