Commit 39a5a723 authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor
Browse files

Add a mnemonic to the "selection" label. (More of #74267)

Fri Nov  1 21:03:59 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkfilesel.c: Add a mnemonic to the "selection"
        label. (More of #74267)

        * configure.in: Version 2.1.2

        * NEWS: Updates.
parent 00943af8
Fri Nov 1 21:03:59 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfilesel.c: Add a mnemonic to the "selection"
label. (More of #74267)
* configure.in: Version 2.1.2
* NEWS: Updates.
2002-11-02 Matthias Clasen <maclas@gmx.de>
* gtk/stock-icons/stock_jump_to_rtl_16.png,
......
Fri Nov 1 21:03:59 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfilesel.c: Add a mnemonic to the "selection"
label. (More of #74267)
* configure.in: Version 2.1.2
* NEWS: Updates.
2002-11-02 Matthias Clasen <maclas@gmx.de>
* gtk/stock-icons/stock_jump_to_rtl_16.png,
......
Fri Nov 1 21:03:59 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfilesel.c: Add a mnemonic to the "selection"
label. (More of #74267)
* configure.in: Version 2.1.2
* NEWS: Updates.
2002-11-02 Matthias Clasen <maclas@gmx.de>
* gtk/stock-icons/stock_jump_to_rtl_16.png,
......
Fri Nov 1 21:03:59 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfilesel.c: Add a mnemonic to the "selection"
label. (More of #74267)
* configure.in: Version 2.1.2
* NEWS: Updates.
2002-11-02 Matthias Clasen <maclas@gmx.de>
* gtk/stock-icons/stock_jump_to_rtl_16.png,
......
Fri Nov 1 21:03:59 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfilesel.c: Add a mnemonic to the "selection"
label. (More of #74267)
* configure.in: Version 2.1.2
* NEWS: Updates.
2002-11-02 Matthias Clasen <maclas@gmx.de>
* gtk/stock-icons/stock_jump_to_rtl_16.png,
......
Fri Nov 1 21:03:59 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfilesel.c: Add a mnemonic to the "selection"
label. (More of #74267)
* configure.in: Version 2.1.2
* NEWS: Updates.
2002-11-02 Matthias Clasen <maclas@gmx.de>
* gtk/stock-icons/stock_jump_to_rtl_16.png,
......
Overview of Changes in GTK+ 2.1.2
=================================
* Fixes for GtkIMContextXIM [HideToshi Tajima, Owen Taylor]
* Remove usage of XLookupString outside of GtkIMContextXIM [Owen]
* Handle Shift/Caps/Num_Lock properly for non-Xkb [Owen]
* Add a --screen option to set default screen [Balamurali Viswanathan, Owen]
* Handle focus indication for check and radio buttons without children
[Dave Camp, Owen]
* Much work on improve submenu navigation [Soeren Sandmann]
* Add "selected_shadow_type" property for menus [Soeren]
* Add "scrollbar_spacing" style property [Anders Carlsson, Owen]
* Rework GtkPaned keynav [Soeren, Calum Benson]
* Sensitivity and keynav fixes for GtkFileSelection [Muktha Narayan, Owen]
* Removed mnemonics for GtkToolbar Items [Mikael Hallendal]
* Tree view fixes and speedups
[Kristian Rietveld, Daniel Elstner, Havoc Pennington]
* Allow themes to set GtkTreeView even/odd row colors [Kristian]
* Doc fixes and improvements [Matthias Clasen, Vitaly Tishkov]
* Win32 fixes [Tor Lillqvist]
* Misc cleanups and bug fixes
Other contributors: Phil Blundell, Erwanne Chenede, Jeremy Katz,
Padraig O'Briain, Havoc Pennington, Timo Sirainen, Nam SungHyun,
Matt Wilson,
Overview of Changes in GTK+ 2.1.1
=================================
* Cleanup of use of deprecated functions in GTK+ [Manish Singh]
......
......@@ -32,9 +32,9 @@ GLIB_AC_DIVERT_BEFORE_HELP([
#
GTK_MAJOR_VERSION=2
GTK_MINOR_VERSION=1
GTK_MICRO_VERSION=1
GTK_MICRO_VERSION=2
GTK_INTERFACE_AGE=0
GTK_BINARY_AGE=101
GTK_BINARY_AGE=102
GTK_VERSION=$GTK_MAJOR_VERSION.$GTK_MINOR_VERSION.$GTK_MICRO_VERSION
dnl This is the X.Y used in -lgtk-FOO-X.Y
GTK_API_VERSION=2.0
......
......@@ -800,6 +800,9 @@ gtk_file_selection_init (GtkFileSelection *filesel)
gtk_box_pack_start (GTK_BOX (entry_vbox), filesel->selection_entry, TRUE, TRUE, 0);
gtk_widget_show (filesel->selection_entry);
gtk_label_set_mnemonic_widget (GTK_LABEL (filesel->selection_text),
filesel->selection_entry);
if (!cmpl_state_okay (filesel->cmpl_state))
{
gchar err_buf[256];
......@@ -2035,6 +2038,22 @@ win32_gtk_add_drives_to_dir_list (GtkListStore *model)
}
#endif
static gchar *
escape_underscores (const gchar *str)
{
GString *result = g_string_new (NULL);
while (*str)
{
if (*str == '_')
g_string_append_c (result, '_');
g_string_append_c (result, *str);
str++;
}
return g_string_free (result, FALSE);
}
static void
gtk_file_selection_populate (GtkFileSelection *fs,
gchar *rel_path,
......@@ -2165,11 +2184,11 @@ gtk_file_selection_populate (GtkFileSelection *fs,
if (fs->selection_entry)
{
sel_text = g_strconcat (_("Selection: "),
cmpl_reference_position (cmpl_state),
NULL);
char *escaped = escape_underscores (cmpl_reference_position (cmpl_state));
sel_text = g_strconcat (_("_Selection: "), escaped, NULL);
g_free (escaped);
gtk_label_set_text (GTK_LABEL (fs->selection_text), sel_text);
gtk_label_set_text_with_mnemonic (GTK_LABEL (fs->selection_text), sel_text);
g_free (sel_text);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment