X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fdict-display.c;h=356758beeea4100c4f4f1fd3feeaae71ebeb2fb4;hb=c94183521bb50d92ae05153f6013af0bc347299e;hp=842441372155a04c847a6f3952cfb09d6df97e13;hpb=392ab4052e2743f80664a4130b2b4ee5d82af7fe;p=pspp-builds.git diff --git a/src/ui/gui/dict-display.c b/src/ui/gui/dict-display.c index 84244137..356758be 100644 --- a/src/ui/gui/dict-display.c +++ b/src/ui/gui/dict-display.c @@ -154,6 +154,7 @@ var_description_cell_data_func (GtkTreeViewColumn *col, } +#if GTK_CHECK_VERSION (2, 12, 0) /* Sets the tooltip to be the name of the variable under the cursor */ static gboolean set_tooltip_for_variable (GtkTreeView *treeview, @@ -171,6 +172,7 @@ set_tooltip_for_variable (GtkTreeView *treeview, struct variable *var = NULL; gboolean ok; + gtk_tree_view_convert_widget_to_bin_window_coords (treeview, x, y, &bx, &by); @@ -199,6 +201,7 @@ set_tooltip_for_variable (GtkTreeView *treeview, return TRUE; } +#endif /* Sets up TREEVIEW to display the variables of DICT. MODE is the selection mode for TREEVIEW. @@ -269,7 +272,9 @@ attach_dictionary_to_treeview (GtkTreeView *treeview, PsppireDict *dict, g_object_set (treeview, "has-tooltip", TRUE, NULL); +#if GTK_CHECK_VERSION (2, 12, 0) g_signal_connect (treeview, "query-tooltip", G_CALLBACK (set_tooltip_for_variable), NULL); +#endif }