summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 973e328)
raw | patch | inline | side by side (parent: 973e328)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Fri, 11 Jan 2008 00:39:16 +0000 (00:39 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Fri, 11 Jan 2008 00:39:16 +0000 (00:39 +0000) |
src/widgets/desktop-widget.cpp | patch | blob | history |
index 5396ecc24f6ba9155486811648ddad9d21e2fc3c..4c2ebf21cda4797265221df657fb3fa99a0361ec 100644 (file)
style = gtk_style_copy (GTK_WIDGET (dtw->canvas)->style);
style->bg[GTK_STATE_NORMAL] = style->white;
gtk_widget_set_style (GTK_WIDGET (dtw->canvas), style);
- gtk_widget_set_extension_events(GTK_WIDGET (dtw->canvas) , GDK_EXTENSION_EVENTS_ALL);
+ if ( prefs_get_int_attribute ("options.useextinput", "value", 1) )
+ gtk_widget_set_extension_events(GTK_WIDGET (dtw->canvas) , GDK_EXTENSION_EVENTS_ALL); //set extension events for tablets, unless disabled in preferences
g_signal_connect (G_OBJECT (dtw->canvas), "event", G_CALLBACK (sp_desktop_widget_event), dtw);
gtk_table_attach (GTK_TABLE (canvas_tbl), GTK_WIDGET(dtw->canvas), 1, 2, 1, 2, (GtkAttachOptions)(GTK_FILL | GTK_EXPAND), (GtkAttachOptions)(GTK_FILL | GTK_EXPAND), 0, 0);