Custom Toolbar 1
authorOliver Haertel <o.h.a@gmx.net>
Mon, 5 Aug 2002 17:56:35 +0000 (17:56 +0000)
committerOliver Haertel <o.h.a@gmx.net>
Mon, 5 Aug 2002 17:56:35 +0000 (17:56 +0000)
ChangeLog.claws
configure.in
src/stock_pixmap.c
src/stock_pixmap.h

index 10bca80..1ff6279 100644 (file)
@@ -1,3 +1,9 @@
+2002-08-05 [oliver]    0.8.1claws16
+               
+       * src/stock_pixmap.[ch]
+               o add UP_ARROW to available pixmaps (already in pixmap-directory)
+               o new func to retrieve pixmaps
+
 2002-08-05 [paul]      0.8.1claws15
 
        * sync with 0.8.1cvs10
index 6d2ab7f..565a7e0 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=8
 MICRO_VERSION=1
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws15
+EXTRA_VERSION=claws16
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index c8c301a..927969b 100644 (file)
@@ -60,6 +60,7 @@
 #include "pixmaps/replied.xpm"
 #include "pixmaps/close.xpm"
 #include "pixmaps/down_arrow.xpm"
+#include "pixmaps/up_arrow.xpm"
 #include "pixmaps/exec.xpm"
 #include "pixmaps/mail.xpm"
 #include "pixmaps/mail_attach.xpm"
@@ -121,6 +122,7 @@ static StockPixmapData pixmaps[] =
        {dir_open_xpm                   , NULL, NULL, "dir_open", "  "},
        {dir_open_hrm_xpm               , NULL, NULL, "dir_open_hrm", "  "},
        {down_arrow_xpm                 , NULL, NULL, "down_arrow", "  "},
+       {up_arrow_xpm                   , NULL, NULL, "up_arrow", "  "},
        {mail_compose_xpm               , NULL, NULL, "edit_extern", "  "},
        {error_xpm                              , NULL, NULL, "error", "  "},
        {exec_xpm                               , NULL, NULL, "exec", "  "},
@@ -322,3 +324,22 @@ void stock_pixmap_themes_list_free(GList *list)
        g_list_free(list);              
 }
 
+gchar *stock_pixmap_get_name (StockPixmap icon)
+{
+       g_return_val_if_fail(icon >= 0 && icon < N_STOCK_PIXMAPS, NULL);
+       
+       return pixmaps[icon].file;
+
+}
+
+StockPixmap stock_pixmap_get_icon (gchar *file)
+{
+       gint i;
+       
+       for (i = 0; i < N_STOCK_PIXMAPS; i++) {
+               if (strcmp (pixmaps[i].file, file) == 0)
+                       return i;
+       }
+       return -1;
+}
+       
index 92837c1..e687192 100644 (file)
@@ -42,6 +42,7 @@ typedef enum
        STOCK_PIXMAP_DIR_OPEN,
        STOCK_PIXMAP_DIR_OPEN_HRM,
        STOCK_PIXMAP_DOWN_ARROW,
+       STOCK_PIXMAP_UP_ARROW,
        STOCK_PIXMAP_EDIT_EXTERN,
        STOCK_PIXMAP_ERROR,
        STOCK_PIXMAP_EXEC,
@@ -111,5 +112,7 @@ gint stock_pixmap_gdk               (GtkWidget       *window,
 
 GList *stock_pixmap_themes_list_new    (void);
 void stock_pixmap_themes_list_free     (GList *list);
+gchar *stock_pixmap_get_name         (StockPixmap icon);
+StockPixmap stock_pixmap_get_icon    (gchar *file);
 
 #endif /* __STOCK_PIXMAP_H__ */