summaryrefslogtreecommitdiff
path: root/src/trg-destination-combo.h
diff options
context:
space:
mode:
authorGravatar Patrick Griffis <tingping@tingping.se>2016-02-17 10:09:31 -0500
committerGravatar Patrick Griffis <tingping@tingping.se>2016-02-17 15:15:41 -0500
commitb6bb8fb323f3885e106c0606de050c0437ccf81f (patch)
tree4b45ef1277ce646a8b42eea7ae52b4264d89b2cf /src/trg-destination-combo.h
parent2ad81ecf9806b3842fed99afe29adcb327801b83 (diff)
Redesign destination combobox
Diffstat (limited to 'src/trg-destination-combo.h')
-rw-r--r--src/trg-destination-combo.h24
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