Skip to content

Commit

Permalink
added a new app icon.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroyuki Yamamoto committed Jul 12, 2005
1 parent aad0433 commit 90515f7
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 6 deletions.
11 changes: 11 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
2005-07-12

* src/main.c
src/stock_pixmap.[ch]
src/Makefile.am
src/pixmaps/stock_sylpheed.png
sylpheed.png
sylpheed-64x64.png
sylpheed-128x128.png: added a new app icon, and specified it as
a default window icon.

2005-07-12

* src/procmsg.[ch]: procmsg_send_queue(): clear summary cache to
Expand Down
11 changes: 11 additions & 0 deletions ChangeLog.ja
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
2005-07-12

* src/main.c
src/stock_pixmap.[ch]
src/Makefile.am
src/pixmaps/stock_sylpheed.png
sylpheed.png
sylpheed-64x64.png
sylpheed-128x128.png: ���������ץꥱ������󥢥�������ɲä���
�ǥե���ȤΥ�����ɥ���������Ȥ��ƻ��ꡣ

2005-07-12

* src/procmsg.[ch]: procmsg_send_queue(): ����å������������ɤ�
Expand Down
4 changes: 4 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
#include "utils.h"
#include "gtkutils.h"
#include "socket.h"
#include "stock_pixmap.h"

#if USE_GPGME
# include "rfc2015.h"
Expand Down Expand Up @@ -145,6 +146,7 @@ int main(int argc, char *argv[])
gchar *userrc;
MainWindow *mainwin;
FolderView *folderview;
GdkPixbuf *icon;

setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
Expand Down Expand Up @@ -300,6 +302,8 @@ int main(int argc, char *argv[])
prefs_display_header_read_config();

gtkut_widget_init();
stock_pixbuf_gdk(NULL, STOCK_PIXMAP_SYLPHEED, &icon);
gtk_window_set_default_icon(icon);

mainwin = main_window_create
(prefs_common.sep_folder | prefs_common.sep_msg << 1);
Expand Down
2 changes: 2 additions & 0 deletions src/pixmaps/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ BUILT_SOURCES = \
stock_mail_send_queue.h \
stock_outbox.h \
stock_spam.h \
stock_sylpheed.h \
sylpheed-logo.h

EXTRA_DIST = \
Expand All @@ -40,6 +41,7 @@ EXTRA_DIST = \
stock_mail_send_queue.png \
stock_outbox.png \
stock_spam.png \
stock_sylpheed.png \
sylpheed-logo.png \
clip.xpm \
deleted.xpm \
Expand Down
Binary file added src/pixmaps/stock_sylpheed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 7 additions & 6 deletions src/stock_pixmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@
#include "pixmaps/mark.xpm"
#include "pixmaps/new.xpm"
#include "pixmaps/replied.xpm"
#include "pixmaps/unread.xpm"
#include "pixmaps/vcard.xpm"
#include "pixmaps/online.xpm"
#include "pixmaps/offline.xpm"
#include "pixmaps/mail.xpm"
#include "pixmaps/stock_inbox.h"
#include "pixmaps/stock_outbox.h"
#include "pixmaps/stock_mail.h"
Expand All @@ -65,12 +70,8 @@
#include "pixmaps/stock_delete_16.h"
#include "pixmaps/stock_spam.h"
#include "pixmaps/stock_hand-signed.h"
#include "pixmaps/stock_sylpheed.h"
#include "pixmaps/sylpheed-logo.h"
#include "pixmaps/unread.xpm"
#include "pixmaps/vcard.xpm"
#include "pixmaps/online.xpm"
#include "pixmaps/offline.xpm"
#include "pixmaps/mail.xpm"

typedef struct _StockPixmapData StockPixmapData;

Expand Down Expand Up @@ -133,6 +134,7 @@ static StockPixmapData pixmaps[] =
{NULL, NULL, NULL, NULL, stock_delete, sizeof(stock_delete), GTK_STOCK_DELETE, 24},
{NULL, NULL, NULL, NULL, stock_spam, sizeof(stock_spam), "stock_spam", 24},
{NULL, NULL, NULL, NULL, stock_hand_signed, sizeof(stock_hand_signed), "stock_hand-signed", 24},
{NULL, NULL, NULL, NULL, stock_sylpheed, sizeof(stock_sylpheed), NULL, 0},
{NULL, NULL, NULL, NULL, sylpheed_logo, sizeof(sylpheed_logo), NULL, 0},
};

Expand Down Expand Up @@ -194,7 +196,6 @@ gint stock_pixbuf_gdk(GtkWidget *window, StockPixmap icon, GdkPixbuf **pixbuf)
if (pixbuf)
*pixbuf = NULL;

g_return_val_if_fail(window != NULL, -1);
g_return_val_if_fail(icon >= 0 && icon < N_STOCK_PIXMAPS, -1);

pix_d = &pixmaps[icon];
Expand Down
1 change: 1 addition & 0 deletions src/stock_pixmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ typedef enum
STOCK_PIXMAP_DELETE,
STOCK_PIXMAP_SPAM,
STOCK_PIXMAP_SIGN,
STOCK_PIXMAP_SYLPHEED,
STOCK_PIXMAP_SYLPHEED_LOGO,

N_STOCK_PIXMAPS
Expand Down
Binary file modified sylpheed-128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified sylpheed-64x64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified sylpheed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 90515f7

Please sign in to comment.