diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-05-11 09:21:11 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-05-11 09:21:11 +0000 |
commit | 665e231ceb850f86ceedf80cdb6d13cca52671bf (patch) | |
tree | 0e199da108f72aac5a5b5ce4090b1a86db0d3389 /src/trg-destination-combo.h | |
parent | b0ede16ee68023844bd7633e5ebdc7a134225b07 (diff) |
put the destination combo into its own class, changing from the deprecated combo_box_entry_new_text or whatever it is and using it in torrent move dialog also.
Diffstat (limited to 'src/trg-destination-combo.h')
-rw-r--r-- | src/trg-destination-combo.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/src/trg-destination-combo.h b/src/trg-destination-combo.h new file mode 100644 index 0000000..d93300d --- /dev/null +++ b/src/trg-destination-combo.h @@ -0,0 +1,53 @@ +/* + * transmission-remote-gtk - Transmission RPC client for GTK + * Copyright (C) 2010 Alan Fitton + + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +#ifndef TRG_DESTINATION_COMBO_H_ +#define TRG_DESTINATION_COMBO_H_ + +#include <glib-object.h> +#include <gtk/gtk.h> + +#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 { + GtkComboBoxEntry parent; +} TrgDestinationCombo; + +typedef struct { + GtkComboBoxEntryClass parent_class; +} TrgDestinationComboClass; + +GType trg_destination_combo_get_type(void); + +GtkWidget *trg_destination_combo_new(trg_client * client); + +G_END_DECLS +#endif /* TRG_DESTINATION_COMBO_H_ */ |