diff src/gtkstock.c @ 12163:f6f08fd1841a

[gaim-migrate @ 14464] I think GTK's 16x16 disconnect icon looks nice for a plugin menu item. As long as I was importing that as a plugins icon, I imported it as a DISCONNECT icon like it's meant to be. I then imported the connect icon as well. They might have some use to plugins. I don't want a plugin to use the GAIM_STOCK_PLUGIN icon when they really want DISCONNECT, in case we want to change the plugin icon later. I don't know how we'd apply the versioning API to these, but this allows us more flexibility in some cases. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Sat, 19 Nov 2005 15:27:44 +0000
parents e75ef7aa913e
children 51c194ca6016
line wrap: on
line diff
--- a/src/gtkstock.c	Sat Nov 19 15:19:35 2005 +0000
+++ b/src/gtkstock.c	Sat Nov 19 15:27:44 2005 +0000
@@ -47,6 +47,11 @@
 	{ GAIM_STOCK_BLOCK,           NULL,      GTK_STOCK_STOP             },
 	{ GAIM_STOCK_CHAT,            NULL,      GTK_STOCK_JUMP_TO          },
 	{ GAIM_STOCK_CLEAR,           NULL,      GTK_STOCK_CLEAR            },
+#if GTK_CHECK_VERSION(2,6,0)
+	{ GAIM_STOCK_CONNECT,         NULL,      GTK_STOCK_CONNECT          },
+#else
+	{ GAIM_STOCK_CONNECT,         "icons",   "stock_connect_16.png"     },
+#endif
 	{ GAIM_STOCK_DOWNLOAD,        NULL,      GTK_STOCK_GO_DOWN          },
 	{ GAIM_STOCK_DIALOG_AUTH,     "dialogs", "gaim_auth.png"            },
 	{ GAIM_STOCK_DIALOG_COOL,     "dialogs", "gaim_cool.png"            },
@@ -54,6 +59,11 @@
 	{ GAIM_STOCK_DIALOG_INFO,     "dialogs", "gaim_info.png"            },
 	{ GAIM_STOCK_DIALOG_QUESTION, "dialogs", "gaim_question.png"        },
 	{ GAIM_STOCK_DIALOG_WARNING,  "dialogs", "gaim_warning.png"         },
+#if GTK_CHECK_VERSION(2,6,0)
+	{ GAIM_STOCK_DISCONNECT,      NULL,      GTK_STOCK_DISCONNECT       },
+#else
+	{ GAIM_STOCK_DISCONNECT,      "icons",   "stock_disconnect_16.png"  },
+#endif
 	{ GAIM_STOCK_FGCOLOR,         "buttons", "change-fgcolor-small.png" },
 #if GTK_CHECK_VERSION(2,6,0)
 	{ GAIM_STOCK_EDIT,            NULL,      GTK_STOCK_EDIT             },
@@ -87,6 +97,11 @@
 	{ GAIM_STOCK_PAUSE,           "buttons", "pause.png"                },
 #endif
 	{ GAIM_STOCK_PENDING,         "gaim",    "envelope.png"             },
+#if GTK_CHECK_VERSION(2,6,0)
+	{ GAIM_STOCK_PLUGIN,          NULL,      GTK_STOCK_DISCONNECT       },
+#else
+	{ GAIM_STOCK_PLUGIN,          "icons",   "stock_disconnect_16.png"  },
+#endif
 	{ GAIM_STOCK_OPEN_MAIL,       NULL,      GTK_STOCK_JUMP_TO          },
 	{ GAIM_STOCK_SEND,            "buttons", "send-im.png"              },
 	{ GAIM_STOCK_SIGN_ON,         NULL,      GTK_STOCK_EXECUTE          },