mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 04:22:29 +00:00
b1a1da88c5
2008-05-10 Michael Natterer <mitch@gimp.org> Start changing the "Dialogs" menu to "Windows", still incomplete. Addresses bug #309707. * app/actions/Makefile.am * app/actions/windows-actions.[ch] * app/actions/windows-commands.[ch]: new files which currently hold the "show toolbox" action and callback and new code which maintains automatically generated actions for accessing (raising) all open images. * app/actions/actions.c: register the new "windows" action group. * app/actions/dialogs-actions.c * app/actions/dialogs-commands.[ch]: remove "show toolbox" action and callback and also the action for the "Disalogs" menu. * app/menus/Makefile.am * app/menus/windows-menu.[ch]: new files which create and destroy the menu items for the image window actions. * app/menus/menus.c: register the "windows" action group with all UI managers that have the "dialogs" action group. * app/menus/image-menu.c (image_menu_setup): call windows_menu_setup(). * app/gui/gui.c: s/dialogs_show_toolbox/windows_show_toolbox/g * menus/image-menu.xml.in: some minor s/dialogs/windows/ and add the "Images" submenu. svn path=/trunk/; revision=25623
51 lines
1.4 KiB
C
51 lines
1.4 KiB
C
/* GIMP - The GNU Image Manipulation Program
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
#include "config.h"
|
|
|
|
#include <string.h>
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
#include "menus-types.h"
|
|
|
|
#include "file-menu.h"
|
|
#include "image-menu.h"
|
|
#include "plug-in-menus.h"
|
|
#include "window-menu.h"
|
|
#include "windows-menu.h"
|
|
|
|
|
|
void
|
|
image_menu_setup (GimpUIManager *manager,
|
|
const gchar *ui_path)
|
|
{
|
|
gchar *path;
|
|
|
|
if (! strcmp (ui_path, "/dummy-menubar"))
|
|
ui_path = "/dummy-menubar/image-popup";
|
|
|
|
file_menu_setup (manager, ui_path);
|
|
windows_menu_setup (manager, ui_path);
|
|
plug_in_menus_setup (manager, ui_path);
|
|
|
|
path = g_strconcat (ui_path, "/View", NULL);
|
|
window_menu_setup (manager, "view", path);
|
|
g_free (path);
|
|
}
|