Change testcase to not update screen information on configure-event, since
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
This commit is contained in:
parent
a07873dd16
commit
9ab7af3a77
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user