Commit cf4a649f authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

renamed gimp_ui_manager_get_action() to gimp_ui_manager_find_action().

2004-12-08  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpuimanager.[ch]: renamed
	gimp_ui_manager_get_action() to gimp_ui_manager_find_action().

	* app/widgets/gimpcolormapeditor.c
	* app/widgets/gimpitemtreeview.c
	* app/widgets/gimppaletteeditor.c
	* app/widgets/gimptoolbox.c
	* app/widgets/gimptooloptionseditor.c
	* app/display/gimpdisplayshell-close.c: changed accordingly.

	(this change is quite useless as it stands, but will help keeping
	the diff between 2.2 and 2.3 small as soon as we're branched).

	* app/widgets/gimpcolormapeditor.c
	(gimp_colormap_preview_button_press): invoke the "edit-color", not
	"new-color" action upon double click.

	(palette_editor_select_entry): update the ui manager after
	selecting the entry so the entry-specific actions become sensitive
	if there was no entry selected before.
parent d90360e2
2004-12-08 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpuimanager.[ch]: renamed
gimp_ui_manager_get_action() to gimp_ui_manager_find_action().
* app/widgets/gimpcolormapeditor.c
* app/widgets/gimpitemtreeview.c
* app/widgets/gimppaletteeditor.c
* app/widgets/gimptoolbox.c
* app/widgets/gimptooloptionseditor.c
* app/display/gimpdisplayshell-close.c: changed accordingly.
(this change is quite useless as it stands, but will help keeping
the diff between 2.2 and 2.3 small as soon as we're branched).
* app/widgets/gimpcolormapeditor.c
(gimp_colormap_preview_button_press): invoke the "edit-color", not
"new-color" action upon double click.
(palette_editor_select_entry): update the ui manager after
selecting the entry so the entry-specific actions become sensitive
if there was no entry selected before.
2004-12-08 Michael Natterer <mitch@gimp.org>
* app/widgets/gimppropwidgets.[ch]: added new prop_widget
......
......@@ -236,8 +236,8 @@ gimp_display_shell_close_response (GtkWidget *widget,
{
GtkAction *action;
action = gimp_ui_manager_get_action (shell->menubar_manager,
"file", "file-save");
action = gimp_ui_manager_find_action (shell->menubar_manager,
"file", "file-save");
g_return_if_fail (action != NULL);
......
......@@ -721,9 +721,9 @@ gimp_colormap_preview_button_press (GtkWidget *widget,
{
GtkAction *action;
action = gimp_ui_manager_get_action (GIMP_EDITOR (editor)->ui_manager,
"colormap-editor",
"colormap-editor-edit-color");
action = gimp_ui_manager_find_action (GIMP_EDITOR (editor)->ui_manager,
"colormap-editor",
"colormap-editor-edit-color");
if (action)
gtk_action_activate (action);
......
......@@ -677,9 +677,9 @@ gimp_item_tree_view_activate_item (GimpContainerView *view,
{
GtkAction *action;
action = gimp_ui_manager_get_action (GIMP_EDITOR (view)->ui_manager,
item_view_class->action_group,
item_view_class->activate_action);
action = gimp_ui_manager_find_action (GIMP_EDITOR (view)->ui_manager,
item_view_class->action_group,
item_view_class->activate_action);
if (action)
gtk_action_activate (action);
......@@ -804,9 +804,9 @@ gimp_item_tree_view_new_dropped (GtkWidget *widget,
{
GtkAction *action;
action = gimp_ui_manager_get_action (GIMP_EDITOR (view)->ui_manager,
item_view_class->action_group,
item_view_class->new_default_action);
action = gimp_ui_manager_find_action (GIMP_EDITOR (view)->ui_manager,
item_view_class->action_group,
item_view_class->new_default_action);
if (action)
{
......
......@@ -644,9 +644,9 @@ palette_editor_color_area_button_press (GtkWidget *widget,
{
GtkAction *action;
action = gimp_ui_manager_get_action (GIMP_EDITOR (editor)->ui_manager,
"palette-editor",
"palette-editor-new-color");
action = gimp_ui_manager_find_action (GIMP_EDITOR (editor)->ui_manager,
"palette-editor",
"palette-editor-edit-color");
if (action)
gtk_action_activate (action);
......@@ -1004,6 +1004,9 @@ palette_editor_select_entry (GimpPaletteEditor *editor,
gtk_widget_set_sensitive (editor->color_name,
entry && data_editor->data_editable);
gimp_ui_manager_update (GIMP_EDITOR (editor)->ui_manager,
GIMP_EDITOR (editor)->popup_data);
}
}
......
......@@ -764,7 +764,7 @@ toolbox_create_tools (GimpToolbox *toolbox,
name = g_strdup_printf ("tools-%s", tmp);
g_free (tmp);
action = gimp_ui_manager_get_action (ui_manager, "tools", name);
action = gimp_ui_manager_find_action (ui_manager, "tools", name);
g_free (name);
......
......@@ -353,9 +353,9 @@ gimp_tool_options_editor_save_clicked (GtkWidget *widget,
{
GtkAction *action;
action = gimp_ui_manager_get_action (GIMP_EDITOR (editor)->ui_manager,
"tool-options",
"tool-options-save-new");
action = gimp_ui_manager_find_action (GIMP_EDITOR (editor)->ui_manager,
"tool-options",
"tool-options-save-new");
if (action)
gtk_action_activate (action);
......
......@@ -426,9 +426,9 @@ gimp_ui_manager_get_action_group (GimpUIManager *manager,
}
GtkAction *
gimp_ui_manager_get_action (GimpUIManager *manager,
const gchar *group_name,
const gchar *action_name)
gimp_ui_manager_find_action (GimpUIManager *manager,
const gchar *group_name,
const gchar *action_name)
{
GimpActionGroup *group;
......
......@@ -77,7 +77,7 @@ void gimp_ui_manager_update (GimpUIManager *manager,
gpointer update_data);
GimpActionGroup * gimp_ui_manager_get_action_group (GimpUIManager *manager,
const gchar *name);
GtkAction * gimp_ui_manager_get_action (GimpUIManager *manager,
GtkAction * gimp_ui_manager_find_action (GimpUIManager *manager,
const gchar *group_name,
const gchar *action_name);
......
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