empathy r1602 - trunk/src
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r1602 - trunk/src
- Date: Fri, 17 Oct 2008 12:46:16 +0000 (UTC)
Author: xclaesse
Date: Fri Oct 17 12:46:15 2008
New Revision: 1602
URL: http://svn.gnome.org/viewvc/empathy?rev=1602&view=rev
Log:
Make EmpathyImportDialog a singleton. (Jonny Lamb)
Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>
Modified:
trunk/src/empathy-import-dialog.c
Modified: trunk/src/empathy-import-dialog.c
==============================================================================
--- trunk/src/empathy-import-dialog.c (original)
+++ trunk/src/empathy-import-dialog.c Fri Oct 17 12:46:15 2008
@@ -384,14 +384,19 @@
empathy_import_dialog_pidgin_import_accounts ();
}
- gtk_widget_destroy (GTK_WIDGET (dialog_window));
- g_slice_free (EmpathyImportDialog, dialog);
+ gtk_widget_hide (GTK_WIDGET (dialog_window));
}
void
empathy_import_dialog_show (GtkWindow *parent)
{
- EmpathyImportDialog *dialog;
+ static EmpathyImportDialog *dialog = NULL;
+
+ if (dialog)
+ {
+ gtk_window_present (GTK_WINDOW (dialog->window));
+ return;
+ }
dialog = g_slice_new0 (EmpathyImportDialog);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]