Commit 34aefd3e authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

set the accelerators for the "Open Recent" items > 10 to "" instead of

2001-11-29  Michael Natterer  <mitch@gimp.org>

	* app/gui/menus.c: set the accelerators for the "Open Recent"
	items > 10 to "" instead of NULL so gtk+ doesn't use the stock
	item's default accel.

	* app/widgets/gimpdock.c
	* app/widgets/gimpimagedock.c: set the docks' titles to
	"Gimp Dock #<n>" instead of just "Gimp" so they can be
	distinguished in the WM's window list or dock or whatever.
parent b017fa15
2001-11-29 Michael Natterer <mitch@gimp.org>
* app/gui/menus.c: set the accelerators for the "Open Recent"
items > 10 to "" instead of NULL so gtk+ doesn't use the stock
item's default accel.
* app/widgets/gimpdock.c
* app/widgets/gimpimagedock.c: set the docks' titles to
"Gimp Dock #<n>" instead of just "Gimp" so they can be
distinguished in the WM's window list or dock or whatever.
2001-11-29 Michael Natterer <mitch@gimp.org>
* app/gui/menus.c: put the last_opened menu entries in a
......@@ -224,7 +235,7 @@
items to the name of the last plug-in (Fixes #50986).
* app/display/gimpdisplayshell.[ch]: set the labels of "Undo" and
"Redo" to the resp. undo names. Much simplified the WM icon stuff
"Redo" to the resp. undo names. Much simplified the WM-icon stuff
by removing most code and using gimp_viewable_get_new_preview_pixbuf().
* app/widgets/gimpbrushfactoryview.c: forgot to assign the GQuark
......
......@@ -1788,7 +1788,7 @@ menus_init (Gimp *gimp)
last_opened_entries[i].entry.accelerator =
g_strdup_printf ("<control>%d", i + 1);
else
last_opened_entries[i].entry.accelerator = NULL;
last_opened_entries[i].entry.accelerator = "";
last_opened_entries[i].entry.callback = file_last_opened_cmd_callback;
last_opened_entries[i].entry.callback_action = i;
......
......@@ -1788,7 +1788,7 @@ menus_init (Gimp *gimp)
last_opened_entries[i].entry.accelerator =
g_strdup_printf ("<control>%d", i + 1);
else
last_opened_entries[i].entry.accelerator = NULL;
last_opened_entries[i].entry.accelerator = "";
last_opened_entries[i].entry.callback = file_last_opened_cmd_callback;
last_opened_entries[i].entry.callback_action = i;
......
......@@ -137,7 +137,6 @@ gimp_dock_init (GimpDock *dock)
dock->context = NULL;
gtk_window_set_title (GTK_WINDOW (dock), "Gimp");
gtk_window_set_wmclass (GTK_WINDOW (dock), "dock", "Gimp");
gtk_window_set_policy (GTK_WINDOW (dock), FALSE, TRUE, TRUE);
......
......@@ -163,12 +163,19 @@ gimp_image_dock_new (GimpDialogFactory *factory,
{
GimpImageDock *image_dock;
GimpDock *dock;
gchar *title;
static gint dock_counter = 1;
g_return_val_if_fail (GIMP_IS_DIALOG_FACTORY (factory), NULL);
g_return_val_if_fail (GIMP_IS_CONTAINER (image_container), NULL);
image_dock = g_object_new (GIMP_TYPE_IMAGE_DOCK, NULL);
title = g_strdup_printf (_("Gimp Dock #%d"), dock_counter++);
gtk_window_set_title (GTK_WINDOW (image_dock), title);
g_free (title);
dock = GIMP_DOCK (image_dock);
image_dock->image_container = image_container;
......
......@@ -163,12 +163,19 @@ gimp_image_dock_new (GimpDialogFactory *factory,
{
GimpImageDock *image_dock;
GimpDock *dock;
gchar *title;
static gint dock_counter = 1;
g_return_val_if_fail (GIMP_IS_DIALOG_FACTORY (factory), NULL);
g_return_val_if_fail (GIMP_IS_CONTAINER (image_container), NULL);
image_dock = g_object_new (GIMP_TYPE_IMAGE_DOCK, NULL);
title = g_strdup_printf (_("Gimp Dock #%d"), dock_counter++);
gtk_window_set_title (GTK_WINDOW (image_dock), title);
g_free (title);
dock = GIMP_DOCK (image_dock);
image_dock->image_container = image_container;
......
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