Use the 32x32 icon set for the toolbar. 20131002030504/pspp
authorJohn Darrington <john@darrington.wattle.id.au>
Tue, 1 Oct 2013 10:44:45 +0000 (12:44 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Tue, 1 Oct 2013 10:44:45 +0000 (12:44 +0200)
A (partial) set of 32x32 icons has recently been added.  This change tells the icon factory to
use those icons for the toolbar.

src/ui/gui/psppire.c

index bdf5064ef0576e86dc790ce0fedf4738a931eb7e..512239e92a4eb1a8fa038691ef2d23c841b9b0c0 100644 (file)
@@ -200,14 +200,21 @@ struct icon_size
 };
 
 static const GtkIconSize menus[] = {GTK_ICON_SIZE_MENU};
+static const GtkIconSize toolbar[] = {GTK_ICON_SIZE_LARGE_TOOLBAR};
 
 
-/* We currently have two icon sets viz: 16x16 and 24x24.
-   We use the 16x16 for menus, and the 24x24 for everything else. */
+/* We currently have three icon sets viz: 16x16, 24x24 and 32x32
+   We use the 16x16 for menus, the 32x32 for the toolbar and 
+   the 24x24 for everything else.
+
+   Exactly one element of the following array should have its 2nd and 3rd
+   argument as zero.
+*/
 static const struct icon_size sizemap[] = 
 {
   {16,  sizeof (menus) / sizeof (GtkIconSize), menus},
-  {24, 0, 0}
+  {24, 0, 0},
+  {32,  sizeof (toolbar) / sizeof (GtkIconSize), toolbar}
 };