Mercurial > pidgin
changeset 4567:493f050dc11a
[gaim-migrate @ 4848]
Robot101 made the Docklet menu the way the gaim-devel folks want it.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Mon, 10 Feb 2003 04:44:54 +0000 |
parents | 1a9c80713d4b |
children | ddc1f12b52d6 |
files | plugins/docklet/docklet.c src/buddy.c src/ui.h |
diffstat | 3 files changed, 33 insertions(+), 19 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/docklet/docklet.c Mon Feb 10 03:09:34 2003 +0000 +++ b/plugins/docklet/docklet.c Mon Feb 10 04:44:54 2003 +0000 @@ -93,6 +93,19 @@ switch (status) { case offline: case offline_connecting: + entry = gtk_menu_item_new_with_label(_("Auto-login")); + g_signal_connect(G_OBJECT(entry), "activate", G_CALLBACK(auto_login), NULL); + gtk_menu_append(GTK_MENU(menu), entry); + break; + default: + gaim_new_item_from_stock(menu, _("New Message.."), GTK_STOCK_CONVERT, G_CALLBACK(show_im_dialog), NULL, 0, 0, NULL); + gaim_new_item_from_stock(menu, _("Join A Chat..."), GTK_STOCK_JUMP_TO, G_CALLBACK(join_chat), NULL, 0, 0, NULL); + break; + } + + switch (status) { + case offline: + case offline_connecting: break; case online: case online_connecting: @@ -133,12 +146,22 @@ break; } + gaim_separator(menu); + + entry = gtk_check_menu_item_new_with_label(_("Mute Sounds")); + gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(entry), gaim_sound_get_mute()); + g_signal_connect(G_OBJECT(entry), "toggled", G_CALLBACK(docklet_toggle_mute), NULL); + gtk_menu_append(GTK_MENU(menu), entry); + + gaim_new_item_from_stock(menu, _("File Transfers..."), GTK_STOCK_REVERT_TO_SAVED, G_CALLBACK(show_xfer_dialog), NULL, 0, 0, NULL); + gaim_new_item_from_pixbuf(menu, _("Accounts..."), "accounts-menu.png", G_CALLBACK(account_editor), NULL, 0, 0, NULL); + gaim_new_item_from_stock(menu, _("Preferences..."), GTK_STOCK_PREFERENCES, G_CALLBACK(show_prefs), NULL, 0, 0, NULL); + + gaim_separator(menu); + switch (status) { case offline: case offline_connecting: - entry = gtk_menu_item_new_with_label(_("Auto-login")); - g_signal_connect(G_OBJECT(entry), "activate", G_CALLBACK(auto_login), NULL); - gtk_menu_append(GTK_MENU(menu), entry); break; default: entry = gtk_menu_item_new_with_label(_("Signoff")); @@ -147,19 +170,6 @@ break; } - gaim_separator(menu); - - entry = gtk_check_menu_item_new_with_label(_("Mute Sounds")); - gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(entry), gaim_sound_get_mute()); - g_signal_connect(G_OBJECT(entry), "toggled", G_CALLBACK(docklet_toggle_mute), NULL); - gtk_menu_append(GTK_MENU(menu), entry); - - gaim_new_item_from_pixbuf(menu, _("Accounts..."), "accounts-menu.png", G_CALLBACK(account_editor), NULL, 0, 0, 0); - gaim_new_item_from_stock(menu, _("Preferences..."), GTK_STOCK_PREFERENCES, G_CALLBACK(show_prefs), NULL, 0, 0, 0); - - gaim_separator(menu); - - gaim_new_item_from_pixbuf(menu, _("About Gaim..."), "about_menu.png", G_CALLBACK(show_about), NULL, 0, 0, 0); gaim_new_item_from_stock(menu, _("Quit"), GTK_STOCK_QUIT, G_CALLBACK(do_quit), NULL, 0, 0, 0); gtk_widget_show_all(menu); @@ -453,6 +463,9 @@ docklet_unregister_icon_factory(); + /* do this while gaim has no other way to toggle the global mute */ + gaim_sound_set_mute(FALSE); + debug_printf("Tray Icon: removed\n"); } @@ -487,7 +500,7 @@ desc.api_version = PLUGIN_API_VERSION; desc.name = g_strdup(_("Tray Icon")); desc.version = g_strdup(VERSION); - desc.description = g_strdup(_("Interacts with a System Tray applet (in GNOME or KDE, for example) to display the current status of Gaim, allow fast access to commonly used functions, and to toggle display of the buddy list or login window. Also allows messages to be queued until the icon is clicked, similar to ICQ (although the icon doesn't flash yet =).")); + desc.description = g_strdup(_("Interacts with a Notification Area applet (in GNOME or KDE, for example) to display the current status of Gaim, allow fast access to commonly used functions, and to toggle display of the buddy list or login window. Also allows messages to be queued until the icon is clicked, similar to ICQ.")); desc.authors = g_strdup(_("Robert McQueen <robot101@debian.org>")); desc.url = g_strdup(WEBSITE); return &desc; @@ -498,5 +511,5 @@ } char *description() { - return _("Interacts with a System Tray applet (in GNOME or KDE, for example) to display the current status of Gaim, allow fast access to commonly used functions, and to toggle display of the buddy list or login window. Also allows messages to be queued until the icon is clicked, similar to ICQ (although the icon doesn't flash yet =)."); + return _("Interacts with a Notification Area applet (in GNOME or KDE, for example) to display the current status of Gaim, allow fast access to commonly used functions, and to toggle display of the buddy list or login window. Also allows messages to be queued until the icon is clicked, similar to ICQ."); }
--- a/src/buddy.c Mon Feb 10 03:09:34 2003 +0000 +++ b/src/buddy.c Mon Feb 10 04:44:54 2003 +0000 @@ -2443,7 +2443,7 @@ } } -static void +void show_xfer_dialog(GtkMenuItem *item, gpointer user_data) { struct gaim_gtkxfer_dialog *dialog;
--- a/src/ui.h Mon Feb 10 03:09:34 2003 +0000 +++ b/src/ui.h Mon Feb 10 04:44:54 2003 +0000 @@ -362,6 +362,7 @@ extern GtkWidget *gaim_new_item(GtkWidget *, const char *); extern void update_idle_times(); extern void build_imchat_box(gboolean); +extern void show_xfer_dialog(); /* Functions in buddy_chat.c */ #if 0