mirror of https://github.com/GNOME/gimp.git
don't add "Options" to the tools name when setting the dockbook tab label.
2002-10-31 Sven Neumann <sven@gimp.org> * app/gui/dialogs-constructors.c: don't add "Options" to the tools name when setting the dockbook tab label.
This commit is contained in:
parent
569875f103
commit
82bc82e13f
|
@ -1,5 +1,8 @@
|
||||||
2002-10-31 Sven Neumann <sven@gimp.org>
|
2002-10-31 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* app/gui/dialogs-constructors.c: don't add "Options" to the
|
||||||
|
tools name when setting the dockbook tab label.
|
||||||
|
|
||||||
* app/gui/color-notebook.c: removed the white and black color
|
* app/gui/color-notebook.c: removed the white and black color
|
||||||
buttons since white and black are trivial to select anyway.
|
buttons since white and black are trivial to select anyway.
|
||||||
|
|
||||||
|
|
|
@ -1151,16 +1151,11 @@ dialogs_tool_options_tool_changed (GimpContext *context,
|
||||||
GtkLabel *label)
|
GtkLabel *label)
|
||||||
{
|
{
|
||||||
GtkImage *image;
|
GtkImage *image;
|
||||||
gchar *text;
|
|
||||||
|
|
||||||
if ((image = g_object_get_data (G_OBJECT (label), "tool-icon")))
|
if ((image = g_object_get_data (G_OBJECT (label), "tool-icon")))
|
||||||
gtk_image_set_from_stock (image, tool_info->stock_id, image->icon_size);
|
gtk_image_set_from_stock (image, tool_info->stock_id, image->icon_size);
|
||||||
|
|
||||||
text = g_strdup_printf (_("%s Options"), tool_info->blurb);
|
gtk_label_set_text (label, tool_info->blurb);
|
||||||
|
|
||||||
gtk_label_set_text (label, text);
|
|
||||||
|
|
||||||
g_free (text);
|
|
||||||
|
|
||||||
gimp_help_set_help_data (GTK_WIDGET (label)->parent->parent,
|
gimp_help_set_help_data (GTK_WIDGET (label)->parent->parent,
|
||||||
tool_info->help,
|
tool_info->help,
|
||||||
|
@ -1177,7 +1172,6 @@ dialogs_tool_options_tab_func (GimpDockable *dockable,
|
||||||
GtkWidget *hbox;
|
GtkWidget *hbox;
|
||||||
GtkWidget *image;
|
GtkWidget *image;
|
||||||
GtkWidget *label;
|
GtkWidget *label;
|
||||||
gchar *text;
|
|
||||||
gint width;
|
gint width;
|
||||||
gint height;
|
gint height;
|
||||||
|
|
||||||
|
@ -1194,11 +1188,7 @@ dialogs_tool_options_tab_func (GimpDockable *dockable,
|
||||||
gtk_box_pack_start (GTK_BOX (hbox), image, FALSE, FALSE, 0);
|
gtk_box_pack_start (GTK_BOX (hbox), image, FALSE, FALSE, 0);
|
||||||
gtk_widget_show (image);
|
gtk_widget_show (image);
|
||||||
|
|
||||||
text = g_strdup_printf (_("%s Options"), tool_info->blurb);
|
label = gtk_label_new (tool_info->blurb);
|
||||||
|
|
||||||
label = gtk_label_new (text);
|
|
||||||
|
|
||||||
g_free (text);
|
|
||||||
|
|
||||||
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
|
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
|
||||||
gtk_widget_show (label);
|
gtk_widget_show (label);
|
||||||
|
|
|
@ -1151,16 +1151,11 @@ dialogs_tool_options_tool_changed (GimpContext *context,
|
||||||
GtkLabel *label)
|
GtkLabel *label)
|
||||||
{
|
{
|
||||||
GtkImage *image;
|
GtkImage *image;
|
||||||
gchar *text;
|
|
||||||
|
|
||||||
if ((image = g_object_get_data (G_OBJECT (label), "tool-icon")))
|
if ((image = g_object_get_data (G_OBJECT (label), "tool-icon")))
|
||||||
gtk_image_set_from_stock (image, tool_info->stock_id, image->icon_size);
|
gtk_image_set_from_stock (image, tool_info->stock_id, image->icon_size);
|
||||||
|
|
||||||
text = g_strdup_printf (_("%s Options"), tool_info->blurb);
|
gtk_label_set_text (label, tool_info->blurb);
|
||||||
|
|
||||||
gtk_label_set_text (label, text);
|
|
||||||
|
|
||||||
g_free (text);
|
|
||||||
|
|
||||||
gimp_help_set_help_data (GTK_WIDGET (label)->parent->parent,
|
gimp_help_set_help_data (GTK_WIDGET (label)->parent->parent,
|
||||||
tool_info->help,
|
tool_info->help,
|
||||||
|
@ -1177,7 +1172,6 @@ dialogs_tool_options_tab_func (GimpDockable *dockable,
|
||||||
GtkWidget *hbox;
|
GtkWidget *hbox;
|
||||||
GtkWidget *image;
|
GtkWidget *image;
|
||||||
GtkWidget *label;
|
GtkWidget *label;
|
||||||
gchar *text;
|
|
||||||
gint width;
|
gint width;
|
||||||
gint height;
|
gint height;
|
||||||
|
|
||||||
|
@ -1194,11 +1188,7 @@ dialogs_tool_options_tab_func (GimpDockable *dockable,
|
||||||
gtk_box_pack_start (GTK_BOX (hbox), image, FALSE, FALSE, 0);
|
gtk_box_pack_start (GTK_BOX (hbox), image, FALSE, FALSE, 0);
|
||||||
gtk_widget_show (image);
|
gtk_widget_show (image);
|
||||||
|
|
||||||
text = g_strdup_printf (_("%s Options"), tool_info->blurb);
|
label = gtk_label_new (tool_info->blurb);
|
||||||
|
|
||||||
label = gtk_label_new (text);
|
|
||||||
|
|
||||||
g_free (text);
|
|
||||||
|
|
||||||
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
|
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
|
||||||
gtk_widget_show (label);
|
gtk_widget_show (label);
|
||||||
|
|
Loading…
Reference in New Issue