mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-13 09:10:20 +00:00
First round of using GTK accessor functions
This is the first step to build with GSEAL_ENABLE setup.c uses a deprecated fontchooser, chanview-tabs.c didn't like the conversion, and I am waiting to do some work on xtext.c before converting it.
This commit is contained in:
@@ -274,7 +274,7 @@ userlist_set_value (GtkWidget *treeview, gfloat val)
|
||||
gfloat
|
||||
userlist_get_value (GtkWidget *treeview)
|
||||
{
|
||||
return gtk_tree_view_get_vadjustment (GTK_TREE_VIEW (treeview))->value;
|
||||
return gtk_adjustment_get_value (gtk_tree_view_get_vadjustment (GTK_TREE_VIEW (treeview)));
|
||||
}
|
||||
|
||||
int
|
||||
@@ -425,7 +425,7 @@ userlist_dnd_drop (GtkTreeView *widget, GdkDragContext *context,
|
||||
return;
|
||||
gtk_tree_model_get (model, &iter, COL_USER, &user, -1);
|
||||
|
||||
mg_dnd_drop_file (current_sess, user->nick, selection_data->data);
|
||||
mg_dnd_drop_file (current_sess, user->nick, (char *)gtk_selection_data_get_data (selection_data));
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
||||
Reference in New Issue
Block a user