changeset 5052:6a7759f63766

[gaim-migrate @ 5401] Pounces can now be deleted from the Edit Pounce dialog. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Mon, 07 Apr 2003 01:04:05 +0000
parents b3d9195777bb
children e40d52cffd51
files src/gtkpounce.c
diffstat 1 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkpounce.c	Mon Apr 07 00:59:59 2003 +0000
+++ b/src/gtkpounce.c	Mon Apr 07 01:04:05 2003 +0000
@@ -76,6 +76,14 @@
 }
 
 static void
+delete_cb(GtkWidget *w, struct gaim_gtkpounce_dialog *dialog)
+{
+	gaim_pounce_destroy(dialog->pounce);
+
+	delete_win_cb(NULL, NULL, dialog);
+}
+
+static void
 cancel_cb(GtkWidget *w, struct gaim_gtkpounce_dialog *dialog)
 {
 	delete_win_cb(NULL, NULL, dialog);
@@ -610,6 +618,14 @@
 	gtk_box_pack_end(GTK_BOX(vbox1), bbox, FALSE, FALSE, 0);
 	gtk_widget_show(bbox);
 
+	/* Delete button */
+	button = gtk_button_new_from_stock(GTK_STOCK_DELETE);
+	gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 0);
+	gtk_widget_show(button);
+
+	g_signal_connect(G_OBJECT(button), "clicked",
+					 G_CALLBACK(delete_cb), dialog);
+
 	/* Cancel button */
 	button = gtk_button_new_from_stock(GTK_STOCK_CANCEL);
 	gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 0);