made a real object (GtkDialog subclass) out of it. The API will change
2001-09-20 Michael Natterer <mitch@gimp.org> * libgimpwidgets/gimpdialog.[ch]: made a real object (GtkDialog subclass) out of it. The API will change soon too. * libgimpwidgets/gimpwidgetstypes.h: added GimpDialog typedef. * libgimpwidgets/gimpbutton.[ch] * libgimpwidgets/gimpchainbutton.[ch] * libgimpwidgets/gimpcolorarea.[ch] * libgimpwidgets/gimpcolorbutton.[ch] * libgimpwidgets/gimpfileselection.[ch] * libgimpwidgets/gimpoffsetarea.[ch] * libgimpwidgets/gimppatheditor.[ch] * libgimpwidgets/gimppixmap.c * libgimpwidgets/gimpsizeentry.c * libgimpwidgets/gimpunitmenu.c: removed GtkType stuff and use GType in all get_type() functions. Some random GObject porting. * app/gui/info-dialog.c * app/gui/info-window.c * app/tools/gimpcolorpickertool.c * app/tools/gimpcroptool.c * app/tools/gimpmeasuretool.c * app/tools/gimptransformtool.c: changed accordingly.
This commit is contained in:

committed by
Michael Natterer

parent
58afaec679
commit
cb474a0845
@ -23,6 +23,10 @@
|
||||
#ifndef __GIMP_DIALOG_H__
|
||||
#define __GIMP_DIALOG_H__
|
||||
|
||||
|
||||
#include <gtk/gtkdialog.h>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
@ -30,6 +34,29 @@ extern "C" {
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
#define GIMP_TYPE_DIALOG (gimp_dialog_get_type ())
|
||||
#define GIMP_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_DIALOG, GimpDialog))
|
||||
#define GIMP_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_DIALOG, GimpDialogClass))
|
||||
#define GIMP_IS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_DIALOG))
|
||||
#define GIMP_IS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_DIALOG))
|
||||
#define GIMP_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_DIALOG, GimpDialogClass))
|
||||
|
||||
|
||||
typedef struct _GimpDialogClass GimpDialogClass;
|
||||
|
||||
struct _GimpDialog
|
||||
{
|
||||
GtkDialog parent_instance;
|
||||
};
|
||||
|
||||
struct _GimpDialogClass
|
||||
{
|
||||
GtkDialogClass parent_class;
|
||||
};
|
||||
|
||||
|
||||
GType gimp_dialog_get_type (void);
|
||||
|
||||
GtkWidget * gimp_dialog_new (const gchar *title,
|
||||
const gchar *wmclass_name,
|
||||
GimpHelpFunc help_func,
|
||||
@ -62,9 +89,7 @@ GtkWidget * gimp_dialog_newv (const gchar *title,
|
||||
gint auto_shrink,
|
||||
va_list args);
|
||||
|
||||
void gimp_dialog_set_icon (GtkWindow *dialog);
|
||||
|
||||
void gimp_dialog_create_action_area (GtkDialog *dialog,
|
||||
void gimp_dialog_create_action_area (GimpDialog *dialog,
|
||||
|
||||
/* specify action area buttons
|
||||
* as va_list:
|
||||
@ -79,9 +104,11 @@ void gimp_dialog_create_action_area (GtkDialog *dialog,
|
||||
|
||||
...);
|
||||
|
||||
void gimp_dialog_create_action_areav (GtkDialog *dialog,
|
||||
void gimp_dialog_create_action_areav (GimpDialog *dialog,
|
||||
va_list args);
|
||||
|
||||
void gimp_dialog_set_icon (GtkWindow *dialog);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
Reference in New Issue
Block a user