]> Pileus Git - ~andy/gtk/commitdiff
Change testcase to not update screen information on configure-event, since
authorMatthias Clasen <mclasen@redhat.com>
Tue, 16 Oct 2007 17:29:30 +0000 (17:29 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 16 Oct 2007 17:29:30 +0000 (17:29 +0000)
2007-10-16  Matthias Clasen <mclasen@redhat.com>

        * tests/testxinerama.c: Change testcase to not update
        screen information on configure-event, since it hides
        information for all available screens but add a button
        to query current monitor instead (#485437, Frederic Crozat)

svn path=/trunk/; revision=18913

ChangeLog
tests/testxinerama.c

index f0a6301998cdd8c49e081e4c57721f67f4163992..a8eb8409c72902b139bd34a9be82959449ee0c28 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-10-16  Matthias Clasen <mclasen@redhat.com>
+
+       * tests/testxinerama.c: Change testcase to not update
+       screen information on configure-event, since it hides
+       information for all available screens but add a button 
+       to query current monitor instead (#485437, Frederic Crozat)
+
 2007-10-16  Matthias Clasen <mclasen@redhat.com>
 
        * gtk/gtkprinteroptionwidget.c (update_widgets): Actually use
index bd0fceaebe4b6dc65c6590efc510241e81a2d473..743f2019983cfd73bafa43dd5147d6af57526ff0 100644 (file)
@@ -26,7 +26,6 @@ static gint num_monitors;
 
 static void
 request (GtkWidget      *widget,
-        GdkEventMotion *event,
         gpointer        user_data)
 {
   gchar *str;
@@ -85,12 +84,14 @@ main (int argc, char *argv[])
                             monitor.width, monitor.height, monitor.x, monitor.y);
       gtk_label_set_markup (GTK_LABEL (label), str);
       g_free (str);
-      button = gtk_button_new_with_label ("Close");
-      g_signal_connect (button, "clicked", G_CALLBACK (gtk_main_quit), NULL);
-      g_signal_connect (window, "configure-event", G_CALLBACK (request), label);
       vbox = gtk_vbox_new (TRUE, 1);
       gtk_container_add (GTK_CONTAINER (window), vbox);
       gtk_container_add (GTK_CONTAINER (vbox), label);
+      button = gtk_button_new_with_label ("Query current monitor");
+      g_signal_connect (button, "clicked", G_CALLBACK (request), label);
+      gtk_container_add (GTK_CONTAINER (vbox), button);
+      button = gtk_button_new_with_label ("Close");
+      g_signal_connect (button, "clicked", G_CALLBACK (gtk_main_quit), NULL);
       gtk_container_add (GTK_CONTAINER (vbox), button);
       gtk_widget_show_all (window);
     }