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