summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorMichael Natterer <mitch@imendio.com>2008-05-05 13:40:29 +0000
committerMichael Natterer <mitch@src.gnome.org>2008-05-05 13:40:29 +0000
commit80b99a7e9932e655a6794ddefe79eb7c3798fba4 (patch)
treee39698bb8ab8bf100c16d23893244e9747a40c46 /gtk
parent91e82e7e9e6b6b4fe0202c1f3946d2705f5ea0dc (diff)
downloadgtk+-80b99a7e9932e655a6794ddefe79eb7c3798fba4.tar.gz
gtk/gtkcellrenderercombo.h gtk/gtkcellrendererspin.h style cleanups for
2008-05-05 Michael Natterer <mitch@imendio.com> * gtk/gtkcellrenderercombo.h * gtk/gtkcellrendererspin.h * gtk/gtkfilechooserbutton.h: style cleanups for the sake of consistency. * gtk/gtkfilechooserdialog.h * gtk/gtkfilechooserwidget.h * gtk/gtkscalebutton.h: reorder instance and class structs to be in canonical order. svn path=/trunk/; revision=20074
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkcellrenderercombo.h9
-rw-r--r--gtk/gtkcellrendererspin.h7
-rw-r--r--gtk/gtkfilechooserbutton.h26
-rw-r--r--gtk/gtkfilechooserdialog.h15
-rw-r--r--gtk/gtkfilechooserwidget.h15
-rw-r--r--gtk/gtkscalebutton.h28
6 files changed, 44 insertions, 56 deletions
diff --git a/gtk/gtkcellrenderercombo.h b/gtk/gtkcellrenderercombo.h
index 2c35d0965f..ade6b8a4f8 100644
--- a/gtk/gtkcellrenderercombo.h
+++ b/gtk/gtkcellrenderercombo.h
@@ -17,7 +17,6 @@
* Boston, MA 02111-1307, USA.
*/
-
#ifndef __GTK_CELL_RENDERER_COMBO_H__
#define __GTK_CELL_RENDERER_COMBO_H__
@@ -32,8 +31,8 @@ G_BEGIN_DECLS
#define GTK_IS_CELL_RENDERER_COMBO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_RENDERER_COMBO))
#define GTK_IS_CELL_RENDERER_COMBO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_RENDERER_COMBO))
#define GTK_CELL_RENDERER_COMBO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_RENDERER_COMBO, GtkCellRendererTextClass))
-
-typedef struct _GtkCellRendererCombo GtkCellRendererCombo;
+
+typedef struct _GtkCellRendererCombo GtkCellRendererCombo;
typedef struct _GtkCellRendererComboClass GtkCellRendererComboClass;
struct _GtkCellRendererCombo
@@ -43,7 +42,7 @@ struct _GtkCellRendererCombo
GtkTreeModel *model;
gint text_column;
gboolean has_entry;
-
+
/*< private >*/
guint focus_out_id;
};
@@ -58,4 +57,4 @@ GtkCellRenderer *gtk_cell_renderer_combo_new (void);
G_END_DECLS
-#endif
+#endif /* __GTK_CELL_RENDERER_COMBO_H__ */
diff --git a/gtk/gtkcellrendererspin.h b/gtk/gtkcellrendererspin.h
index 35c2bff405..a6f66ad9e2 100644
--- a/gtk/gtkcellrendererspin.h
+++ b/gtk/gtkcellrendererspin.h
@@ -17,7 +17,6 @@
* Boston, MA 02111-1307, USA.
*/
-
#ifndef __GTK_CELL_RENDERER_SPIN_H__
#define __GTK_CELL_RENDERER_SPIN_H__
@@ -31,9 +30,9 @@ G_BEGIN_DECLS
#define GTK_IS_CELL_RENDERER_SPIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_RENDERER_SPIN))
#define GTK_IS_CELL_RENDERER_SPIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_RENDERER_SPIN))
#define GTK_CELL_RENDERER_SPIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_RENDERER_SPIN, GtkCellRendererTextClass))
-
-typedef struct _GtkCellRendererSpin GtkCellRendererSpin;
-typedef struct _GtkCellRendererSpinClass GtkCellRendererSpinClass;
+
+typedef struct _GtkCellRendererSpin GtkCellRendererSpin;
+typedef struct _GtkCellRendererSpinClass GtkCellRendererSpinClass;
typedef struct _GtkCellRendererSpinPrivate GtkCellRendererSpinPrivate;
struct _GtkCellRendererSpin
diff --git a/gtk/gtkfilechooserbutton.h b/gtk/gtkfilechooserbutton.h
index 979c4b577e..d2d24deeed 100644
--- a/gtk/gtkfilechooserbutton.h
+++ b/gtk/gtkfilechooserbutton.h
@@ -1,5 +1,5 @@
/* GTK+: gtkfilechooserbutton.h
- *
+ *
* Copyright (c) 2004 James M. Cape <jcape@ignore-your.tv>
*
* This library is free software; you can redistribute it and/or
@@ -26,24 +26,16 @@
G_BEGIN_DECLS
+#define GTK_TYPE_FILE_CHOOSER_BUTTON (gtk_file_chooser_button_get_type ())
+#define GTK_FILE_CHOOSER_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FILE_CHOOSER_BUTTON, GtkFileChooserButton))
+#define GTK_FILE_CHOOSER_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FILE_CHOOSER_BUTTON, GtkFileChooserButtonClass))
+#define GTK_IS_FILE_CHOOSER_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FILE_CHOOSER_BUTTON))
+#define GTK_IS_FILE_CHOOSER_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FILE_CHOOSER_BUTTON))
+#define GTK_FILE_CHOOSER_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FILE_CHOOSER_BUTTON, GtkFileChooserButtonClass))
-#define GTK_TYPE_FILE_CHOOSER_BUTTON \
- (gtk_file_chooser_button_get_type ())
-#define GTK_FILE_CHOOSER_BUTTON(object) \
- (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_FILE_CHOOSER_BUTTON, GtkFileChooserButton))
-#define GTK_FILE_CHOOSER_BUTTON_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FILE_CHOOSER_BUTTON, GtkFileChooserButtonClass))
-#define GTK_IS_FILE_CHOOSER_BUTTON(object) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((object), GTK_TYPE_FILE_CHOOSER_BUTTON))
-#define GTK_IS_FILE_CHOOSER_BUTTON_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FILE_CHOOSER_BUTTON))
-#define GTK_FILE_CHOOSER_BUTTON_GET_CLASS(object) \
- (G_TYPE_INSTANCE_GET_CLASS ((object), GTK_TYPE_FILE_CHOOSER_BUTTON, GtkFileChooserButtonClass))
-
-
-typedef struct _GtkFileChooserButton GtkFileChooserButton;
+typedef struct _GtkFileChooserButton GtkFileChooserButton;
typedef struct _GtkFileChooserButtonPrivate GtkFileChooserButtonPrivate;
-typedef struct _GtkFileChooserButtonClass GtkFileChooserButtonClass;
+typedef struct _GtkFileChooserButtonClass GtkFileChooserButtonClass;
struct _GtkFileChooserButton
{
diff --git a/gtk/gtkfilechooserdialog.h b/gtk/gtkfilechooserdialog.h
index 44cf39c0c6..0b410e1a90 100644
--- a/gtk/gtkfilechooserdialog.h
+++ b/gtk/gtkfilechooserdialog.h
@@ -33,15 +33,9 @@ G_BEGIN_DECLS
#define GTK_IS_FILE_CHOOSER_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FILE_CHOOSER_DIALOG))
#define GTK_FILE_CHOOSER_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FILE_CHOOSER_DIALOG, GtkFileChooserDialogClass))
-typedef struct _GtkFileChooserDialog GtkFileChooserDialog;
-typedef struct _GtkFileChooserDialogClass GtkFileChooserDialogClass;
-
+typedef struct _GtkFileChooserDialog GtkFileChooserDialog;
typedef struct _GtkFileChooserDialogPrivate GtkFileChooserDialogPrivate;
-
-struct _GtkFileChooserDialogClass
-{
- GtkDialogClass parent_class;
-};
+typedef struct _GtkFileChooserDialogClass GtkFileChooserDialogClass;
struct _GtkFileChooserDialog
{
@@ -50,6 +44,11 @@ struct _GtkFileChooserDialog
GtkFileChooserDialogPrivate *priv;
};
+struct _GtkFileChooserDialogClass
+{
+ GtkDialogClass parent_class;
+};
+
GType gtk_file_chooser_dialog_get_type (void) G_GNUC_CONST;
GtkWidget *gtk_file_chooser_dialog_new (const gchar *title,
GtkWindow *parent,
diff --git a/gtk/gtkfilechooserwidget.h b/gtk/gtkfilechooserwidget.h
index 2df7ded17f..194acb3be8 100644
--- a/gtk/gtkfilechooserwidget.h
+++ b/gtk/gtkfilechooserwidget.h
@@ -33,15 +33,9 @@ G_BEGIN_DECLS
#define GTK_IS_FILE_CHOOSER_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FILE_CHOOSER_WIDGET))
#define GTK_FILE_CHOOSER_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FILE_CHOOSER_WIDGET, GtkFileChooserWidgetClass))
-typedef struct _GtkFileChooserWidget GtkFileChooserWidget;
-typedef struct _GtkFileChooserWidgetClass GtkFileChooserWidgetClass;
-
+typedef struct _GtkFileChooserWidget GtkFileChooserWidget;
typedef struct _GtkFileChooserWidgetPrivate GtkFileChooserWidgetPrivate;
-
-struct _GtkFileChooserWidgetClass
-{
- GtkVBoxClass parent_class;
-};
+typedef struct _GtkFileChooserWidgetClass GtkFileChooserWidgetClass;
struct _GtkFileChooserWidget
{
@@ -50,6 +44,11 @@ struct _GtkFileChooserWidget
GtkFileChooserWidgetPrivate *priv;
};
+struct _GtkFileChooserWidgetClass
+{
+ GtkVBoxClass parent_class;
+};
+
GType gtk_file_chooser_widget_get_type (void) G_GNUC_CONST;
GtkWidget *gtk_file_chooser_widget_new (GtkFileChooserAction action);
GtkWidget *gtk_file_chooser_widget_new_with_backend (GtkFileChooserAction action,
diff --git a/gtk/gtkscalebutton.h b/gtk/gtkscalebutton.h
index 0644ace28d..19ca71eec2 100644
--- a/gtk/gtkscalebutton.h
+++ b/gtk/gtkscalebutton.h
@@ -30,7 +30,7 @@
* Modified by the GTK+ Team and others 2007. See the AUTHORS
* file for a list of people on the GTK+ Team. See the ChangeLog
* files for a list of changes. These files are distributed with
- * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/
#ifndef __GTK_SCALE_BUTTON_H__
@@ -51,12 +51,24 @@ typedef struct _GtkScaleButton GtkScaleButton;
typedef struct _GtkScaleButtonClass GtkScaleButtonClass;
typedef struct _GtkScaleButtonPrivate GtkScaleButtonPrivate;
+struct _GtkScaleButton
+{
+ GtkButton parent;
+
+ GtkWidget *plus_button;
+ GtkWidget *minus_button;
+
+ /*< private >*/
+ GtkScaleButtonPrivate *priv;
+};
+
struct _GtkScaleButtonClass
{
GtkButtonClass parent_class;
/* signals */
- void (* value_changed) (GtkScaleButton *button, gdouble value);
+ void (* value_changed) (GtkScaleButton *button,
+ gdouble value);
/* Padding for future expansion */
void (*_gtk_reserved1) (void);
@@ -65,17 +77,6 @@ struct _GtkScaleButtonClass
void (*_gtk_reserved4) (void);
};
-struct _GtkScaleButton
-{
- GtkButton parent;
-
- GtkWidget *plus_button;
- GtkWidget *minus_button;
-
- /*< private >*/
- GtkScaleButtonPrivate *priv;
-};
-
GType gtk_scale_button_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_scale_button_new (GtkIconSize size,
gdouble min,
@@ -94,4 +95,3 @@ void gtk_scale_button_set_adjustment (GtkScaleButton *button,
G_END_DECLS
#endif /* __GTK_SCALE_BUTTON_H__ */
-