[gtk/wip/otte/inspector: 1/10] fontbutton: Make sure the window is on the same display




commit a2a402a926c273aaafd57a9ae209f2eae709e533
Author: Benjamin Otte <otte redhat com>
Date:   Mon Aug 23 05:55:32 2021 +0200

    fontbutton: Make sure the window is on the same display
    
    We don't want the font buttons created by the inspector to run on the
    default display.

 gtk/gtkfontbutton.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gtk/gtkfontbutton.c b/gtk/gtkfontbutton.c
index a207c5a403..aad99d186b 100644
--- a/gtk/gtkfontbutton.c
+++ b/gtk/gtkfontbutton.c
@@ -968,6 +968,7 @@ gtk_font_button_clicked (GtkButton *button,
       font_button->font_dialog = gtk_font_chooser_dialog_new (font_button->title, NULL);
       gtk_window_set_hide_on_close (GTK_WINDOW (font_button->font_dialog), TRUE);
       gtk_window_set_modal (GTK_WINDOW (font_button->font_dialog), font_button->modal);
+      gtk_window_set_display (GTK_WINDOW (font_button->font_dialog), gtk_widget_get_display (GTK_WIDGET 
(button)));
 
       font_dialog = GTK_FONT_CHOOSER (font_button->font_dialog);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]