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
+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
2007-10-16 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkprinteroptionwidget.c (update_widgets): Actually use
static void
request (GtkWidget *widget,
static void
request (GtkWidget *widget,
gpointer user_data)
{
gchar *str;
gpointer user_data)
{
gchar *str;
monitor.width, monitor.height, monitor.x, monitor.y);
gtk_label_set_markup (GTK_LABEL (label), str);
g_free (str);
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);
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);
}
gtk_container_add (GTK_CONTAINER (vbox), button);
gtk_widget_show_all (window);
}