diff options
Diffstat (limited to 'src/trg-destination-combo.h')
-rw-r--r-- | src/trg-destination-combo.h | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/src/trg-destination-combo.h b/src/trg-destination-combo.h index 9ab5076..9ece8cc 100644 --- a/src/trg-destination-combo.h +++ b/src/trg-destination-combo.h @@ -26,32 +26,14 @@ #include "trg-client.h" G_BEGIN_DECLS -#define TRG_TYPE_DESTINATION_COMBO trg_destination_combo_get_type() -#define TRG_DESTINATION_COMBO(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRG_TYPE_DESTINATION_COMBO, TrgDestinationCombo)) -#define TRG_DESTINATION_COMBO_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST ((klass), TRG_TYPE_DESTINATION_COMBO, TrgDestinationComboClass)) -#define TRG_IS_DESTINATION_COMBO(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRG_TYPE_DESTINATION_COMBO)) -#define TRG_IS_DESTINATION_COMBO_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_TYPE ((klass), TRG_TYPE_DESTINATION_COMBO)) -#define TRG_DESTINATION_COMBO_GET_CLASS(obj) \ - (G_TYPE_INSTANCE_GET_CLASS ((obj), TRG_TYPE_DESTINATION_COMBO, TrgDestinationComboClass)) - typedef struct { - GtkComboBox parent; -} TrgDestinationCombo; - -typedef struct { - GtkComboBoxClass parent_class; -} TrgDestinationComboClass; - -GType trg_destination_combo_get_type(void); + +#define TRG_TYPE_DESTINATION_COMBO (trg_destination_combo_get_type()) +G_DECLARE_FINAL_TYPE(TrgDestinationCombo, trg_destination_combo, TRG, DESTINATION_COMBO, GtkComboBox) GtkWidget *trg_destination_combo_new(TrgClient * client, const gchar * lastSelectionKey); gchar *trg_destination_combo_get_dir(TrgDestinationCombo * combo); gboolean trg_destination_combo_has_text(TrgDestinationCombo * combo); -GtkEntry *trg_destination_combo_get_entry(TrgDestinationCombo * combo); void trg_destination_combo_save_selection(TrgDestinationCombo * combo_box); G_END_DECLS |