From aff982298fb16ef8bbf32697df59965def50eb5d Mon Sep 17 00:00:00 2001 From: Alan Fitton Date: Wed, 26 Oct 2011 18:55:21 +0000 Subject: closer to gtk3 support, I think just the graph needs doing now. --- src/trg-destination-combo.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/trg-destination-combo.c') diff --git a/src/trg-destination-combo.c b/src/trg-destination-combo.c index db9fd31..2ab5048 100644 --- a/src/trg-destination-combo.c +++ b/src/trg-destination-combo.c @@ -128,9 +128,13 @@ static void gtk_combo_box_entry_active_changed(GtkComboBox *combo_box, } } +#if GTK_CHECK_VERSION( 3, 0, 0 ) + gtk_editable_set_editable(GTK_EDITABLE(trg_destination_combo_get_entry(TRG_DESTINATION_COMBO(combo_box))), editableEntry); +#else gtk_entry_set_editable( trg_destination_combo_get_entry(TRG_DESTINATION_COMBO(combo_box)), editableEntry); +#endif } gboolean trg_destination_combo_has_text(TrgDestinationCombo *combo) { -- cgit v1.2.3