# HG changeset patch # User Christian Hammond # Date 1053914286 0 # Node ID fe76565d93c4c10f8cb9a2505b6184e6e2eca7c0 # Parent a3e6a5ef49b556b9bc55bee9220b969559607635 [gaim-migrate @ 5923] Forgot. committer: Tailor Script diff -r a3e6a5ef49b5 -r fe76565d93c4 src/stock.c --- a/src/stock.c Mon May 26 01:48:31 2003 +0000 +++ b/src/stock.c Mon May 26 01:58:06 2003 +0000 @@ -72,6 +72,7 @@ { GAIM_STOCK_SIGN_ON, NULL, GTK_STOCK_EXECUTE }, { GAIM_STOCK_SIGN_OFF, NULL, GTK_STOCK_CLOSE }, { GAIM_STOCK_SMILEY, "buttons", "insert-smiley-small.png" }, + { GAIM_STOCK_OPEN_MAIL, NULL, GTK_STOCK_JUMP_TO }, { GAIM_STOCK_TEXT_BIGGER, "buttons", "text_bigger.png" }, { GAIM_STOCK_TEXT_NORMAL, "buttons", "text_normal.png" }, { GAIM_STOCK_TEXT_SMALLER, "buttons", "text_smaller.png" }, @@ -81,7 +82,13 @@ { GAIM_STOCK_WARN, NULL, GTK_STOCK_DIALOG_WARNING } }; +const GtkStockItem stock_items[] = +{ + { GAIM_STOCK_OPEN_MAIL, N_("_Open Mail"), 0, 0, NULL } +}; + static gint stock_icon_count = sizeof(stock_icons) / sizeof(*stock_icons); +static gint stock_item_count = sizeof(stock_items) / sizeof(*stock_items); static gchar * find_file(const char *dir, const char *base) @@ -94,7 +101,7 @@ if (!strcmp(dir, "gaim")) filename = g_build_filename(DATADIR, "pixmaps", "gaim", base, NULL); else - filename = g_build_filename(DATADIR, "pixmaps", "gaim", dir, base, NULL); + filename = g_build_filename(DATADIR, "pixmaps", "gaim", dir, base, NULL); if (!g_file_test(filename, G_FILE_TEST_EXISTS)) { g_critical("Unable to load stock pixmap %s\n", base); @@ -158,4 +165,7 @@ gtk_icon_size_register(GAIM_ICON_SIZE_LOGO, 210, 150); g_object_unref(G_OBJECT(icon_factory)); + + /* Register the stock items. */ + gtk_stock_add_static(stock_items, stock_item_count); } diff -r a3e6a5ef49b5 -r fe76565d93c4 src/stock.h --- a/src/stock.h Mon May 26 01:48:31 2003 +0000 +++ b/src/stock.h Mon May 26 01:58:06 2003 +0000 @@ -63,6 +63,7 @@ #define GAIM_STOCK_SIGN_OFF "gaim-sign-off" #define GAIM_STOCK_SIGN_ON "gaim-sign-on" #define GAIM_STOCK_SMILEY "gaim-smiley" +#define GAIM_STOCK_OPEN_MAIL "gaim-stock-open-mail" #define GAIM_STOCK_TEXT_BIGGER "gaim-text-bigger" #define GAIM_STOCK_TEXT_NORMAL "gaim-text-normal" #define GAIM_STOCK_TEXT_SMALLER "gaim-text-smaller"