added a default role used for color selectors not handled by

2003-11-12  Sven Neumann  <sven@gimp.org>

	* app/gui/color-notebook.c (color_notebook_new): added a default
	role used for color selectors not handled by GimpDialogFactory.
	Fixes bug #126783.
This commit is contained in:
Sven Neumann 2003-11-12 12:17:35 +00:00 committed by Sven Neumann
parent 05acb4a862
commit dfe47821d3
4 changed files with 21 additions and 6 deletions

View File

@ -1,3 +1,9 @@
2003-11-12 Sven Neumann <sven@gimp.org>
* app/gui/color-notebook.c (color_notebook_new): added a default
role used for color selectors not handled by the GimpDialogFactory.
Fixes bug #126783.
2003-11-12 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpeditor.[ch] (gimp_editor_set_box_style): new

View File

@ -102,6 +102,7 @@ color_notebook_new (GimpViewable *viewable,
GtkWidget *table;
GtkWidget *button;
GtkWidget *arrow;
const gchar *role;
gint i;
g_return_val_if_fail (viewable == NULL || GIMP_IS_VIEWABLE (viewable), NULL);
@ -118,9 +119,11 @@ color_notebook_new (GimpViewable *viewable,
cnp->client_data = client_data;
cnp->wants_updates = wants_updates;
role = dialog_identifier ? dialog_identifier : "gimp-color-selector";
if (desc)
{
cnp->shell = gimp_viewable_dialog_new (viewable, title, dialog_identifier,
cnp->shell = gimp_viewable_dialog_new (viewable, title, role,
stock_id, desc,
parent,
color_notebook_help_func, NULL,
@ -130,7 +133,7 @@ color_notebook_new (GimpViewable *viewable,
}
else
{
cnp->shell = gimp_dialog_new (title, dialog_identifier,
cnp->shell = gimp_dialog_new (title, role,
parent, 0,
color_notebook_help_func, NULL,
NULL);

View File

@ -102,6 +102,7 @@ color_notebook_new (GimpViewable *viewable,
GtkWidget *table;
GtkWidget *button;
GtkWidget *arrow;
const gchar *role;
gint i;
g_return_val_if_fail (viewable == NULL || GIMP_IS_VIEWABLE (viewable), NULL);
@ -118,9 +119,11 @@ color_notebook_new (GimpViewable *viewable,
cnp->client_data = client_data;
cnp->wants_updates = wants_updates;
role = dialog_identifier ? dialog_identifier : "gimp-color-selector";
if (desc)
{
cnp->shell = gimp_viewable_dialog_new (viewable, title, dialog_identifier,
cnp->shell = gimp_viewable_dialog_new (viewable, title, role,
stock_id, desc,
parent,
color_notebook_help_func, NULL,
@ -130,7 +133,7 @@ color_notebook_new (GimpViewable *viewable,
}
else
{
cnp->shell = gimp_dialog_new (title, dialog_identifier,
cnp->shell = gimp_dialog_new (title, role,
parent, 0,
color_notebook_help_func, NULL,
NULL);

View File

@ -102,6 +102,7 @@ color_notebook_new (GimpViewable *viewable,
GtkWidget *table;
GtkWidget *button;
GtkWidget *arrow;
const gchar *role;
gint i;
g_return_val_if_fail (viewable == NULL || GIMP_IS_VIEWABLE (viewable), NULL);
@ -118,9 +119,11 @@ color_notebook_new (GimpViewable *viewable,
cnp->client_data = client_data;
cnp->wants_updates = wants_updates;
role = dialog_identifier ? dialog_identifier : "gimp-color-selector";
if (desc)
{
cnp->shell = gimp_viewable_dialog_new (viewable, title, dialog_identifier,
cnp->shell = gimp_viewable_dialog_new (viewable, title, role,
stock_id, desc,
parent,
color_notebook_help_func, NULL,
@ -130,7 +133,7 @@ color_notebook_new (GimpViewable *viewable,
}
else
{
cnp->shell = gimp_dialog_new (title, dialog_identifier,
cnp->shell = gimp_dialog_new (title, role,
parent, 0,
color_notebook_help_func, NULL,
NULL);