View | Details | Raw Unified | Return to bug 377733
Collapse All | Expand All

(-)gtkfilesystemgio.c (-2 / +12 lines)
Lines 852-859 get_icon_string (GIcon *icon) Link Here
852
      /* FIXME: choose between names */
852
      /* FIXME: choose between names */
853
      names = g_themed_icon_get_names (G_THEMED_ICON (icon));
853
      names = g_themed_icon_get_names (G_THEMED_ICON (icon));
854
854
855
      if (names)
855
      if (names) {
856
	name = g_strdup (names [0]);
856
        GtkIconTheme *icon_theme;
857
        GtkIconInfo *gtkicon_info;
858
859
        icon_theme = gtk_icon_theme_get_default ();
860
        gtkicon_info = gtk_icon_theme_choose_icon (icon_theme, names, 16, 0);
861
        if (gtkicon_info != NULL)
862
          {
863
            name = g_strdup (gtk_icon_info_get_filename (gtkicon_info));
864
            gtk_icon_info_free (gtkicon_info);
865
          }
866
      }
857
    }
867
    }
858
  else if (G_IS_FILE_ICON (icon))
868
  else if (G_IS_FILE_ICON (icon))
859
    {
869
    {

Return to bug 377733