summaryrefslogtreecommitdiff
path: root/gtk/gtkappchoosercombobox.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2010-11-24 18:32:05 -0500
committerMatthias Clasen <mclasen@redhat.com>2010-11-24 18:32:05 -0500
commita498d9a9bac007fb2b9b7ab3a960b853818867c2 (patch)
tree6514981cf4725c213b9fb857dd754c921c29dbee /gtk/gtkappchoosercombobox.h
parentf64448473e8d718f35cc1cca04dee90499a2faee (diff)
downloadgtk+-a498d9a9bac007fb2b9b7ab3a960b853818867c2.tar.gz
Coding style fixups
This commit adjusts the app chooser code to GTK+ coding style: - line up prototypes - remove some excess {} - remove tabs and trailing whitespace - add docs
Diffstat (limited to 'gtk/gtkappchoosercombobox.h')
-rw-r--r--gtk/gtkappchoosercombobox.h36
1 files changed, 15 insertions, 21 deletions
diff --git a/gtk/gtkappchoosercombobox.h b/gtk/gtkappchoosercombobox.h
index 4bd268b86e..b124c7a65e 100644
--- a/gtk/gtkappchoosercombobox.h
+++ b/gtk/gtkappchoosercombobox.h
@@ -31,25 +31,19 @@
#include <gtk/gtkcombobox.h>
#include <gio/gio.h>
-#define GTK_TYPE_APP_CHOOSER_COMBO_BOX\
- (gtk_app_chooser_combo_box_get_type ())
-#define GTK_APP_CHOOSER_COMBO_BOX(obj)\
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_APP_CHOOSER_COMBO_BOX, GtkAppChooserComboBox))
-#define GTK_APP_CHOOSER_COMBO_BOX_CLASS(klass)\
- (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_APP_CHOOSER_COMBO_BOX, GtkAppChooserComboBoxClass))
-#define GTK_IS_APP_CHOOSER_COMBO_BOX(obj)\
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_APP_CHOOSER_COMBO_BOX))
-#define GTK_IS_APP_CHOOSER_COMBO_BOX_CLASS(klass)\
- (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_APP_CHOOSER_COMBO_BOX))
-#define GTK_APP_CHOOSER_COMBO_BOX_GET_CLASS(obj)\
- (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_APP_CHOOSER_COMBO_BOX, GtkAppChooserComboBoxClass))
+#define GTK_TYPE_APP_CHOOSER_COMBO_BOX (gtk_app_chooser_combo_box_get_type ())
+#define GTK_APP_CHOOSER_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_APP_CHOOSER_COMBO_BOX, GtkAppChooserComboBox))
+#define GTK_APP_CHOOSER_COMBO_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_APP_CHOOSER_COMBO_BOX, GtkAppChooserComboBoxClass))
+#define GTK_IS_APP_CHOOSER_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_APP_CHOOSER_COMBO_BOX))
+#define GTK_IS_APP_CHOOSER_COMBO_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_APP_CHOOSER_COMBO_BOX))
+#define GTK_APP_CHOOSER_COMBO_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_APP_CHOOSER_COMBO_BOX, GtkAppChooserComboBoxClass))
typedef struct _GtkAppChooserComboBox GtkAppChooserComboBox;
typedef struct _GtkAppChooserComboBoxClass GtkAppChooserComboBoxClass;
typedef struct _GtkAppChooserComboBoxPrivate GtkAppChooserComboBoxPrivate;
typedef void (* GtkAppChooserComboBoxItemFunc) (GtkAppChooserComboBox *self,
- gpointer user_data);
+ gpointer user_data);
struct _GtkAppChooserComboBox {
GtkComboBox parent;
@@ -65,15 +59,15 @@ struct _GtkAppChooserComboBoxClass {
gpointer padding[16];
};
-GType gtk_app_chooser_combo_box_get_type (void) G_GNUC_CONST;
+GType gtk_app_chooser_combo_box_get_type (void) G_GNUC_CONST;
-GtkWidget * gtk_app_chooser_combo_box_new (const gchar *content_type);
+GtkWidget * gtk_app_chooser_combo_box_new (const gchar *content_type);
-void gtk_app_chooser_combo_box_append_separator (GtkAppChooserComboBox *self);
-void gtk_app_chooser_combo_box_append_custom_item (GtkAppChooserComboBox *self,
- const gchar *label,
- GIcon *icon,
- GtkAppChooserComboBoxItemFunc func,
- gpointer user_data);
+void gtk_app_chooser_combo_box_append_separator (GtkAppChooserComboBox *self);
+void gtk_app_chooser_combo_box_append_custom_item (GtkAppChooserComboBox *self,
+ const gchar *label,
+ GIcon *icon,
+ GtkAppChooserComboBoxItemFunc func,
+ gpointer user_data);
#endif /* __GTK_APP_CHOOSER_COMBO_BOX_H__ */