Mercurial > pidgin
comparison pidgin/gtkpounce.c @ 21086:8c9aad9479c0
Removed request stuff - now on pidgin-request-ui-hint
author | Gabriel Schulhof <nix@go-nix.ca> |
---|---|
date | Wed, 10 Oct 2007 22:57:51 +0000 |
parents | fdefa5eb46e2 |
children | cab348e39751 6c4de0d24eff |
comparison
equal
deleted
inserted
replaced
21077:488796f5ba33 | 21086:8c9aad9479c0 |
---|---|
152 const gchar *name; | 152 const gchar *name; |
153 | 153 |
154 entry = (GtkWidget *)data; | 154 entry = (GtkWidget *)data; |
155 name = gtk_entry_get_text(GTK_ENTRY(entry)); | 155 name = gtk_entry_get_text(GTK_ENTRY(entry)); |
156 | 156 |
157 purple_request_file_with_hint(entry, _("Select a file"), name, FALSE, | 157 purple_request_file(entry, _("Select a file"), name, FALSE, |
158 G_CALLBACK(pounce_update_entry_fields), NULL, | 158 G_CALLBACK(pounce_update_entry_fields), NULL, |
159 NULL, NULL, NULL, | 159 NULL, NULL, NULL, |
160 "buddy_pounce", entry); | 160 entry); |
161 g_signal_connect_swapped(G_OBJECT(entry), "destroy", | 161 g_signal_connect_swapped(G_OBJECT(entry), "destroy", |
162 G_CALLBACK(purple_request_close_with_handle), entry); | 162 G_CALLBACK(purple_request_close_with_handle), entry); |
163 } | 163 } |
164 | 164 |
165 static void | 165 static void |
1106 account = purple_pounce_get_pouncer(pounce); | 1106 account = purple_pounce_get_pouncer(pounce); |
1107 pouncer = purple_account_get_username(account); | 1107 pouncer = purple_account_get_username(account); |
1108 pouncee = purple_pounce_get_pouncee(pounce); | 1108 pouncee = purple_pounce_get_pouncee(pounce); |
1109 | 1109 |
1110 buf = g_strdup_printf(_("Are you sure you want to delete the pounce on %s for %s?"), pouncee, pouncer); | 1110 buf = g_strdup_printf(_("Are you sure you want to delete the pounce on %s for %s?"), pouncee, pouncer); |
1111 purple_request_action_with_hint(pounce, NULL, buf, NULL, 0, | 1111 purple_request_action(pounce, NULL, buf, NULL, 0, |
1112 account, pouncee, NULL, | 1112 account, pouncee, NULL, |
1113 "pounces", pounce, 2, | 1113 pounce, 2, |
1114 _("Delete"), pounces_manager_delete_confirm_cb, | 1114 _("Delete"), pounces_manager_delete_confirm_cb, |
1115 _("Cancel"), NULL); | 1115 _("Cancel"), NULL); |
1116 g_free(buf); | 1116 g_free(buf); |
1117 } | 1117 } |
1118 | 1118 |
1314 | 1314 |
1315 return sw; | 1315 return sw; |
1316 } | 1316 } |
1317 | 1317 |
1318 void | 1318 void |
1319 pidgin_pounces_manager_show() | 1319 pidgin_pounces_manager_show(void) |
1320 { | 1320 { |
1321 pidgin_pounces_manager_show_with_parent(NULL); | 1321 pidgin_pounces_manager_show_with_parent(NULL); |
1322 } | 1322 } |
1323 | 1323 |
1324 void | 1324 void |