gtranslator r3637 - in trunk/src: . dialogs



Author: icq
Date: Mon Sep 22 09:40:19 2008
New Revision: 3637
URL: http://svn.gnome.org/viewvc/gtranslator?rev=3637&view=rev

Log:
2008-08-01  Ignacio Casal Quinteiro  <nacho resa gmail com>

	* dialogs/preferences-dialog.c (add_to_database),
	(on_add_database_button_pulsed):
	Restore the dialog to show information about the messages were added
	to the database.

Modified:
   trunk/src/ChangeLog
   trunk/src/dialogs/preferences-dialog.c

Modified: trunk/src/dialogs/preferences-dialog.c
==============================================================================
--- trunk/src/dialogs/preferences-dialog.c	(original)
+++ trunk/src/dialogs/preferences-dialog.c	Mon Sep 22 09:40:19 2008
@@ -659,6 +659,7 @@
 	GList *list;
 	GtkProgressBar *progress;
 	GtranslatorTranslationMemory *tm;
+	GtkWindow *parent;
 }IdleData;
 
 static gboolean
@@ -703,8 +704,23 @@
 	}
 	else
 	{
+		GtkWidget *dialog;
+		
 		gtk_progress_bar_set_fraction (data->progress,
 					       1.0);
+		
+		dialog = gtk_message_dialog_new (data->parent,
+						 GTK_DIALOG_DESTROY_WITH_PARENT,
+						 GTK_MESSAGE_INFO,
+						 GTK_BUTTONS_CLOSE,
+						 NULL);
+		
+		gtk_message_dialog_set_markup (GTK_MESSAGE_DIALOG (dialog),
+					       _("<span weight=\"bold\" size=\"large\">Strings added to database</span>"));
+		
+		gtk_dialog_run (GTK_DIALOG (dialog));
+		gtk_widget_destroy (dialog);
+		
 		return FALSE;
 	}
 	
@@ -756,6 +772,7 @@
 
   data->tm = GTR_TRANSLATION_MEMORY (gtranslator_application_get_translation_memory (GTR_APP));
   data->progress = GTK_PROGRESS_BAR (dlg->priv->add_database_progressbar);
+  data->parent = GTK_WINDOW (dlg);
 
   gtk_widget_show (dlg->priv->add_database_progressbar);
   g_idle_add_full (G_PRIORITY_HIGH_IDLE + 30,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]