if (!widget){
g_warning("view_menu_auto_scroll_live_cb: No widget found");
}else{
- menu_auto_scroll_live_changed(GTK_CHECK_MENU_ITEM(widget)->active);
+ menu_auto_scroll_live_changed(GTK_CHECK_MENU_ITEM(gtk_check_menu_item_get_active(widget)));
}
}
#endif
/* 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(col->button, tooltip_text);
+ gtk_widget_set_tooltip_text(gtk_tree_view_column_get_widget(col), tooltip_text);
g_free(tooltip_text);
- g_signal_connect(col->button, "button_press_event",
+ g_signal_connect(gtk_tree_view_column_get_widget(col), "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(column->button, "Global profiles will be copied to users profiles when used");
+ gtk_widget_set_tooltip_text(gtk_tree_view_column_get_widget(column), "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));
/* Create an entry in the relevant box of the window */
if (data->widget==NULL)
{
- guint16 x;
+ guint x, dummy;
GtkWidget *tmp;
guint i = data->response_code;
}
/* Get number of rows in table */
- x = GTK_TABLE(data->table)->nrows;
+ gtk_table_get_size(GTK_TABLE(data->table), &x, &dummy);
/* Create a new label with this response, e.g. "SIP 180 Ringing" */
g_snprintf(string_buff, sizeof(string_buff),
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(column->button, f[colnum].desc);
+ gtk_widget_set_tooltip_text(gtk_tree_view_column_get_widget(column), f[colnum].desc);
/*
gtk_clist_set_column_title(GTK_CLIST(rep->clist), colnum, f[colnum].title);