Commit e2832729 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

also show the number of pixels.

2005-07-16  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpimagepropview.[ch]: also show the number of pixels.
parent 3b99ced2
2005-07-16 Sven Neumann <sven@gimp.org>
* app/widgets/gimpimagepropview.[ch]: also show the number of pixels.
2005-07-15 Carol Spears <carol@gimp.org>
* docs/Wilber_Construction_Kit.xcf.gz: corrected the spelling of
......
......@@ -192,6 +192,9 @@ gimp_image_prop_view_constructor (GType type,
view->memsize_label =
gimp_image_prop_view_add_label (table, row++, _("Size in memory:"));
view->pixels_label =
gimp_image_prop_view_add_label (table, row++, _("Number of pixels:"));
view->layers_label =
gimp_image_prop_view_add_label (table, row++, _("Number of layers:"));
......@@ -348,6 +351,10 @@ gimp_image_prop_view_update (GimpImagePropView *view)
g_free (str);
}
/* number of layers */
g_snprintf (buf, sizeof (buf), "%d", image->width * image->height);
gtk_label_set_text (GTK_LABEL (view->pixels_label), buf);
/* number of layers */
g_snprintf (buf, sizeof (buf), "%d",
gimp_container_num_children (image->layers));
......
......@@ -47,6 +47,7 @@ struct _GimpImagePropView
GtkWidget *resolution_label;
GtkWidget *colorspace_label;
GtkWidget *memsize_label;
GtkWidget *pixels_label;
GtkWidget *layers_label;
GtkWidget *channels_label;
GtkWidget *vectors_label;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment