Mercurial > pidgin.yaz
comparison plugins/docklet/docklet.c @ 13175:488619ad7ed5
[gaim-migrate @ 15538]
If you're not using a saved status and you select "New..." in the
gtkstatusbox then the new status dialog will be seeded with your
current message and stuff. rlaager told me to do this.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 08 Feb 2006 05:36:13 +0000 |
parents | f1ed04b5aa30 |
children | c97c76d9d347 |
comparison
equal
deleted
inserted
replaced
13174:e29845c34565 | 13175:488619ad7ed5 |
---|---|
358 #endif | 358 #endif |
359 | 359 |
360 static void | 360 static void |
361 show_custom_status_editor_cb(GtkMenuItem *menuitem, gpointer user_data) | 361 show_custom_status_editor_cb(GtkMenuItem *menuitem, gpointer user_data) |
362 { | 362 { |
363 gaim_gtk_status_editor_show(NULL); | 363 GaimSavedStatus *saved_status; |
364 saved_status = gaim_savedstatus_get_current(); | |
365 gaim_gtk_status_editor_show(FALSE, | |
366 gaim_savedstatus_is_transient(saved_status) ? saved_status : NULL); | |
364 } | 367 } |
365 | 368 |
366 static void | 369 static void |
367 activate_status_primitive_cb(GtkMenuItem *menuitem, gpointer user_data) | 370 activate_status_primitive_cb(GtkMenuItem *menuitem, gpointer user_data) |
368 { | 371 { |
456 } | 459 } |
457 g_list_free(popular_statuses); | 460 g_list_free(popular_statuses); |
458 | 461 |
459 gaim_separator(submenu); | 462 gaim_separator(submenu); |
460 | 463 |
461 new_menu_item_with_gaim_icon(submenu, _("New Status..."), GAIM_STATUS_AVAILABLE, G_CALLBACK(show_custom_status_editor_cb), NULL, 0, 0, NULL); | 464 new_menu_item_with_gaim_icon(submenu, _("New..."), GAIM_STATUS_AVAILABLE, G_CALLBACK(show_custom_status_editor_cb), NULL, 0, 0, NULL); |
462 new_menu_item_with_gaim_icon(submenu, _("Saved Status..."), GAIM_STATUS_AVAILABLE, G_CALLBACK(gaim_gtk_status_window_show), NULL, 0, 0, NULL); | 465 new_menu_item_with_gaim_icon(submenu, _("Saved..."), GAIM_STATUS_AVAILABLE, G_CALLBACK(gaim_gtk_status_window_show), NULL, 0, 0, NULL); |
463 | 466 |
464 return menuitem; | 467 return menuitem; |
465 } | 468 } |
466 | 469 |
467 static void | 470 static void |