diff src/gtkstatusbox.c @ 11729:8a981a601242

[gaim-migrate @ 14020] Remove the Tools->Statuses menu item from the blist. Add "Saved..." to the gtkstatusbox, and make "Custom..." and "Saved..." bring up the appropriate gtk saved statuses window. Someone needs to do something so that you can select these twice in a row (and other related functionality changes) How do people feel about having those two things at the bottom of the gtkstatusbox? Good idea? Bad idea? committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 23 Oct 2005 00:16:03 +0000
parents a8ec0a291d14
children 03c813a42c76
line wrap: on
line diff
--- a/src/gtkstatusbox.c	Sun Oct 23 00:09:27 2005 +0000
+++ b/src/gtkstatusbox.c	Sun Oct 23 00:16:03 2005 +0000
@@ -29,6 +29,7 @@
 #include "status.h"
 
 #include "gtkgaim.h"
+#include "gtksavedstatuses.h"
 #include "gtkstock.h"
 #include "gtkstatusbox.h"
 
@@ -311,6 +312,7 @@
 	gtk_gaim_status_box_add(GTK_GAIM_STATUS_BOX(status_box), pixbuf4, _("Invisible"), NULL, "invisible");
 	gtk_gaim_status_box_add(GTK_GAIM_STATUS_BOX(status_box), pixbuf3, _("Offline"), NULL, "offline");
 	gtk_gaim_status_box_add(GTK_GAIM_STATUS_BOX(status_box), pixbuf, _("Custom..."), NULL, "custom");
+	gtk_gaim_status_box_add(GTK_GAIM_STATUS_BOX(status_box), pixbuf, _("Saved..."), NULL, "saved");
 
 	current_savedstatus_name = gaim_prefs_get_string("/core/status/current");
 	saved_status = gaim_savedstatus_find(current_savedstatus_name);
@@ -596,6 +598,18 @@
 		g_source_remove(status_box->typing);
 	status_box->typing = 0;
 
+	if (!strcmp(status_type_id, "custom"))
+	{
+		gaim_gtk_status_editor_show(NULL);
+		return;
+	}
+
+	if (!strcmp(status_type_id, "saved"))
+	{
+		gaim_gtk_status_window_show();
+		return;
+	}
+
 	/*
 	 * TODO: Should show the message box whenever status_type_id allows
 	 *       for a message attribute on any protocol that is enabled.