[gtk+/gtk-3-12] gtk-demo: Fix the links example



commit c435ca8913206e843aa168267f32dd8f234b543a
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Apr 12 18:42:29 2014 -0700

    gtk-demo: Fix the links example
    
    The keynav dialog is transient to the example window; since the
    example window is now modal, we need to make the keynav dialog
    modal as well, so it can receive input.
    Problem pointed out by Jasper St. Pierre.

 demos/gtk-demo/links.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/demos/gtk-demo/links.c b/demos/gtk-demo/links.c
index d4f6ddd..fa3075d 100644
--- a/demos/gtk-demo/links.c
+++ b/demos/gtk-demo/links.c
@@ -33,6 +33,7 @@ activate_link (GtkWidget   *label,
                  "The term <i>keynav</i> is a shorthand for "
                  "keyboard navigation and refers to the process of using "
                  "a program (exclusively) via keyboard input.");
+      gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
 
       gtk_window_present (GTK_WINDOW (dialog));
       g_signal_connect (dialog, "response", G_CALLBACK (response_cb), NULL);


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