Make the 'Other media' dialog work more than once
This commit is contained in:
parent
adc24a942a
commit
b374d64e6b
1 changed files with 5 additions and 1 deletions
|
@ -402,9 +402,11 @@ static void
|
||||||
on_extra_options_button_clicked (GtkWidget *button,
|
on_extra_options_button_clicked (GtkWidget *button,
|
||||||
CcMediaPanel *self)
|
CcMediaPanel *self)
|
||||||
{
|
{
|
||||||
GtkWidget *dialog;
|
GtkWidget *dialog;
|
||||||
|
GtkWidget *combo_box;
|
||||||
|
|
||||||
dialog = GTK_WIDGET (gtk_builder_get_object (self->priv->builder, "extra_options_dialog"));
|
dialog = GTK_WIDGET (gtk_builder_get_object (self->priv->builder, "extra_options_dialog"));
|
||||||
|
combo_box = GTK_WIDGET (gtk_builder_get_object (self->priv->builder, "media_other_type_combobox"));
|
||||||
gtk_window_set_transient_for (GTK_WINDOW (dialog),
|
gtk_window_set_transient_for (GTK_WINDOW (dialog),
|
||||||
GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (self))));
|
GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (self))));
|
||||||
gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
|
gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
|
||||||
|
@ -412,6 +414,8 @@ on_extra_options_button_clicked (GtkWidget *button,
|
||||||
"response",
|
"response",
|
||||||
G_CALLBACK (on_extra_options_dialog_response),
|
G_CALLBACK (on_extra_options_dialog_response),
|
||||||
self);
|
self);
|
||||||
|
/* update other_application_combo */
|
||||||
|
other_type_combo_box_changed (GTK_COMBO_BOX (combo_box), self);
|
||||||
gtk_window_present (GTK_WINDOW (dialog));
|
gtk_window_present (GTK_WINDOW (dialog));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue