Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Mohammed Sadiq
chatty
Commits
ec7abe55
Commit
ec7abe55
authored
Oct 07, 2021
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/dialogs/chatty-pp-chat-info.c
View file @
ec7abe55
...
...
@@ -76,13 +76,16 @@ G_DEFINE_TYPE (ChattyPpChatInfo, chatty_pp_chat_info, HDY_TYPE_PREFERENCES_PAGE)
static
void
pp_info_edit_avatar_button_clicked_cb
(
ChattyPpChatInfo
*
self
)
{
GtkWindow
*
window
;
GtkDialog
*
dialog
;
g_autofree
char
*
file_name
=
NULL
;
int
response
;
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
);
gtk_window_set_transient_for
(
GTK_WINDOW
(
dialog
),
window
);
response
=
gtk_dialog_run
(
dialog
);
gtk_widget_hide
(
GTK_WIDGET
(
dialog
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment