| 42 #include "pidginaccountsenabledmenu.h" |
42 #include "pidginaccountsenabledmenu.h" |
| 43 #include "pidginchanneljoindialog.h" |
43 #include "pidginchanneljoindialog.h" |
| 44 #include "pidgincore.h" |
44 #include "pidgincore.h" |
| 45 #include "pidgindebug.h" |
45 #include "pidgindebug.h" |
| 46 #include "pidgindisplaywindow.h" |
46 #include "pidgindisplaywindow.h" |
| |
47 #include "pidginimwindow.h" |
| 47 #include "pidginpluginsdialog.h" |
48 #include "pidginpluginsdialog.h" |
| 48 #include "pidginpluginsmenu.h" |
49 #include "pidginpluginsmenu.h" |
| 49 #include "pidginprefs.h" |
50 #include "pidginprefs.h" |
| 50 #include "pidginui.h" |
51 #include "pidginui.h" |
| 51 |
52 |
| 445 } |
446 } |
| 446 |
447 |
| 447 static void |
448 static void |
| 448 pidgin_application_new_message(G_GNUC_UNUSED GSimpleAction *simple, |
449 pidgin_application_new_message(G_GNUC_UNUSED GSimpleAction *simple, |
| 449 G_GNUC_UNUSED GVariant *parameter, |
450 G_GNUC_UNUSED GVariant *parameter, |
| 450 G_GNUC_UNUSED gpointer data) |
451 gpointer data) |
| 451 { |
452 { |
| 452 pidgin_dialogs_im(); |
453 PidginApplication *application = data; |
| |
454 static GtkWidget *dialog = NULL; |
| |
455 |
| |
456 if(!PIDGIN_IS_IM_WINDOW(dialog)) { |
| |
457 dialog = pidgin_im_window_new(); |
| |
458 g_object_add_weak_pointer(G_OBJECT(dialog), (gpointer)&dialog); |
| |
459 } |
| |
460 |
| |
461 pidgin_application_present_transient_window(application, |
| |
462 GTK_WINDOW(dialog)); |
| 453 } |
463 } |
| 454 |
464 |
| 455 static void |
465 static void |
| 456 pidgin_application_online_help(G_GNUC_UNUSED GSimpleAction *simple, |
466 pidgin_application_online_help(G_GNUC_UNUSED GSimpleAction *simple, |
| 457 G_GNUC_UNUSED GVariant *parameter, |
467 G_GNUC_UNUSED GVariant *parameter, |