Generalise theme extension handling
[claws.git] / src / stock_pixmap.h
index eff8911e181dab7fe97354312f585380f423c79d..447e5dab5e588102a6b64fd5fc67661ca820ac59 100644 (file)
@@ -1,10 +1,10 @@
 /*
- * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2006 Hiroyuki Yamamoto and the Claws Mail team
+ * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
+ * Copyright (C) 1999-2016 Hiroyuki Yamamoto and the Claws Mail team
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation; either version 3 of the License, or
  * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 
 #ifndef __STOCK_PIXMAP_H__
 #define __STOCK_PIXMAP_H__
 
 #include <glib.h>
-#include <gtk/gtkwidget.h>
+#include <gtk/gtk.h>
 
 typedef enum
 {
@@ -30,6 +29,7 @@ typedef enum
        STOCK_PIXMAP_ADDRESS,
        STOCK_PIXMAP_ADDRESS_BOOK,
        STOCK_PIXMAP_ADDRESS_SEARCH,
+       STOCK_PIXMAP_ANONYMOUS,
        STOCK_PIXMAP_BOOK,
        STOCK_PIXMAP_CATEGORY,
        STOCK_PIXMAP_CHECKBOX_OFF,
@@ -70,6 +70,7 @@ typedef enum
        STOCK_PIXMAP_INTERFACE,
        STOCK_PIXMAP_JPILOT,
        STOCK_PIXMAP_KEY,
+       STOCK_PIXMAP_KEY_SIGN,
        STOCK_PIXMAP_LDAP,
        STOCK_PIXMAP_LINEWRAP_CURRENT,
        STOCK_PIXMAP_LINEWRAP_ALL,
@@ -83,9 +84,11 @@ typedef enum
        STOCK_PIXMAP_MAIL_REPLY,
        STOCK_PIXMAP_MAIL_REPLY_TO_ALL,
        STOCK_PIXMAP_MAIL_REPLY_TO_AUTHOR,
+       STOCK_PIXMAP_MAIL_REPLY_TO_LIST,
        STOCK_PIXMAP_MAIL_SEND,
        STOCK_PIXMAP_MAIL_SEND_QUEUE,
        STOCK_PIXMAP_MAIL_SIGN,
+       STOCK_PIXMAP_OPEN_MAIL,
        STOCK_PIXMAP_MARK,
        STOCK_PIXMAP_NEW,
        STOCK_PIXMAP_NEWS_COMPOSE,
@@ -98,6 +101,7 @@ typedef enum
        STOCK_PIXMAP_OUTBOX_OPEN_MARK,
        STOCK_PIXMAP_OUTBOX_OPEN_HRM_MARK,
        STOCK_PIXMAP_REPLIED,
+       STOCK_PIXMAP_REPLIED_AND_FORWARDED,
        STOCK_PIXMAP_PASTE,
        STOCK_PIXMAP_PREFERENCES,
        STOCK_PIXMAP_PROPERTIES,
@@ -126,17 +130,24 @@ typedef enum
        STOCK_PIXMAP_NOTICE_NOTE,               /* small message */
        STOCK_PIXMAP_QUICKSEARCH,               /* quicksearch pixmap */
        STOCK_PIXMAP_GPG_SIGNED,
+       STOCK_PIXMAP_GO_FOLDERS,
        STOCK_PIXMAP_DRAFTS_CLOSE,
        STOCK_PIXMAP_DRAFTS_OPEN,
        STOCK_PIXMAP_DRAFTS_CLOSE_MARK,
        STOCK_PIXMAP_DRAFTS_OPEN_MARK,
        STOCK_PIXMAP_MIME_TEXT_PLAIN,
        STOCK_PIXMAP_MIME_TEXT_HTML,
+       STOCK_PIXMAP_MIME_TEXT_PATCH,
        STOCK_PIXMAP_MIME_APPLICATION,
        STOCK_PIXMAP_MIME_IMAGE,
        STOCK_PIXMAP_MIME_AUDIO,
        STOCK_PIXMAP_MIME_TEXT_ENRICHED,
        STOCK_PIXMAP_MIME_UNKNOWN,
+       STOCK_PIXMAP_MIME_PDF,
+       STOCK_PIXMAP_MIME_PS,
+       STOCK_PIXMAP_MIME_TEXT_CALENDAR,
+       STOCK_PIXMAP_MIME_PGP_SIG,
+       STOCK_PIXMAP_PRINTER,
        STOCK_PIXMAP_PRIVACY_SIGNED,
        STOCK_PIXMAP_PRIVACY_PASSED,
        STOCK_PIXMAP_PRIVACY_FAILED,
@@ -150,17 +161,60 @@ typedef enum
        STOCK_PIXMAP_PRIVACY_EMBLEM_WARN,
        STOCK_PIXMAP_MIME_MESSAGE,
        STOCK_PIXMAP_CLAWS_MAIL_ICON,
+       STOCK_PIXMAP_CLAWS_MAIL_ICON_64,
        STOCK_PIXMAP_READ,
+       STOCK_PIXMAP_DELETE,
+       STOCK_PIXMAP_DELETE_DUP,
+       STOCK_PIXMAP_CANCEL,
        STOCK_PIXMAP_TRASH,
+       STOCK_PIXMAP_MAIL_COMPOSE_LOGO,
        STOCK_PIXMAP_CLAWS_MAIL_LOGO,
-       STOCK_PIXMAP_DIR_NOSELECT, 
+       STOCK_PIXMAP_DIR_NOSELECT_CLOSE, 
+       STOCK_PIXMAP_DIR_NOSELECT_CLOSE_MARK, 
+       STOCK_PIXMAP_DIR_NOSELECT_OPEN, 
+       STOCK_PIXMAP_DIR_SUBS_CLOSE_MARK, 
+       STOCK_PIXMAP_DIR_SUBS_CLOSE, 
+       STOCK_PIXMAP_DIR_SUBS_OPEN, 
        STOCK_PIXMAP_SPAM,
        STOCK_PIXMAP_SPAM_BTN,
        STOCK_PIXMAP_HAM_BTN,
        STOCK_PIXMAP_MOVED,
        STOCK_PIXMAP_COPIED,
-       STOCK_PIXMAP_ACTIVE,
-       STOCK_PIXMAP_INACTIVE,
+       STOCK_PIXMAP_SELECTION,
+       STOCK_PIXMAP_WATCHTHREAD,
+       STOCK_PIXMAP_TRAY_NEWMAIL_OFFLINE,
+       STOCK_PIXMAP_TRAY_NEWMAIL,
+       STOCK_PIXMAP_TRAY_NEWMARKEDMAIL_OFFLINE,
+       STOCK_PIXMAP_TRAY_NEWMARKEDMAIL,
+       STOCK_PIXMAP_TRAY_NOMAIL_OFFLINE,
+       STOCK_PIXMAP_TRAY_NOMAIL,
+       STOCK_PIXMAP_TRAY_UNREADMAIL_OFFLINE,
+       STOCK_PIXMAP_TRAY_UNREADMAIL,
+       STOCK_PIXMAP_TRAY_UNREADMARKEDMAIL_OFFLINE,
+       STOCK_PIXMAP_TRAY_UNREADMARKEDMAIL,
+       STOCK_PIXMAP_DOC_INDEX,
+       STOCK_PIXMAP_DOC_INDEX_CLOSE,
+       STOCK_PIXMAP_DOC_INFO,
+       STOCK_PIXMAP_FIRST_ARROW,
+       STOCK_PIXMAP_LAST_ARROW,
+       STOCK_PIXMAP_LEFT_ARROW,
+       STOCK_PIXMAP_RIGHT_ARROW,
+       STOCK_PIXMAP_ROTATE_LEFT,
+       STOCK_PIXMAP_ROTATE_RIGHT,
+       STOCK_PIXMAP_ZOOM_FIT,
+       STOCK_PIXMAP_ZOOM_IN,
+       STOCK_PIXMAP_ZOOM_OUT,
+       STOCK_PIXMAP_ZOOM_WIDTH,
+       STOCK_PIXMAP_MARK_IGNORETHREAD,
+       STOCK_PIXMAP_MARK_WATCHTHREAD,
+       STOCK_PIXMAP_MARK_MARK,
+       STOCK_PIXMAP_MARK_UNMARK,
+       STOCK_PIXMAP_MARK_LOCKED,
+       STOCK_PIXMAP_MARK_UNLOCKED,
+       STOCK_PIXMAP_MARK_ALLREAD,
+       STOCK_PIXMAP_MARK_ALLUNREAD,
+       STOCK_PIXMAP_MARK_READ,
+       STOCK_PIXMAP_MARK_UNREAD,
        STOCK_PIXMAP_EMPTY,              /* last entry */
        N_STOCK_PIXMAPS
 } StockPixmap;
@@ -178,24 +232,19 @@ typedef enum {
        OVERLAY_BOTTOM_RIGHT
 } OverlayPosition;
 
-GtkWidget *stock_pixmap_widget (GtkWidget       *window,
-                                StockPixmap      icon);
-gint stock_pixbuf_gdk          (GtkWidget *window, StockPixmap icon, 
-                                GdkPixbuf **pixbuf);
-gint stock_pixmap_gdk          (GtkWidget       *window,
-                                StockPixmap      icon,
-                                GdkPixmap      **pixmap,
-                                GdkBitmap      **mask);
+GtkWidget *stock_pixmap_widget (StockPixmap      icon);
+gint stock_pixbuf_gdk          (StockPixmap icon, GdkPixbuf **pixbuf);
 
 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);
-GtkWidget *stock_pixmap_widget_with_overlay (GtkWidget         *window,
-                                            StockPixmap         icon,
+GtkWidget *stock_pixmap_widget_with_overlay (StockPixmap        icon,
                                             StockPixmap         overlay,
                                             OverlayPosition     pos,
                                             gint                border_x,
                                             gint                border_y);
+gchar *stock_pixmap_get_system_theme_dir_for_theme(const gchar *theme);
+const char **stock_pixmap_theme_extensions(void);
 
 #endif /* __STOCK_PIXMAP_H__ */