| 290 GtkWidget *ret; |
290 GtkWidget *ret; |
| 291 GtkWidget *vbox; |
291 GtkWidget *vbox; |
| 292 GtkWidget *button; |
292 GtkWidget *button; |
| 293 char *gtk_version = NULL; |
293 char *gtk_version = NULL; |
| 294 char *run_key_val; |
294 char *run_key_val; |
| |
295 char *tmp; |
| 295 |
296 |
| 296 ret = gtk_vbox_new(FALSE, 18); |
297 ret = gtk_vbox_new(FALSE, 18); |
| 297 gtk_container_set_border_width(GTK_CONTAINER(ret), 12); |
298 gtk_container_set_border_width(GTK_CONTAINER(ret), 12); |
| 298 |
299 |
| 299 gtk_version = g_strdup_printf("GTK+\t%u.%u.%u\nGlib\t%u.%u.%u", |
300 gtk_version = g_strdup_printf("GTK+\t%u.%u.%u\nGlib\t%u.%u.%u", |
| 310 g_free(gtk_version); |
311 g_free(gtk_version); |
| 311 } |
312 } |
| 312 |
313 |
| 313 /* Autostart */ |
314 /* Autostart */ |
| 314 vbox = pidgin_make_frame(ret, _("Startup")); |
315 vbox = pidgin_make_frame(ret, _("Startup")); |
| 315 button = gtk_check_button_new_with_mnemonic(_("_Start " PIDGIN_NAME " on Windows startup")); |
316 tmp = g_strdup_printf(_("_Start %s on Windows startup"), PIDGIN_NAME); |
| |
317 button = gtk_check_button_new_with_mnemonic(tmp); |
| |
318 g_free(tmp); |
| 316 gtk_box_pack_start(GTK_BOX(vbox), button, FALSE, FALSE, 0); |
319 gtk_box_pack_start(GTK_BOX(vbox), button, FALSE, FALSE, 0); |
| 317 |
320 |
| 318 if ((run_key_val = wpurple_read_reg_string(HKEY_CURRENT_USER, RUNKEY, "Purple")) |
321 if ((run_key_val = wpurple_read_reg_string(HKEY_CURRENT_USER, RUNKEY, "Purple")) |
| 319 || (run_key_val = wpurple_read_reg_string(HKEY_LOCAL_MACHINE, RUNKEY, "Purple"))) { |
322 || (run_key_val = wpurple_read_reg_string(HKEY_LOCAL_MACHINE, RUNKEY, "Purple"))) { |
| 320 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), TRUE); |
323 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), TRUE); |
| 363 NULL, |
366 NULL, |
| 364 PURPLE_PRIORITY_DEFAULT, |
367 PURPLE_PRIORITY_DEFAULT, |
| 365 WINPREFS_PLUGIN_ID, |
368 WINPREFS_PLUGIN_ID, |
| 366 N_("Pidgwin Options"), |
369 N_("Pidgwin Options"), |
| 367 VERSION, |
370 VERSION, |
| 368 N_("Options specific to Windows " PIDGIN_NAME "."), |
371 N_("Options specific to Pidgin for Windows."), |
| 369 N_("Provides options specific to Windows " PIDGIN_NAME ", such as buddy list docking."), |
372 N_("Provides options specific to Pidgin for Windows , such as buddy list docking."), |
| 370 "Herman Bloggs <hermanator12002@yahoo.com>", |
373 "Herman Bloggs <hermanator12002@yahoo.com>", |
| 371 PURPLE_WEBSITE, |
374 PURPLE_WEBSITE, |
| 372 plugin_load, |
375 plugin_load, |
| 373 plugin_unload, |
376 plugin_unload, |
| 374 NULL, |
377 NULL, |