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

show the image menu in newly created layers, channels & paths docks.

2004-01-21  Michael Natterer  <mitch@gimp.org>

	* app/gui/dialogs-commands.c: show the image menu in newly created
	layers, channels & paths docks.
parent 8f2586a0
2004-01-21 Michael Natterer <mitch@gimp.org>
* app/gui/dialogs-commands.c: show the image menu in newly created
layers, channels & paths docks.
2004-01-21 Michael Natterer <mitch@gimp.org>
* app/tools/gimptool.[ch]: added boolean return value to
......@@ -41,6 +41,7 @@
/* local function prototypes */
static void dialogs_create_dock (GdkScreen *screen,
gboolean show_image_menu,
const gchar *tabs[],
gint n_tabs);
......@@ -417,7 +418,7 @@ dialogs_create_lc_cmd_callback (GtkWidget *widget,
"gimp-indexed-palette"
};
dialogs_create_dock (gtk_widget_get_screen (widget),
dialogs_create_dock (gtk_widget_get_screen (widget), TRUE,
tabs, G_N_ELEMENTS (tabs));
}
......@@ -435,7 +436,7 @@ dialogs_create_data_cmd_callback (GtkWidget *widget,
"gimp-font-list"
};
dialogs_create_dock (gtk_widget_get_screen (widget),
dialogs_create_dock (gtk_widget_get_screen (widget), FALSE,
tabs, G_N_ELEMENTS (tabs));
}
......@@ -452,7 +453,7 @@ dialogs_create_stuff_cmd_callback (GtkWidget *widget,
"gimp-template-list"
};
dialogs_create_dock (gtk_widget_get_screen (widget),
dialogs_create_dock (gtk_widget_get_screen (widget), FALSE,
tabs, G_N_ELEMENTS (tabs));
}
......@@ -490,6 +491,7 @@ dialogs_show_toolbox (void)
static void
dialogs_create_dock (GdkScreen *screen,
gboolean show_image_menu,
const gchar *tabs[],
gint n_tabs)
{
......@@ -500,6 +502,8 @@ dialogs_create_dock (GdkScreen *screen,
dock = gimp_dialog_factory_dock_new (global_dock_factory, screen);
gimp_image_dock_set_show_image_menu (GIMP_IMAGE_DOCK (dock), show_image_menu);
dockbook = gimp_dockbook_new (global_dock_factory->menu_factory);
gimp_dock_add_book (GIMP_DOCK (dock), GIMP_DOCKBOOK (dockbook), 0);
......
......@@ -41,6 +41,7 @@
/* local function prototypes */
static void dialogs_create_dock (GdkScreen *screen,
gboolean show_image_menu,
const gchar *tabs[],
gint n_tabs);
......@@ -417,7 +418,7 @@ dialogs_create_lc_cmd_callback (GtkWidget *widget,
"gimp-indexed-palette"
};
dialogs_create_dock (gtk_widget_get_screen (widget),
dialogs_create_dock (gtk_widget_get_screen (widget), TRUE,
tabs, G_N_ELEMENTS (tabs));
}
......@@ -435,7 +436,7 @@ dialogs_create_data_cmd_callback (GtkWidget *widget,
"gimp-font-list"
};
dialogs_create_dock (gtk_widget_get_screen (widget),
dialogs_create_dock (gtk_widget_get_screen (widget), FALSE,
tabs, G_N_ELEMENTS (tabs));
}
......@@ -452,7 +453,7 @@ dialogs_create_stuff_cmd_callback (GtkWidget *widget,
"gimp-template-list"
};
dialogs_create_dock (gtk_widget_get_screen (widget),
dialogs_create_dock (gtk_widget_get_screen (widget), FALSE,
tabs, G_N_ELEMENTS (tabs));
}
......@@ -490,6 +491,7 @@ dialogs_show_toolbox (void)
static void
dialogs_create_dock (GdkScreen *screen,
gboolean show_image_menu,
const gchar *tabs[],
gint n_tabs)
{
......@@ -500,6 +502,8 @@ dialogs_create_dock (GdkScreen *screen,
dock = gimp_dialog_factory_dock_new (global_dock_factory, screen);
gimp_image_dock_set_show_image_menu (GIMP_IMAGE_DOCK (dock), show_image_menu);
dockbook = gimp_dockbook_new (global_dock_factory->menu_factory);
gimp_dock_add_book (GIMP_DOCK (dock), GIMP_DOCKBOOK (dockbook), 0);
......
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