comparison pidgin/gtkpounce.c @ 20598:285bb637a2b7

Updated hinting to be less invasive
author Gabriel Schulhof <nix@go-nix.ca>
date Sat, 22 Sep 2007 16:19:34 +0000
parents 591267f6f1d5
children b93d1ad9cf02
comparison
equal deleted inserted replaced
20597:591267f6f1d5 20598:285bb637a2b7
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(entry, _("Select a file"), name, FALSE, 157 purple_request_file_with_hint(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 "buddy_pounce", 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);
1092 account = purple_pounce_get_pouncer(pounce); 1092 account = purple_pounce_get_pouncer(pounce);
1093 pouncer = purple_account_get_username(account); 1093 pouncer = purple_account_get_username(account);
1094 pouncee = purple_pounce_get_pouncee(pounce); 1094 pouncee = purple_pounce_get_pouncee(pounce);
1095 1095
1096 buf = g_strdup_printf(_("Are you sure you want to delete the pounce on %s for %s?"), pouncee, pouncer); 1096 buf = g_strdup_printf(_("Are you sure you want to delete the pounce on %s for %s?"), pouncee, pouncer);
1097 purple_request_action(pounce, NULL, buf, NULL, 0, 1097 purple_request_action_with_hint(pounce, NULL, buf, NULL, 0,
1098 account, pouncee, NULL, 1098 account, pouncee, NULL,
1099 "pounces", pounce, 2, 1099 "pounces", pounce, 2,
1100 _("Delete"), pounces_manager_delete_confirm_cb, 1100 _("Delete"), pounces_manager_delete_confirm_cb,
1101 _("Cancel"), NULL); 1101 _("Cancel"), NULL);
1102 g_free(buf); 1102 g_free(buf);