tracker r1108 - in trunk: . src/tracker-preferences



Author: lferrett
Date: Wed Jan 30 12:39:22 2008
New Revision: 1108
URL: http://svn.gnome.org/viewvc/tracker?rev=1108&view=rev

Log:
2008-01-30  Luca Ferretti  <elle uca libero it>

	* src/tracker-preferences/tracker-preferences.c:
	(tracker_preferences_cmd_apply):
	HIGfication of reindex/restart alerts.



Modified:
   trunk/ChangeLog
   trunk/src/tracker-preferences/tracker-preferences.c

Modified: trunk/src/tracker-preferences/tracker-preferences.c
==============================================================================
--- trunk/src/tracker-preferences/tracker-preferences.c	(original)
+++ trunk/src/tracker-preferences/tracker-preferences.c	Wed Jan 30 12:39:22 2008
@@ -891,19 +891,49 @@
 	if (flag_restart && if_trackerd_start (priv)) {
 
 		GtkWidget *dialog;
-		char *msg;
+		gchar *primary;
+		gchar *secondary;
+		gchar *button;
 
 		if (flag_reindex) {
-			msg =  _("Your system must be re-indexed for your changes to take effect. Re-index now?");
+			primary = g_strdup (_("Data must be reindexed"));
+			secondary = g_strdup (_("In order your changes will "
+						"take effect, Tracker have to "
+						"reindex them from scratch. "
+						"Click Reindex button to do "
+						"it now, otherwhise this "
+						"action will be performed the "
+						"next time Tracker daemon "
+						"will be restarted."));
+			button = g_strdup (_("_Reindex"));
+					     
 		} else {
-			msg =  _("Tracker indexer needs to be restarted for your changes to take effect. Restart now?");
+			primary = g_strdup (_("Tracker daemon must be "
+					      "restarted"));
+			secondary = g_strdup (_("In order your changes will "
+						"take effect, Tracker daemon "
+						"have to be restarted. Click "
+						"Restart button to do it "
+						"now."));
+			button = g_strdup (_("_Restart"));
 		}
 		
 		dialog = gtk_message_dialog_new (GTK_WINDOW (main_window),
  	                                 	GTK_DIALOG_MODAL,
-	                                 	GTK_MESSAGE_QUESTION,
-	                                 	GTK_BUTTONS_YES_NO,
-	                                 	msg);
+	                                 	GTK_MESSAGE_WARNING,
+	                                 	GTK_BUTTONS_NONE,
+	                                 	primary);
+
+		gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
+							  secondary);
+
+		gtk_dialog_add_buttons (GTK_DIALOG (dialog), 
+					GTK_STOCK_CANCEL, GTK_RESPONSE_NO, 
+					button, GTK_RESPONSE_YES, NULL);
+
+		g_free (primary);
+		g_free (secondary);
+		g_free (button);	
 		
 		gtk_window_set_title (GTK_WINDOW (dialog), "");
 		gtk_container_set_border_width (GTK_CONTAINER (dialog), 5);



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