diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2006-04-20 21:07:45 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2006-04-20 21:07:45 +0800 |
commit | 49ff60134ed9195c245aa194b2f56e87f88e6687 (patch) | |
tree | b6e1c9824dc09ff69fb622c378a23c43763466bb /src | |
parent | 864128031979b0593fc8efa359d9f5ab943eb92b (diff) | |
download | gsoc2013-epiphany-49ff60134ed9195c245aa194b2f56e87f88e6687.tar.gz 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.
Diffstat (limited to 'src')
-rw-r--r-- | src/prefs-dialog.c | 6 |
1 files changed, 5 insertions, 1 deletions
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); |