gtranslator r3730 - trunk/src
- From: icq svn gnome org
- To: svn-commits-list gnome org
- Subject: gtranslator r3730 - trunk/src
- Date: Mon, 22 Sep 2008 09:45:26 +0000 (UTC)
Author: icq
Date: Mon Sep 22 09:45:26 2008
New Revision: 3730
URL: http://svn.gnome.org/viewvc/gtranslator?rev=3730&view=rev
Log:
2008-08-25 Ignacio Casal Quinteiro <nacho resa gmail com>
* actions-file.c (save_dialog_response_cb),
(gtranslator_save_current_file_dialog):
Added status message when saving.
Modified:
trunk/src/ChangeLog
trunk/src/actions-file.c
Modified: trunk/src/actions-file.c
==============================================================================
--- trunk/src/actions-file.c (original)
+++ trunk/src/actions-file.c Mon Sep 22 09:45:26 2008
@@ -223,6 +223,7 @@
GtranslatorTab *tab;
gchar *filename;
GFile *location;
+ GtranslatorStatusbar *status;
tab = GTR_TAB (g_object_get_data (G_OBJECT (dialog),
GTR_TAB_SAVE_AS));
@@ -269,6 +270,10 @@
/* We have to change the state of the tab */
gtranslator_po_set_state(po, GTR_PO_STATE_SAVED);
+
+ /* Flash a message */
+ status = GTR_STATUSBAR (gtranslator_window_get_statusbar (window));
+ gtranslator_statusbar_flash_message (status, 0, _("File saved."));
}
g_object_unref (location);
}
@@ -369,6 +374,7 @@
GError *error = NULL;
GtranslatorTab *current;
GtranslatorPo *po;
+ GtranslatorStatusbar *status;
current = gtranslator_window_get_active_tab (window);
po = gtranslator_tab_get_po (current);
@@ -391,6 +397,10 @@
/* We have to change the state of the tab */
gtranslator_po_set_state(po, GTR_PO_STATE_SAVED);
+
+ /* Flash a message */
+ status = GTR_STATUSBAR (gtranslator_window_get_statusbar (window));
+ gtranslator_statusbar_flash_message (status, 0, _("File saved."));
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]