summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-06-20 23:59:27 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-06-20 23:59:27 +0000
commit28c2b0a31f3f688cec4960063de37df004ad0112 (patch)
tree36479c79602df24f0bf3f6dbc9dbb7c4b6587eb3 /tests
parent5830bf89b5bb3eb48fa84ed690a726be3a82e129 (diff)
downloadgtk+-28c2b0a31f3f688cec4960063de37df004ad0112.tar.gz
Renames:
Thu Jun 20 19:41:09 2002 Owen Taylor <otaylor@redhat.com> * gdk/gdkdisplay.h gdk/gdkscreen.h gdk/**.c gtk/*.c tests/*.c: Renames: gdk_get_default_display => gdk_display_get_default gdk_get_default_screen => gdk_screen_get_default gdk_open_display => gdk_display_open
Diffstat (limited to 'tests')
-rw-r--r--tests/testgtk.c2
-rw-r--r--tests/testmultidisplay.c4
-rw-r--r--tests/testmultiscreen.c2
-rw-r--r--tests/testxinerama.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/tests/testgtk.c b/tests/testgtk.c
index 2c6704e1e2..701c68f937 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -7305,7 +7305,7 @@ screen_display_check (GtkWidget *widget, ScreenDisplaySelection *data)
if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (data->radio_dpy)))
{
display_name = g_strdup (gtk_entry_get_text (data->entry));
- display = gdk_open_display (display_name);
+ display = gdk_display_open (display_name);
if (!display)
{
diff --git a/tests/testmultidisplay.c b/tests/testmultidisplay.c
index 92c434fab7..3ef9cfcfa5 100644
--- a/tests/testmultidisplay.c
+++ b/tests/testmultidisplay.c
@@ -46,7 +46,7 @@ make_selection_dialog (GdkScreen * screen,
double_entry->e2 = GTK_ENTRY (other_entry);
if (!screen)
- screen = gdk_get_default_screen ();
+ screen = gdk_screen_get_default ();
window = gtk_widget_new (GTK_TYPE_DIALOG,
"screen", screen,
@@ -122,7 +122,7 @@ main (int argc, char *argv[])
if (!g_strcasecmp (screen2_name, ""))
g_printerr ("No display name, reverting to default display\n");
- dpy2 = gdk_open_display (screen2_name);
+ dpy2 = gdk_display_open (screen2_name);
if (dpy2)
{
scr2 = gdk_display_get_default_screen (dpy2);
diff --git a/tests/testmultiscreen.c b/tests/testmultiscreen.c
index a2c894d4ab..ffe9f8ca26 100644
--- a/tests/testmultiscreen.c
+++ b/tests/testmultiscreen.c
@@ -71,7 +71,7 @@ main (int argc, char *argv[])
gtk_init (&argc, &argv);
- dpy = gdk_get_default_display ();
+ dpy = gdk_display_get_default ();
num_screen = gdk_display_get_n_screens (dpy);
displayname = g_strdup (gdk_display_get_name (dpy));
g_print ("This X Server (%s) manages %d screen(s).\n",
diff --git a/tests/testxinerama.c b/tests/testxinerama.c
index e202d5bc6d..8b80361d30 100644
--- a/tests/testxinerama.c
+++ b/tests/testxinerama.c
@@ -38,7 +38,7 @@ main (int argc, char *argv[])
gtk_init (&argc, &argv);
- screen = gdk_get_default_screen ();
+ screen = gdk_screen_get_default ();
num_monitors = gdk_screen_get_n_monitors (screen);
if (num_monitors == 1)