diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-05-09 09:26:26 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-05-09 09:26:26 +0000 |
commit | 9a51810579d03b582f44919cb82d1fb757e93bea (patch) | |
tree | fcc9c9253e35f5827f334a52f032ca8459479961 /src/stock_pixmap.c | |
parent | cfba26004dba1af652c6e82e489d75ef049a803d (diff) |
reimplemented summary view with GtkTreeView.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@237 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/stock_pixmap.c')
-rw-r--r-- | src/stock_pixmap.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/stock_pixmap.c b/src/stock_pixmap.c index 0bd990d7..64664928 100644 --- a/src/stock_pixmap.c +++ b/src/stock_pixmap.c @@ -20,6 +20,7 @@ #include <glib.h> #include <gtk/gtkwidget.h> #include <gtk/gtkpixmap.h> +#include <gtk/gtkimage.h> #include "stock_pixmap.h" #include "gtkutils.h" @@ -148,6 +149,17 @@ GtkWidget *stock_pixmap_widget(GtkWidget *window, StockPixmap icon) return gtk_pixmap_new(pixmap, mask); } +GtkWidget *stock_pixbuf_widget(GtkWidget *window, StockPixmap icon) +{ + GdkPixbuf *pixbuf; + + g_return_val_if_fail(window != NULL, NULL); + g_return_val_if_fail(icon >= 0 && icon < N_STOCK_PIXMAPS, NULL); + + stock_pixbuf_gdk(window, icon, &pixbuf); + return gtk_image_new_from_pixbuf(pixbuf); +} + /* create GdkPixmap if it has not created yet */ gint stock_pixmap_gdk(GtkWidget *window, StockPixmap icon, GdkPixmap **pixmap, GdkBitmap **mask) |