2006-12-10 05:33:38 +08:00
|
|
|
/* GIMP - The GNU Image Manipulation Program
|
2003-01-13 22:08:10 +08:00
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
2003-01-13 22:08:10 +08:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
2009-01-18 06:28:01 +08:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2003-01-13 22:08:10 +08:00
|
|
|
* (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
|
2009-01-18 06:28:01 +08:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2003-01-13 22:08:10 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
2004-05-17 21:38:03 +08:00
|
|
|
#include <string.h>
|
|
|
|
|
2003-01-13 22:08:10 +08:00
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
2004-05-06 15:41:53 +08:00
|
|
|
#include "menus-types.h"
|
2003-01-13 22:08:10 +08:00
|
|
|
|
2004-05-13 19:17:29 +08:00
|
|
|
#include "file-menu.h"
|
2003-01-13 22:08:10 +08:00
|
|
|
#include "image-menu.h"
|
|
|
|
#include "plug-in-menus.h"
|
2005-01-29 03:48:31 +08:00
|
|
|
#include "window-menu.h"
|
2008-05-11 00:21:37 +08:00
|
|
|
#include "windows-menu.h"
|
2003-01-13 22:08:10 +08:00
|
|
|
|
|
|
|
|
2004-04-26 23:51:21 +08:00
|
|
|
void
|
2004-04-29 20:52:29 +08:00
|
|
|
image_menu_setup (GimpUIManager *manager,
|
|
|
|
const gchar *ui_path)
|
2004-04-26 23:51:21 +08:00
|
|
|
{
|
2005-01-29 03:48:31 +08:00
|
|
|
gchar *path;
|
|
|
|
|
2004-05-17 21:38:03 +08:00
|
|
|
if (! strcmp (ui_path, "/dummy-menubar"))
|
|
|
|
ui_path = "/dummy-menubar/image-popup";
|
|
|
|
|
2004-05-13 19:17:29 +08:00
|
|
|
file_menu_setup (manager, ui_path);
|
2008-05-11 00:21:37 +08:00
|
|
|
windows_menu_setup (manager, ui_path);
|
2004-04-27 21:55:26 +08:00
|
|
|
plug_in_menus_setup (manager, ui_path);
|
2005-01-29 03:48:31 +08:00
|
|
|
|
|
|
|
path = g_strconcat (ui_path, "/View", NULL);
|
|
|
|
window_menu_setup (manager, "view", path);
|
|
|
|
g_free (path);
|
2004-04-26 23:51:21 +08:00
|
|
|
}
|