/* Private types. */
/*========================================================*/
-typedef struct
+struct _glLabelPropertiesDialogPrivate
{
glLabel *label;
GtkBox *box;
GtkBox *orientation_box;
GtkRadioButton *normal_orientation;
GtkRadioButton *rotated_orientation;
-
-} glLabelPropertiesDialogPrivate;
-
-
-struct _glLabelPropertiesDialog
-{
- GtkDialog parent;
-
- glLabelPropertiesDialogPrivate *priv;
};
/*****************************************************************************/
/* Boilerplate object stuff. */
/*****************************************************************************/
-
-G_DEFINE_TYPE_WITH_PRIVATE (glLabelPropertiesDialog, gl_label_properties_dialog, GTK_TYPE_DIALOG)
+G_DEFINE_TYPE (glLabelPropertiesDialog, gl_label_properties_dialog, GTK_TYPE_DIALOG)
gl_debug (DEBUG_UI, "START");
- dialog->priv = gl_label_properties_dialog_get_instance_private (dialog);
+ dialog->priv = g_new0 (glLabelPropertiesDialogPrivate, 1);
vbox = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
#define GL_RESPONSE_SELECT_OTHER 1
#define GL_TYPE_LABEL_PROPERTIES_DIALOG (gl_label_properties_dialog_get_type ())
+#define GL_LABEL_PROPERTIES_DIALOG(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST ((obj), GL_TYPE_LABEL_PROPERTIES_DIALOG, glLabelPropertiesDialog))
+#define GL_LABEL_PROPERTIES_DIALOG_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST ((klass), GL_TYPE_LABEL_PROPERTIES_DIALOG, glLabelPropertiesDialogClass))
+#define GL_IS_LABEL_PROPERTIES_DIALOG(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GL_TYPE_LABEL_PROPERTIES_DIALOG))
+#define GL_IS_LABEL_PROPERTIES_DIALOG_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE ((klass), GL_TYPE_LABEL_PROPERTIES_DIALOG))
+#define GL_LABEL_PROPERTIES_DIALOG_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_CLASS ((obj), GL_TYPE_LABEL_PROPERTIES_DIALOG, glLabelPropertiesDialogClass))
+
+typedef struct _glLabelPropertiesDialog glLabelPropertiesDialog;
+typedef struct _glLabelPropertiesDialogClass glLabelPropertiesDialogClass;
+
+typedef struct _glLabelPropertiesDialogPrivate glLabelPropertiesDialogPrivate;
+
+struct _glLabelPropertiesDialog
+{
+ GtkDialog parent_instance;
+
+ glLabelPropertiesDialogPrivate *priv;
+};
+
+struct _glLabelPropertiesDialogClass
+{
+ GtkDialogClass parent_class;
+};
-G_DECLARE_FINAL_TYPE (glLabelPropertiesDialog, gl_label_properties_dialog, GL, LABEL_PROPERTIES_DIALOG, GtkDialog)
GtkWidget *gl_label_properties_dialog_new (glLabel *label, GtkWindow *parent);