mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-22 05:38:14 +00:00
Make transient windows centered on their parent
This commit is contained in:
parent
ba7288a384
commit
9c36049bd4
1 changed files with 1 additions and 0 deletions
|
|
@ -405,6 +405,7 @@ GtkWidget *linphone_gtk_create_window(const char *window_name, GtkWidget *parent
|
|||
if(parent) {
|
||||
gtk_window_set_modal(GTK_WINDOW(w), TRUE);
|
||||
gtk_window_set_transient_for(GTK_WINDOW(w), GTK_WINDOW(parent));
|
||||
gtk_window_set_position(GTK_WINDOW(w), GTK_WIN_POS_CENTER_ON_PARENT);
|
||||
} else {
|
||||
gtk_window_set_modal(GTK_WINDOW(w), FALSE);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue