]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtknumerableicon.c
filechooserbutton: Duh, remove all the timeouts after tests
[~andy/gtk] / gtk / gtknumerableicon.c
index 2522102b10cbb3fe27af4e513d20fe7f838dd81d..e46547174a6e0b722ad00fd532d38af7ec6b02b7 100644 (file)
@@ -14,9 +14,7 @@
  * Library General Public License for more details.
  *
  * You should have received a copy of the GNU Library General Public
- * License along with the Gnome Library; see the file COPYING.LIB.  If not,
- * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  *
  * Authors: Cosimo Cecchi <cosimoc@redhat.com>
  */
 #include <config.h>
 
 #include "gtknumerableicon.h"
+#include "gtknumerableiconprivate.h"
 
 #include "gtkicontheme.h"
 #include "gtkintl.h"
 #include "gtkwidget.h"
+#include "gtkwidgetpath.h"
 #include "gtkwindow.h"
 
 #include <gdk/gdk.h>
 
 struct _GtkNumerableIconPrivate {
   gint count;
+  gint icon_size;
+
   gchar *label;
 
   GIcon *background_icon;
   gchar *background_icon_name;
-  gint icon_size;
 
   GdkRGBA *background;
   GdkRGBA *foreground;
@@ -214,7 +215,7 @@ draw_from_gicon (GtkNumerableIcon *self)
     return NULL;
 
   pixbuf = gtk_icon_info_load_icon (info, NULL);
-  gtk_icon_info_free (info);
+  g_object_unref (info);
 
   if (pixbuf == NULL)
     return NULL;
@@ -1008,7 +1009,7 @@ gtk_numerable_icon_get_background_icon_name (GtkNumerableIcon *self)
  *
  * Creates a new unthemed #GtkNumerableIcon.
  *
- * Returns: a new #GIcon
+ * Returns: (transfer full): a new #GIcon
  *
  * Since: 3.0
  */
@@ -1031,7 +1032,7 @@ gtk_numerable_icon_new (GIcon *base_icon)
  * to the passed #GtkStyleContext. This is a convenience constructor
  * that calls gtk_numerable_icon_set_style_context() internally.
  *
- * Returns: a new #GIcon
+ * Returns: (transfer full): a new #GIcon
  *
  * Since: 3.0
  */