diff src/gtkpounce.c @ 5877:f336fc0a7b8b

[gaim-migrate @ 6309] Added this cool little account drop-down widget, which is only used in pounces right now. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 15 Jun 2003 03:17:41 +0000
parents 8d6e5f804325
children 18486c860a46
line wrap: on
line diff
--- a/src/gtkpounce.c	Sun Jun 15 02:19:54 2003 +0000
+++ b/src/gtkpounce.c	Sun Jun 15 03:17:41 2003 +0000
@@ -269,11 +269,13 @@
 }
 
 static void
-pounce_choose_cb(GtkWidget *item, GaimGtkPounceDialog *dialog)
+pounce_choose_cb(GtkWidget *item, GaimAccount *account,
+				 GaimGtkPounceDialog *dialog)
 {
-	dialog->account = g_object_get_data(G_OBJECT(item), "user_data");
+	dialog->account = account;
 }
 
+#if 0
 static GtkWidget *
 pounce_user_menu(GaimGtkPounceDialog *dialog)
 {
@@ -321,6 +323,7 @@
 
 	return opt_menu;
 }
+#endif
 
 static void
 buddy_changed_cb(GtkEntry *entry, GaimGtkPounceDialog *dialog)
@@ -405,7 +408,10 @@
 	gtk_widget_show(label);
 	gtk_size_group_add_widget(sg, label);
 
-	dialog->account_menu = pounce_user_menu(dialog);
+	dialog->account_menu =
+		gaim_gtk_account_option_menu_new(dialog->account, TRUE,
+										 G_CALLBACK(pounce_choose_cb), dialog);
+
 	gtk_box_pack_start(GTK_BOX(hbox), dialog->account_menu, FALSE, FALSE, 0);
 	gtk_widget_show(dialog->account_menu);