aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2006-04-20 21:07:45 +0800
committerChristian Persch <chpe@src.gnome.org>2006-04-20 21:07:45 +0800
commit49ff60134ed9195c245aa194b2f56e87f88e6687 (patch)
treeb6e1c9824dc09ff69fb622c378a23c43763466bb
parent864128031979b0593fc8efa359d9f5ab943eb92b (diff)
downloadgsoc2013-epiphany-49ff60134ed9195c245aa194b2f56e87f88e6687.tar
gsoc2013-epiphany-49ff60134ed9195c245aa194b2f56e87f88e6687.tar.gz
gsoc2013-epiphany-49ff60134ed9195c245aa194b2f56e87f88e6687.tar.bz2
gsoc2013-epiphany-49ff60134ed9195c245aa194b2f56e87f88e6687.tar.lz
gsoc2013-epiphany-49ff60134ed9195c245aa194b2f56e87f88e6687.tar.xz
gsoc2013-epiphany-49ff60134ed9195c245aa194b2f56e87f88e6687.tar.zst
gsoc2013-epiphany-49ff60134ed9195c245aa194b2f56e87f88e6687.zip
Fix mnemonic activation of download path button. Bug #339139.
2006-04-19 Christian Persch <chpe@cvs.gnome.org> * data/glade/prefs-dialog.glade: * src/prefs-dialog.c: Fix mnemonic activation of download path button. Bug #339139.
-rw-r--r--ChangeLog9
-rw-r--r--data/glade/prefs-dialog.glade2
-rw-r--r--src/prefs-dialog.c6
3 files changed, 14 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 5022759e9..2509d8f23 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,11 @@
-2006-04-17 Chhristian Persch <chpe@cvs.gnome.org>
+2006-04-19 Christian Persch <chpe@cvs.gnome.org>
+
+ * data/glade/prefs-dialog.glade:
+ * src/prefs-dialog.c:
+
+ Fix mnemonic activation of download path button. Bug #339139.
+
+2006-04-17 Christian Persch <chpe@cvs.gnome.org>
* m4/gecko.m4:
diff --git a/data/glade/prefs-dialog.glade b/data/glade/prefs-dialog.glade
index de4fb9f7a..4b5dd4758 100644
--- a/data/glade/prefs-dialog.glade
+++ b/data/glade/prefs-dialog.glade
@@ -309,7 +309,7 @@
<property name="spacing">12</property>
<child>
- <widget class="GtkLabel" id="label1302">
+ <widget class="GtkLabel" id="download_button_label">
<property name="visible">True</property>
<property name="label" translatable="yes">_Download folder:</property>
<property name="use_underline">True</property>
diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c
index eef03a5fe..fc912f1f8 100644
--- a/src/prefs-dialog.c
+++ b/src/prefs-dialog.c
@@ -121,6 +121,7 @@ enum
HOMEPAGE_BLANK_PROP,
AUTO_OPEN_PROP,
DOWNLOAD_PATH_HBOX_PROP,
+ DOWNLOAD_PATH_LABEL_PROP,
/* Fonts and Colors */
USE_FONTS_PROP,
@@ -166,6 +167,7 @@ EphyDialogProperty properties [] =
{ "homepage_blank_button", NULL, PT_NORMAL, 0 },
{ "automatic_downloads_checkbutton", CONF_AUTO_DOWNLOADS, PT_AUTOAPPLY, 0 },
{ "download_button_hbox", NULL, PT_NORMAL, 0 },
+ { "download_button_label", NULL, PT_NORMAL, 0 },
/* Fonts and Colors */
{ "use_fonts_checkbutton", CONF_RENDERING_USE_OWN_FONTS, PT_AUTOAPPLY | PT_INVERTED, 0 },
@@ -1419,7 +1421,7 @@ download_path_changed_cb (GtkFileChooser *button)
static void
create_download_path_button (EphyDialog *dialog)
{
- GtkWidget *parent, *hbox, *button;
+ GtkWidget *parent, *hbox, *label, *button;
EphyFileChooser *fc;
char *dir;
@@ -1427,6 +1429,7 @@ create_download_path_button (EphyDialog *dialog)
ephy_dialog_get_controls (dialog,
properties[DOWNLOAD_PATH_HBOX_PROP].id, &hbox,
+ properties[DOWNLOAD_PATH_LABEL_PROP].id, &label,
properties[WINDOW_PROP].id, &parent,
NULL);
@@ -1444,6 +1447,7 @@ create_download_path_button (EphyDialog *dialog)
DOWNLOAD_BUTTON_WIDTH);
g_signal_connect (button, "current-folder-changed",
G_CALLBACK (download_path_changed_cb), dialog);
+ gtk_label_set_mnemonic_widget (GTK_LABEL (label), button);
gtk_box_pack_start (GTK_BOX (hbox), button, TRUE, TRUE, 0);
gtk_widget_show (button);