From 93732fb225e99e0b9c0bcfe688040bc003f32b57 Mon Sep 17 00:00:00 2001 From: Jonathan Blandford Date: Tue, 24 Feb 2004 02:09:20 +0000 Subject: [PATCH] Add mnemonics. Sorry translators. Mon Feb 23 21:09:06 2004 Jonathan Blandford * gtk/gtkfilechooserdefault.c (shortcuts_pane_create): Add mnemonics. Sorry translators. --- ChangeLog | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-4 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ gtk/gtkcellrendererseptext.c | 4 ---- gtk/gtkfilechooserdefault.c | 7 ++++--- 7 files changed, 29 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 780351e658..f02991731e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Feb 23 21:09:06 2004 Jonathan Blandford + + * gtk/gtkfilechooserdefault.c (shortcuts_pane_create): Add + mnemonics. Sorry translators. + Tue Feb 24 02:24:58 2004 Matthias Clasen * NEWS: Additions. This should be complete for the main ChangeLog diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 780351e658..f02991731e 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +Mon Feb 23 21:09:06 2004 Jonathan Blandford + + * gtk/gtkfilechooserdefault.c (shortcuts_pane_create): Add + mnemonics. Sorry translators. + Tue Feb 24 02:24:58 2004 Matthias Clasen * NEWS: Additions. This should be complete for the main ChangeLog diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 780351e658..f02991731e 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +Mon Feb 23 21:09:06 2004 Jonathan Blandford + + * gtk/gtkfilechooserdefault.c (shortcuts_pane_create): Add + mnemonics. Sorry translators. + Tue Feb 24 02:24:58 2004 Matthias Clasen * NEWS: Additions. This should be complete for the main ChangeLog diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 780351e658..f02991731e 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +Mon Feb 23 21:09:06 2004 Jonathan Blandford + + * gtk/gtkfilechooserdefault.c (shortcuts_pane_create): Add + mnemonics. Sorry translators. + Tue Feb 24 02:24:58 2004 Matthias Clasen * NEWS: Additions. This should be complete for the main ChangeLog diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 780351e658..f02991731e 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +Mon Feb 23 21:09:06 2004 Jonathan Blandford + + * gtk/gtkfilechooserdefault.c (shortcuts_pane_create): Add + mnemonics. Sorry translators. + Tue Feb 24 02:24:58 2004 Matthias Clasen * NEWS: Additions. This should be complete for the main ChangeLog diff --git a/gtk/gtkcellrendererseptext.c b/gtk/gtkcellrendererseptext.c index feab08516b..7c73d55566 100644 --- a/gtk/gtkcellrendererseptext.c +++ b/gtk/gtkcellrendererseptext.c @@ -107,10 +107,6 @@ gtk_cell_renderer_sep_get_size (GtkCellRenderer *cell, if (x_offset) *x_offset = 0; if (y_offset) *y_offset = 0; - if (cell_area) - { - - } } else { diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index 443dcd6c29..ca9205c67e 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -1068,7 +1068,8 @@ button_new (GtkFileChooserDefault *impl, gtk_box_pack_start (GTK_BOX (hbox), widget, FALSE, FALSE, 0); - widget = gtk_label_new (text); + widget = gtk_label_new_with_mnemonic (text); + gtk_label_set_mnemonic_widget (GTK_LABEL (widget), GTK_WIDGET (button)); gtk_box_pack_start (GTK_BOX (hbox), widget, FALSE, FALSE, 0); gtk_widget_set_sensitive (button, sensitive); @@ -1462,7 +1463,7 @@ shortcuts_pane_create (GtkFileChooserDefault *impl, /* Add bookmark button */ impl->add_bookmark_button = button_new (impl, - _("Add"), + _("_Add"), GTK_STOCK_ADD, FALSE, TRUE, @@ -1472,7 +1473,7 @@ shortcuts_pane_create (GtkFileChooserDefault *impl, /* Remove bookmark button */ impl->remove_bookmark_button = button_new (impl, - _("Remove"), + _("_Remove"), GTK_STOCK_REMOVE, FALSE, TRUE,