diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2012-01-23 11:27:13 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2012-01-23 11:27:13 +0000 |
commit | 4e23a6db9e8cdca8ba6a1c19f944f2b7c8ac9045 (patch) | |
tree | 1de7f76ab11235d1d1a62d65c785160dc53de50e /src/trg-destination-combo.c | |
parent | cdaff8ede183ae5d76b2d02d2cb72ce136e3592e (diff) |
issue 158
Diffstat (limited to 'src/trg-destination-combo.c')
-rw-r--r-- | src/trg-destination-combo.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/trg-destination-combo.c b/src/trg-destination-combo.c index 07410a1..c7cf418 100644 --- a/src/trg-destination-combo.c +++ b/src/trg-destination-combo.c @@ -34,7 +34,7 @@ typedef struct _TrgDestinationComboPrivate TrgDestinationComboPrivate; struct _TrgDestinationComboPrivate { TrgClient *client; - const gchar *last_selection; + gchar *last_selection; GtkWidget *entry; GtkCellRenderer *text_renderer; }; @@ -55,7 +55,7 @@ static void trg_destination_combo_finalize(GObject * object) { TrgDestinationComboPrivate *priv = TRG_DESTINATION_COMBO_GET_PRIVATE(object); - g_free((gpointer) priv->last_selection); + g_free(priv->last_selection); } static void trg_destination_combo_get_property(GObject * object, @@ -328,6 +328,7 @@ static GObject *trg_destination_combo_constructor(GType type, NULL, defaultDir, DEST_DEFAULT, lastDestination); + gtk_combo_box_set_active(GTK_COMBO_BOX(object), 0); if (savedDestinations) { list = json_array_get_elements(savedDestinations); |