different padding between picture and icon name fix

pull/9/head
parent 2459a1f5f3
commit 24e253c697

@ -783,12 +783,12 @@ int load_apps(IVGraphicals *section, apps *applist, int size){
GError *err=NULL; GError *err=NULL;
GtkTreeIter iter; GtkTreeIter iter;
gtk_list_store_append(section->LV,&iter); gtk_list_store_append(section->LV,&iter);
int sz= *main_config.currentThemeIconSize+10; int sz= yon_get_icon_size(*main_config.currentThemeIconSize)+10;
if (sz<50) sz=50; if (sz<50) sz=50;
GtkIconTheme *icthm=gtk_icon_theme_get_default(); GtkIconTheme *icthm=gtk_icon_theme_get_default();
GdkPixbuf *pixbuf=gtk_icon_info_load_icon(gtk_icon_theme_lookup_icon_for_scale(icthm, applist[i].Icon,yon_get_icon_size(*main_config.currentThemeIconSize),1,GTK_ICON_LOOKUP_FORCE_SVG),NULL); GdkPixbuf *pixbuf=gtk_icon_info_load_icon(gtk_icon_theme_lookup_icon_for_scale(icthm, applist[i].Icon,yon_get_icon_size(*main_config.currentThemeIconSize),1,GTK_ICON_LOOKUP_FORCE_SVG),NULL);
GtkTreePath *pth = gtk_tree_model_get_path(GTK_TREE_MODEL(section->LV),&iter); GtkTreePath *pth = gtk_tree_model_get_path(GTK_TREE_MODEL(section->LV),&iter);
gtk_list_store_set(section->LV,&iter,0,applist[i].Name,1,0.0,2,0.5, 3, sz+8, 4, pixbuf, 5,yon_get_icon_size(*main_config.currentThemeIconSize), -1); gtk_list_store_set(section->LV,&iter,0,applist[i].Name,1,0.0,2,0.5, 3, sz+8, 4, pixbuf, 5,yon_get_icon_size(*main_config.currentThemeIconSize)+10, -1);
int cols = gtk_icon_view_get_columns(GTK_ICON_VIEW(section->IV)); int cols = gtk_icon_view_get_columns(GTK_ICON_VIEW(section->IV));
gtk_icon_view_set_columns(GTK_ICON_VIEW(section->IV), -1); gtk_icon_view_set_columns(GTK_ICON_VIEW(section->IV), -1);
gtk_icon_view_set_columns(GTK_ICON_VIEW(section->IV), cols); gtk_icon_view_set_columns(GTK_ICON_VIEW(section->IV), cols);

@ -1568,8 +1568,8 @@
<column type="gint"/> <column type="gint"/>
<!-- column-name GdkPixbuf1 --> <!-- column-name GdkPixbuf1 -->
<column type="GdkPixbuf"/> <column type="GdkPixbuf"/>
<!-- column-name GtkIconSize1 --> <!-- column-name gint2 -->
<column type="GtkIconSize"/> <column type="gint"/>
</columns> </columns>
</object> </object>
<object class="GtkIconView" id="iconTemplate"> <object class="GtkIconView" id="iconTemplate">
@ -1589,6 +1589,7 @@
<property name="xpad">2</property> <property name="xpad">2</property>
</object> </object>
<attributes> <attributes>
<attribute name="width">5</attribute>
<attribute name="height">3</attribute> <attribute name="height">3</attribute>
<attribute name="xalign">1</attribute> <attribute name="xalign">1</attribute>
<attribute name="yalign">2</attribute> <attribute name="yalign">2</attribute>

Loading…
Cancel
Save