Commit a9e7b76a authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

added a mnemonic.

2005-06-24  Sven Neumann  <sven@gimp.org>

	* app/dialogs/preferences-dialog.c: added a mnemonic.

	* libgimpwidgets/gimppropwidgets.c
	(gimp_prop_file_chooser_button_new): embed the button in an
	event-box if the param_spec provides a blurb to be used as a
	tooltip.

	* libgimpconfig/gimpcolorconfig.c: improved blurbs.
parent 9e0f32e6
2005-06-24 Sven Neumann <sven@gimp.org>
* app/dialogs/preferences-dialog.c: added a mnemonic.
* libgimpwidgets/gimppropwidgets.c
(gimp_prop_file_chooser_button_new): embed the button in an
event-box if the param_spec provides a blurb to be used as a
tooltip.
* libgimpconfig/gimpcolorconfig.c: improved blurbs.
2005-06-24 Manish Singh <yosh@gimp.org>
* libgimpcolor/gimpcolor.def: add gimp_rgba_parse_css
......
......@@ -2204,8 +2204,8 @@ prefs_dialog_new (Gimp *gimp,
button =
gimp_prop_check_button_new (color_config,
"display-profile-from-gdk",
_("Try to obtain the monitor profile "
"from the X server"));
_("_Try to obtain the monitor "
"profile from the X server"));
row++;
gtk_table_attach_defaults (GTK_TABLE (table),
......
......@@ -39,16 +39,17 @@
#define COLOR_MANAGEMENT_MODE_BLURB \
N_("Mode of operation for color management.")
#define DISPLAY_PROFILE_BLURB \
N_("Sets the color profile for the display.")
N_("The color profile of your (primary) monitor.")
#define DISPLAY_PROFILE_FROM_GDK_BLURB \
N_("When enabled, the GIMP will try to use the display color profile " \
"from the windowing system.")
"from the windowing system. The configured monitor profile is then " \
"only used as a fallback.")
#define RGB_PROFILE_BLURB \
N_("Sets default RGB workspace color profile.")
N_("The default RGB workspace color profile.")
#define CMYK_PROFILE_BLURB \
N_("Sets the CMYK color profile used to convert between RGB and CMYK.")
N_("The CMYK color profile used to convert between RGB and CMYK.")
#define PRINTER_PROFILE_BLURB \
N_("Sets the color profile used when printing.")
N_("The color profile used for simulating a printed version (softproof).")
#define DISPLAY_RENDERING_INTENT_BLURB \
N_("Sets how colors are mapped for your display.")
#define SIMULATION_RENDERING_INTENT_BLURB \
......
......@@ -326,7 +326,8 @@ static void gimp_prop_int_combo_box_notify (GObject *config,
* property. The contents of the widget are determined by @store,
* which should be created using gimp_int_store_new().
*
* Return value: The newly created #GimpIntComboBox widget.
* Return value: The newly created #GimpIntComboBox widget, optionally
* wrapped into a #GtkEventBox.
*
* Since GIMP 2.4
*/
......@@ -396,7 +397,8 @@ gimp_prop_int_combo_box_new (GObject *config,
* enum. If the two values are equal (e.g., 0, 0), then the full
* range of the Enum is used.
*
* Return value: The newly created #GimpIntComboBox widget.
* Return value: The newly created #GimpEnumComboBox widget, optionally
* wrapped into a #GtkEventBox.
*
* Since GIMP 2.4
*/
......@@ -533,7 +535,8 @@ static void gimp_prop_boolean_combo_box_notify (GObject *config,
* displaying the @true_text label, the other displaying the
* @false_text label.
*
* Return value: The newly created #GtkComboBox widget.
* Return value: The newly created #GtkComboBox widget, optionally
* wrapped into a #GtkEventBox..
*
* Since GIMP 2.4
*/
......@@ -1945,6 +1948,7 @@ gimp_prop_file_chooser_button_new (GObject *config,
{
GParamSpec *param_spec;
GtkWidget *button;
GtkWidget *widget;
gchar *filename;
gchar *value;
......@@ -1971,7 +1975,19 @@ gimp_prop_file_chooser_button_new (GObject *config,
g_free (filename);
}
set_param_spec (G_OBJECT (button), button, param_spec);
/* can't set a tooltip on a file-chooser button */
if (g_param_spec_get_blurb (param_spec))
{
widget = gtk_event_box_new ();
gtk_container_add (GTK_CONTAINER (widget), button);
gtk_widget_show (button);
}
else
{
widget = button;
}
set_param_spec (G_OBJECT (button), widget, param_spec);
g_signal_connect (button, "selection-changed",
G_CALLBACK (gimp_prop_file_chooser_button_callback),
......@@ -1981,7 +1997,7 @@ gimp_prop_file_chooser_button_new (GObject *config,
G_CALLBACK (gimp_prop_file_chooser_button_notify),
button);
return button;
return widget;
}
static void
......
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