ui/gtk/list.h

changeset 438
7b1d715e5c11
parent 436
222205801430
equal deleted inserted replaced
437:f02a62de0328 438:7b1d715e5c11
111 111
112 void ui_listview_update2(UiList *list, int i); 112 void ui_listview_update2(UiList *list, int i);
113 UiListSelection ui_listview_getselection2(UiList *list); 113 UiListSelection ui_listview_getselection2(UiList *list);
114 void ui_listview_setselection2(UiList *list, UiListSelection selection); 114 void ui_listview_setselection2(UiList *list, UiListSelection selection);
115 115
116 void ui_columnview_activate(GtkColumnView* self, guint position, gpointer userdata); 116 void ui_columnview_activate(void *ignore, guint position, gpointer userdata);
117 void ui_listview_selection_changed(GtkSelectionModel* self, guint position, guint n_items, gpointer user_data); 117 void ui_listview_selection_changed(GtkSelectionModel* self, guint position, guint n_items, gpointer user_data);
118
119 void ui_dropdown_activate(GtkDropDown* self, gpointer userdata);
118 120
119 #endif 121 #endif
120 122
121 void* ui_strmodel_getvalue(void *elm, int column); 123 void* ui_strmodel_getvalue(void *elm, int column);
122 124
130 void ui_listview_setselection(UiList *list, UiListSelection selection); 132 void ui_listview_setselection(UiList *list, UiListSelection selection);
131 133
132 void ui_combobox_destroy(GtkWidget *w, UiListView *v); 134 void ui_combobox_destroy(GtkWidget *w, UiListView *v);
133 void ui_listview_destroy(GtkWidget *w, UiListView *v); 135 void ui_listview_destroy(GtkWidget *w, UiListView *v);
134 136
137 #if GTK_CHECK_VERSION(4, 10, 0)
138
139 #else
135 void ui_listview_activate_event( 140 void ui_listview_activate_event(
136 GtkTreeView *tree_view, 141 GtkTreeView *tree_view,
137 GtkTreePath *path, 142 GtkTreePath *path,
138 GtkTreeViewColumn *column, 143 GtkTreeViewColumn *column,
139 UiTreeEventData *event); 144 UiTreeEventData *event);
142 UiTreeEventData *event); 147 UiTreeEventData *event);
143 UiListSelection ui_listview_selection( 148 UiListSelection ui_listview_selection(
144 GtkTreeSelection *selection, 149 GtkTreeSelection *selection,
145 UiTreeEventData *event); 150 UiTreeEventData *event);
146 int ui_tree_path_list_index(GtkTreePath *path); 151 int ui_tree_path_list_index(GtkTreePath *path);
152 #endif
147 153
148 void ui_listview_add_dnd(UiListView *listview, UiListArgs *args); 154 void ui_listview_add_dnd(UiListView *listview, UiListArgs *args);
149 void ui_listview_enable_drop(UiListView *listview, UiListArgs *args); 155 void ui_listview_enable_drop(UiListView *listview, UiListArgs *args);
150 156
151 UIWIDGET ui_combobox_var(UiObject *obj, UiVar *var, ui_getvaluefunc getvalue, ui_callback f, void *udata); 157 UIWIDGET ui_combobox_var(UiObject *obj, UiVar *var, ui_getvaluefunc getvalue, ui_callback f, void *udata);

mercurial