|
|
|
|
@ -594,7 +594,6 @@ void _yon_gtk_column_minimal_fixed_size_set(GtkTreeViewColumn *column){
|
|
|
|
|
|
|
|
|
|
if (layout != NULL) {
|
|
|
|
|
pango_layout_get_pixel_size(layout, &header_width, NULL);
|
|
|
|
|
g_object_unref(layout);
|
|
|
|
|
}
|
|
|
|
|
if (GTK_IS_WIDGET(label)) {
|
|
|
|
|
g_object_ref_sink(label);
|
|
|
|
|
@ -609,6 +608,7 @@ void _yon_gtk_tree_view_minimal_fixed_size_set_full(GtkTreeView *tree){
|
|
|
|
|
for (int i=0;i<g_list_length(list);i++){
|
|
|
|
|
_yon_gtk_column_minimal_fixed_size_set((GtkTreeViewColumn*)g_list_nth_data(list,i));
|
|
|
|
|
}
|
|
|
|
|
g_list_free(list);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void yon_gtk_tree_view_minimal_fixed_size_set_full(GtkTreeView *tree){
|
|
|
|
|
@ -1461,4 +1461,45 @@ config_str yon_resource_open_file(const char *path, int *size){
|
|
|
|
|
parsed = yon_char_parse(modules,size,"\n");
|
|
|
|
|
return parsed;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// dictionary *__yon_config_listeners = NULL;
|
|
|
|
|
// typedef struct {
|
|
|
|
|
// GtkWidget *target;
|
|
|
|
|
// char *widget_parameter;
|
|
|
|
|
// void *check_function;
|
|
|
|
|
// char *parameter;
|
|
|
|
|
// char *save_command;
|
|
|
|
|
// } config_listener;
|
|
|
|
|
|
|
|
|
|
// void __yon_gtk_config_activated(GtkWidget *, config_listener *current){
|
|
|
|
|
// char *parameter;
|
|
|
|
|
|
|
|
|
|
// if (((int (*)(char*, GtkWidget*, char*))(current->check_function))(parameter,current->target, current->parameter)) {
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
// int yon_gtk_config_add_listener (GtkWidget *target, char *parameter, char *save_command,int(check_function)(char*,GtkWidget*,char*)){
|
|
|
|
|
// if (__yon_config_listeners){
|
|
|
|
|
// dictionary *dict;
|
|
|
|
|
// for_dictionaries(dict,__yon_config_listeners){
|
|
|
|
|
// if (target==((config_listener*)dict->data)->target){
|
|
|
|
|
// return 0;
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// config_listener *current = malloc(sizeof(config_listener));
|
|
|
|
|
// current->target=target;
|
|
|
|
|
// current->parameter = parameter;
|
|
|
|
|
// current->save_command = save_command;
|
|
|
|
|
// current->check_function = (void*)check_function;
|
|
|
|
|
// if (GTK_IS_TOGGLE_BUTTON(target)){
|
|
|
|
|
// g_signal_connect(G_OBJECT(target),"toggled",C_CALLBACK(__yon_gtk_config_activated),current);
|
|
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
// yon_dictionary_add_or_create_if_exists_with_data(__yon_config_listeners,NULL,current);
|
|
|
|
|
// return 0;
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
#endif
|