1
/* GIMP - The GNU Image Manipulation Program
2
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23
#include "libgimpwidgets/gimpwidgets.h"
25
#include "actions-types.h"
27
#include "core/gimpcontainer.h"
29
#include "widgets/gimpdialogfactory.h"
30
#include "widgets/gimpsessioninfo.h"
32
#include "display/gimpdisplay.h"
34
#include "dialogs/dialogs.h"
36
#include "windows-commands.h"
39
/* public functions */
42
windows_show_toolbox_cmd_callback (GtkAction *action,
45
windows_show_toolbox ();
49
windows_show_display_cmd_callback (GtkAction *action,
52
GimpDisplay *display = g_object_get_data (G_OBJECT (action), "display");
54
gtk_window_present (GTK_WINDOW (display->shell));
58
windows_show_dock_cmd_callback (GtkAction *action,
61
GtkWindow *dock = g_object_get_data (G_OBJECT (action), "dock");
63
gtk_window_present (dock);
67
windows_open_recent_cmd_callback (GtkAction *action,
70
GimpSessionInfo *info = g_object_get_data (G_OBJECT (action), "info");
73
gimp_container_remove (global_recent_docks, GIMP_OBJECT (info));
75
global_dock_factory->session_infos =
76
g_list_append (global_dock_factory->session_infos, info);
78
gimp_session_info_restore (info, global_dock_factory);
79
gimp_session_info_clear_info (info);
83
windows_show_toolbox (void)
85
if (! global_toolbox_factory->open_dialogs)
89
toolbox = gimp_dialog_factory_dock_new (global_toolbox_factory,
90
gdk_screen_get_default ());
92
gtk_widget_show (toolbox);
96
gimp_dialog_factory_show_toolbox (global_toolbox_factory);