Commit 2adbb7f6 authored by Jonathan Matthew's avatar Jonathan Matthew

fmradio: don't use gtk_dialog_run to display dialogs

parent 14054835
......@@ -375,6 +375,12 @@ new_station_location_added (RBURIDialog *dialog, const char *frequency,
rb_fm_radio_source_add_station (self, frequency, NULL);
}
static void
new_station_response_cb (GtkDialog *dialog, int response, gpointer meh)
{
gtk_widget_destroy (GTK_WIDGET (dialog));
}
static void
rb_fm_radio_source_cmd_new_station (GtkAction *action, RBFMRadioSource *self)
{
......@@ -385,8 +391,8 @@ rb_fm_radio_source_cmd_new_station (GtkAction *action, RBFMRadioSource *self)
g_signal_connect_object (dialog, "location-added",
G_CALLBACK (new_station_location_added),
self, 0);
gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (GTK_WIDGET (dialog));
g_signal_connect (dialog, "response", G_CALLBACK (new_station_response_cb), NULL);
gtk_widget_show_all (dialog);
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment