|
|
|
|
@ -140,7 +140,7 @@ void yon_configuration_hub_add(GtkFlowBox *target, char *name, char *icon, enum
|
|
|
|
|
|
|
|
|
|
GtkIconInfo *info = gtk_icon_theme_lookup_icon_for_scale(gtk_icon_theme_get_default(),icon,54,1,GTK_ICON_LOOKUP_FORCE_SIZE);
|
|
|
|
|
|
|
|
|
|
char *name_wrapped = yon_char_wrap_to_length_str(name,10);
|
|
|
|
|
char *name_wrapped = yon_char_wrap_to_length_str(name,30);
|
|
|
|
|
cur_icon->MainBox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL,5);
|
|
|
|
|
cur_icon->Label = gtk_label_new(name_wrapped);
|
|
|
|
|
cur_icon->Image = gtk_image_new_from_pixbuf(gtk_icon_info_load_icon(info,NULL));
|
|
|
|
|
@ -153,10 +153,6 @@ void yon_configuration_hub_add(GtkFlowBox *target, char *name, char *icon, enum
|
|
|
|
|
gtk_container_add(GTK_CONTAINER(flow),cur_icon->MainBox);
|
|
|
|
|
gtk_box_pack_start(GTK_BOX(cur_icon->MainBox),cur_icon->Image,0,0,0);
|
|
|
|
|
gtk_box_pack_start(GTK_BOX(cur_icon->MainBox),cur_icon->Label,0,0,0);
|
|
|
|
|
// gtk_widget_set_margin_bottom(cur_icon->MainBox,5);
|
|
|
|
|
// gtk_widget_set_margin_top(cur_icon->MainBox,5);
|
|
|
|
|
// gtk_widget_set_margin_start(cur_icon->MainBox,5);
|
|
|
|
|
// gtk_widget_set_margin_end(cur_icon->MainBox,5);
|
|
|
|
|
gtk_flow_box_insert(target,flow,-1);
|
|
|
|
|
gtk_widget_show_all(flow);
|
|
|
|
|
free(name_wrapped);
|
|
|
|
|
|