Add mnemonics. (main): Set title to "Background Preferences".

2002-03-28  Richard Hestilow  <hestilow@ximian.com>

	* background-properties-capplet.c (create_dialog),
	background-properties.glade: Add mnemonics.
	(main): Set title to "Background Preferences".
This commit is contained in:
Richard Hestilow 2002-03-28 21:25:04 +00:00 committed by Rachel Hestilow
parent 3dce518cca
commit 18bd56b74a
3 changed files with 27 additions and 7 deletions

View file

@ -1,3 +1,9 @@
2002-03-28 Richard Hestilow <hestilow@ximian.com>
* background-properties-capplet.c (create_dialog),
background-properties.glade: Add mnemonics.
(main): Set title to "Background Preferences".
2002-03-21 Seth Nickell <snickell@stanford.edu>
* background-properties-capplet.c: (main):

View file

@ -389,7 +389,8 @@ create_dialog (ApplierSet *set)
GladeXML *dialog;
GSList *group;
int i;
const gchar *labels[] = { N_("_Wallpaper"), N_("C_entered"), N_("_Scaled"), N_("S_tretched"), N_("_No Picture") };
const gchar *labels[] = { N_("_Wallpaper"), N_("C_entered"), N_("_Scaled"), N_("Stretc_hed"), N_("_No Picture") };
GtkWidget *label;
/* FIXME: What the hell is domain? */
dialog = glade_xml_new (GNOMECC_DATA_DIR "/interfaces/background-properties.glade", "prefs_widget", NULL);
@ -423,6 +424,20 @@ create_dialog (ApplierSet *set)
g_slist_free (group);
label = gtk_label_new_with_mnemonic (_("_Picture"));
gtk_frame_set_label_widget (GTK_FRAME (WID ("picture_frame")),
label);
gtk_label_set_mnemonic_widget (GTK_LABEL (label),
WID ("background_image_button"));
gtk_widget_show (label);
gtk_label_set_mnemonic_widget (GTK_LABEL (WID ("border_shading_label")),
WID ("border_shading"));
gtk_label_set_mnemonic_widget (GTK_LABEL (WID ("color1_label")),
WID ("color1"));
gtk_label_set_mnemonic_widget (GTK_LABEL (WID ("color2_label")),
WID ("color2"));
return dialog;
}
@ -537,7 +552,7 @@ main (int argc, char **argv)
setup_dialog (dialog, NULL, set);
dialog_win = gtk_dialog_new_with_buttons
(_("Background properties"), NULL, -1,
(_("Background Preferences"), NULL, -1,
GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE,
NULL);

View file

@ -5,7 +5,7 @@
<requires lib="gnome"/>
<widget class="GtkWindow" id="background_preference_window">
<property name="title" translatable="yes">Background Properties</property>
<property name="title" translatable="yes">Background Preferences</property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_NONE</property>
<property name="modal">False</property>
@ -44,9 +44,8 @@
<property name="spacing">15</property>
<child>
<widget class="GtkFrame" id="frame6">
<widget class="GtkFrame" id="picture_frame">
<property name="visible">True</property>
<property name="label" translatable="yes">Picture:</property>
<property name="label_xalign">0</property>
<property name="shadow_type">GTK_SHADOW_NONE</property>
@ -211,8 +210,8 @@ background picture.</property>
<child>
<widget class="GtkLabel" id="border_shading_label">
<property name="visible">True</property>
<property name="label" translatable="yes">Border the picture with a:</property>
<property name="use_underline">False</property>
<property name="label" translatable="yes">Bor_der the picture with a:</property>
<property name="use_underline">yes</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>