mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
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:
parent
36d2324891
commit
7dd2539e1b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user