
2001-07-30 Michael Natterer <mitch@gimp.org> * gtkrc: set the width of the scrollbar slider to the same value as our default font size so the sliders are nicely aligned with their descriptive labels. * libgimpwidgets/gimpdialog.[ch] * libgimpwidgets/gimpquerybox.[ch]: use GLib-isms and create the dialogs' action_area buttons with gtk_dialog_add_button() so we can use the GTK_STOCK_FOO buttons and plug in our own icon factory later. * app/qmask.[ch]: fixed the qmask buttons by applying proper GdkEvent callback conventions. * libgimpwidgets/gimpcolorbutton.c: NULLify all pointers in "destroy". * app/gdisplay_ops.c * app/gimphelp.c * app/interface.c * app/gui/brush-editor.c * app/gui/color-notebook.c * app/gui/convert-dialog.c * app/gui/dialogs-constructors.c * app/gui/file-commands.c * app/gui/file-new-dialog.c * app/gui/file-save-dialog.c * app/gui/gradient-editor.c * app/gui/gui.c * app/gui/image-commands.c * app/gui/layers-commands.c * app/gui/offset-dialog.c * app/gui/palette-editor.c * app/gui/palette-import-dialog.c * app/gui/preferences-dialog.c * app/gui/resize-dialog.c * app/gui/resolution-calibrate-dialog.c * app/gui/tool-options-dialog.c * app/widgets/gimpwidgets-utils.c * libgimpwidgets/gimpunitmenu.c: g_signal_* and GObject stuff, use lots of GTK_STOCK_OK and friends instead of _("OK") etc., misc minor cleanups.
91 lines
2.9 KiB
C
91 lines
2.9 KiB
C
/* LIBGIMP - The GIMP Library
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
*
|
|
* gimpdialog.h
|
|
* Copyright (C) 2000 Michael Natterer <mitch@gimp.org>
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library 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
|
|
* Library General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
* Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
#ifndef __GIMP_DIALOG_H__
|
|
#define __GIMP_DIALOG_H__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif /* __cplusplus */
|
|
|
|
/* For information look into the C source or the html documentation */
|
|
|
|
|
|
GtkWidget * gimp_dialog_new (const gchar *title,
|
|
const gchar *wmclass_name,
|
|
GimpHelpFunc help_func,
|
|
const gchar *help_data,
|
|
GtkWindowPosition position,
|
|
gint allow_shrink,
|
|
gint allow_grow,
|
|
gint auto_shrink,
|
|
|
|
/* specify action area buttons
|
|
* as va_list:
|
|
* const gchar *label,
|
|
* GCallback callback,
|
|
* gpointer callback_data,
|
|
* GObject *slot_object,
|
|
* GtkWidget **widget_ptr,
|
|
* gboolean default_action,
|
|
* gboolean connect_delete,
|
|
*/
|
|
|
|
...);
|
|
|
|
GtkWidget * gimp_dialog_newv (const gchar *title,
|
|
const gchar *wmclass_name,
|
|
GimpHelpFunc help_func,
|
|
const gchar *help_data,
|
|
GtkWindowPosition position,
|
|
gint allow_shrink,
|
|
gint allow_grow,
|
|
gint auto_shrink,
|
|
va_list args);
|
|
|
|
void gimp_dialog_set_icon (GtkWindow *dialog);
|
|
|
|
void gimp_dialog_create_action_area (GtkDialog *dialog,
|
|
|
|
/* specify action area buttons
|
|
* as va_list:
|
|
* const gchar *label,
|
|
* GCallback callback,
|
|
* gpointer callback_data,
|
|
* GObject *slot_object,
|
|
* GtkWidget **widget_ptr,
|
|
* gboolean default_action,
|
|
* gboolean connect_delete,
|
|
*/
|
|
|
|
...);
|
|
|
|
void gimp_dialog_create_action_areav (GtkDialog *dialog,
|
|
va_list args);
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif /* __cplusplus */
|
|
|
|
#endif /* __GIMP_DIALOG_H__ */
|