mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 12:32:37 +00:00
b879840890
2002-03-14 Michael Natterer <mitch@gimp.org> * app/core/gimptoolinfo.c: g_strdup() the stock_id passed to gimp_tool_info_new() because the caller's memory may disappear after registering the tool (tool modules). Made a GimpDock out of the toolbox: * app/gui/Makefile.am * app/gui/color-area.[ch] * app/gui/indicator-area.[ch] * app/gui/toolbox.[ch]: removed... * app/widgets/Makefile.am * app/widgets/widgets-types.h * app/widgets/gimptoolbox-color-area.[ch] * app/widgets/gimptoolbox-indicator-area.[ch] * app/widgets/gimptoolbox.[ch]: ...and added here. * app/widgets/gimpdock.[ch]: don't set a minimal width. Added a "destroy_if_empty" boolean so we can prevent destruction of the toolbox if it's last dockable is removed. Added gimp_dock_construct() which is called from GimpImageDock and GimpToolbox. * app/widgets/gimpimagedock.[ch]: Default to not showing the image menu, set a minimal width here, misc. minor cleanup. * app/widgets/gimpdockbook.c: some more GIMP_IS_IMAGE_DOCK() checks, fixed dnd widget creation. * app/widgets/gimpdialogfactory.[ch]: changed gimp_dialog_factories_toggle() to take just the toolbox_factory as parameter. When restoring the session use the created dock's dialog factory to create dockables, not the the factory we created the dock from (for the toolbox). * app/display/gimpdisplayshell-callbacks.c: changed accordingly. * app/gui/dialogs.[ch]: create an own dialog factory for the toolbox and set dialogs_toolbox_new() as it's new_dock_func. * app/gui/dialogs-constructors.[ch]: changed dialogs_toolbox_get() accordingly. * app/gui/dialogs-commands.[ch]: added dialogs_show_toolbox(), ckeck if a dock is really a GimpImageDock before casting. * app/gui/gui.c * app/gui/menus.c * app/widgets/gimppaletteeditor.c: changed accordingly. * app/gui/color-notebook.c * app/gui/color-select.c * app/gui/colormap-dialog.c * app/gui/palette-editor-commands.c: removed useless inclusion of "gui/color-area.h". * themes/Default/gtkrc: set "gimp-dock-style" for GimpToolbox widgets.
68 lines
2.5 KiB
C
68 lines
2.5 KiB
C
/* The GIMP -- an 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.
|
|
*/
|
|
|
|
#ifndef __DIALOGS_COMMANDS_H__
|
|
#define __DIALOGS_COMMANDS_H__
|
|
|
|
|
|
void dialogs_show_toolbox_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
void dialogs_create_toplevel_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
void dialogs_create_dockable_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
|
|
void dialogs_add_tab_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
void dialogs_remove_tab_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
|
|
void dialogs_toggle_view_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
void dialogs_preview_size_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
|
|
void dialogs_toggle_image_menu_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
void dialogs_toggle_auto_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
|
|
void dialogs_create_lc_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
void dialogs_create_stuff_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
|
|
void dialogs_show_toolbox (void);
|
|
|
|
void dialogs_menu_update (GtkItemFactory *factory,
|
|
gpointer data);
|
|
|
|
|
|
#endif /* __DIALOGS_COMMANDS_H__ */
|