]> Pileus Git - ~andy/gtk/blobdiff - tests/testxinerama.c
reftests: Add a test from evolution
[~andy/gtk] / tests / testxinerama.c
index d9d37a9f4e6b0002809a1b82551b2a04945c8900..67a7e32e5c48e9a17d3d07959e5de88d182b3cc9 100644 (file)
@@ -13,9 +13,7 @@
  * Library General Public License for more details.
  *
  * You should have received a copy of the GNU Library General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
 #include "config.h"
@@ -32,7 +30,7 @@ request (GtkWidget      *widget,
   gchar *str;
   GdkScreen *screen = gtk_widget_get_screen (widget);
   gint i = gdk_screen_get_monitor_at_window (screen,
-                                            widget->window);
+                                             gtk_widget_get_window (widget));
 
   if (i < 0)
     str = g_strdup ("<big><span foreground='white' background='black'>Not on a monitor </span></big>");
@@ -109,7 +107,8 @@ main (int argc, char *argv[])
                              primary_monitor);
       gtk_label_set_markup (GTK_LABEL (label), str);
       g_free (str);
-      vbox = gtk_vbox_new (TRUE, 1);
+      vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 1);
+      gtk_box_set_homogeneous (GTK_BOX (vbox), TRUE);
       gtk_container_add (GTK_CONTAINER (window), vbox);
       gtk_container_add (GTK_CONTAINER (vbox), label);
       button = gtk_button_new_with_label ("Query current monitor");