Commit ec7abe55 authored by Mohammed Sadiq's avatar Mohammed Sadiq
Browse files

pp-chat-info: Set transient window

So that the file chooser dialog is properly shown
parent 6eb61496
Pipeline #71807 passed with stages
in 9 minutes and 58 seconds
...@@ -76,13 +76,16 @@ G_DEFINE_TYPE (ChattyPpChatInfo, chatty_pp_chat_info, HDY_TYPE_PREFERENCES_PAGE) ...@@ -76,13 +76,16 @@ G_DEFINE_TYPE (ChattyPpChatInfo, chatty_pp_chat_info, HDY_TYPE_PREFERENCES_PAGE)
static void static void
pp_info_edit_avatar_button_clicked_cb (ChattyPpChatInfo *self) pp_info_edit_avatar_button_clicked_cb (ChattyPpChatInfo *self)
{ {
GtkWindow *window;
GtkDialog *dialog; GtkDialog *dialog;
g_autofree char *file_name = NULL; g_autofree char *file_name = NULL;
int response; int response;
g_assert (CHATTY_IS_PP_CHAT_INFO (self)); g_assert (CHATTY_IS_PP_CHAT_INFO (self));
window = (GtkWindow *)gtk_widget_get_ancestor (GTK_WIDGET (self), GTK_TYPE_WINDOW);
dialog = GTK_DIALOG (self->avatar_chooser_dialog); dialog = GTK_DIALOG (self->avatar_chooser_dialog);
gtk_window_set_transient_for (GTK_WINDOW (dialog), window);
response = gtk_dialog_run (dialog); response = gtk_dialog_run (dialog);
gtk_widget_hide (GTK_WIDGET (dialog)); gtk_widget_hide (GTK_WIDGET (dialog));
......
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