The changes in profile_dlg.c, uat_gui.c and new_packet_list.c does not
work. The tooltip is not displayed, and it's not possible to get the
context menu from a column header in the packet list.
...
I guess gtk_tree_view_column_get_widget() does not return
column->button, which is the widget we use.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38117
f5534014-38df-0310-8fa8-
9805f1628bb7
/* XXX Breaks the GTK+ API, but this is the only way to attach a signal to
* a GtkTreeView column header. See GTK bug #141937.
*/
- gtk_widget_set_tooltip_text(gtk_tree_view_column_get_widget(col), tooltip_text);
+ gtk_widget_set_tooltip_text(col->button, tooltip_text);
g_free(tooltip_text);
- g_signal_connect(gtk_tree_view_column_get_widget(col), "button_press_event",
+ g_signal_connect(col->button, "button_press_event",
G_CALLBACK(new_packet_list_column_button_pressed_cb), col);
if (i == 0) { /* Default sort on first column */
renderer = gtk_cell_renderer_toggle_new();
column = gtk_tree_view_column_new_with_attributes("Global", renderer, "active", GLOBAL_COLUMN, NULL);
gtk_tree_view_append_column(GTK_TREE_VIEW(profile_l), column);
- gtk_widget_set_tooltip_text(gtk_tree_view_column_get_widget(column), "Global profiles will be copied to users profiles when used");
+ gtk_widget_set_tooltip_text(column->button, "Global profiles will be copied to users profiles when used");
gtk_tree_view_column_set_visible(column, has_global);
sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(profile_l));
gtk_tree_view_column_set_sizing(column,GTK_TREE_VIEW_COLUMN_AUTOSIZE);
gtk_tree_view_append_column (rep->list, column);
if (f[colnum].desc != NULL)
- gtk_widget_set_tooltip_text(gtk_tree_view_column_get_widget(column), f[colnum].desc);
+ gtk_widget_set_tooltip_text(column->button, f[colnum].desc);
/*
gtk_clist_set_column_title(GTK_CLIST(rep->clist), colnum, f[colnum].title);