| 18 * |
18 * |
| 19 * You should have received a copy of the GNU General Public License |
19 * You should have received a copy of the GNU General Public License |
| 20 * along with this program; if not, write to the Free Software |
20 * along with this program; if not, write to the Free Software |
| 21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 22 */ |
22 */ |
| 23 #include "internal.h" |
23 #include "gtkinternal.h" |
| 24 |
24 |
| 25 #include "debug.h" |
25 #include "debug.h" |
| 26 |
26 |
| 27 #include "gtkrequest.h" |
27 #include "gtkrequest.h" |
| 28 #include "gtkutils.h" |
28 #include "gtkutils.h" |
| 191 STOCK_ITEMIZE(_("Close"), GTK_STOCK_CLOSE); |
191 STOCK_ITEMIZE(_("Close"), GTK_STOCK_CLOSE); |
| 192 STOCK_ITEMIZE(_("Delete"), GTK_STOCK_DELETE); |
192 STOCK_ITEMIZE(_("Delete"), GTK_STOCK_DELETE); |
| 193 STOCK_ITEMIZE(_("Add"), GTK_STOCK_ADD); |
193 STOCK_ITEMIZE(_("Add"), GTK_STOCK_ADD); |
| 194 STOCK_ITEMIZE(_("Remove"), GTK_STOCK_REMOVE); |
194 STOCK_ITEMIZE(_("Remove"), GTK_STOCK_REMOVE); |
| 195 STOCK_ITEMIZE(_("Save"), GTK_STOCK_SAVE); |
195 STOCK_ITEMIZE(_("Save"), GTK_STOCK_SAVE); |
| 196 STOCK_ITEMIZE(_("Block"), GAIM_STOCK_BLOCK); |
|
| 197 STOCK_ITEMIZE(_("Unblock"), GTK_STOCK_REMOVE); |
|
| 198 |
196 |
| 199 return text; |
197 return text; |
| 200 } |
198 } |
| 201 |
199 |
| 202 static void * |
200 static void * |
| 363 buttons[(action_count * 2) - i - 1] = va_arg(actions, GCallback); |
361 buttons[(action_count * 2) - i - 1] = va_arg(actions, GCallback); |
| 364 } |
362 } |
| 365 |
363 |
| 366 /* Create the dialog. */ |
364 /* Create the dialog. */ |
| 367 data->dialog = dialog = gtk_dialog_new(); |
365 data->dialog = dialog = gtk_dialog_new(); |
| |
366 |
| 368 if (title != NULL) |
367 if (title != NULL) |
| 369 gtk_window_set_title(GTK_WINDOW(dialog), title); |
368 gtk_window_set_title(GTK_WINDOW(dialog), title); |
| 370 |
369 |
| 371 for (i = 0; i < action_count; i++) { |
370 for (i = 0; i < action_count; i++) { |
| 372 gtk_dialog_add_button(GTK_DIALOG(dialog), |
371 gtk_dialog_add_button(GTK_DIALOG(dialog), |