Add a missing runtime check

The cursor theme and size settting code was ifdefed to only
be compiled with the X11 backend, but it didn't check for
running under X at runtime. Fix that.
http://bugzilla.gnome.org/695495
This commit is contained in:
Matthias Clasen 2013-03-13 06:01:57 -04:00
parent 36d2324891
commit 7dd2539e1b

View File

@ -4801,6 +4801,8 @@ create_cursors (GtkWidget *widget)
NULL);
#ifdef GDK_WINDOWING_X11
if (GDK_IS_X11_DISPLAY (gtk_widget_get_display (vbox)))
{
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_container_set_border_width (GTK_CONTAINER (hbox), 5);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE, 0);
@ -4822,6 +4824,7 @@ create_cursors (GtkWidget *widget)
G_CALLBACK (change_cursor_theme), hbox);
g_signal_connect (size, "changed",
G_CALLBACK (change_cursor_theme), hbox);
}
#endif
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);