gtranslator r3508 - in trunk: . plugins/open-tran src src/dialogs
- From: icq svn gnome org
- To: svn-commits-list gnome org
- Subject: gtranslator r3508 - in trunk: . plugins/open-tran src src/dialogs
- Date: Thu, 6 Mar 2008 18:02:52 +0000 (GMT)
Author: icq
Date: Thu Mar 6 18:02:51 2008
New Revision: 3508
URL: http://svn.gnome.org/viewvc/gtranslator?rev=3508&view=rev
Log:
2008-03-06 Ignacio Casal Quinteiro <nacho resa gmail com>
* plugins/open-tran/open-tran-plugin.c:
* src/utils.c:
* src/utils.h:
* src/dialogs/preferences-dialog.c:
* src/dialogs/comment-dialog.c:
* src/dialogs/search-dialog.c:
* src/dialogs/header-dialog.c:
* src/actions-search.c:
* src/utils_gui.c:
* src/window.c:
* src/utils_gui.h:
* src/view.c:
* src/main.c:
* src/Makefile.am:
Renamed utils_gui.{ch} to utils.{ch}
* src/po.c:
Fixed memory leak.
Added:
trunk/src/utils.c
- copied, changed from r3507, /trunk/src/utils_gui.c
trunk/src/utils.h
- copied unchanged from r3507, /trunk/src/utils_gui.h
Removed:
trunk/src/utils_gui.c
trunk/src/utils_gui.h
Modified:
trunk/ChangeLog
trunk/plugins/open-tran/open-tran-plugin.c
trunk/src/Makefile.am
trunk/src/actions-search.c
trunk/src/dialogs/comment-dialog.c
trunk/src/dialogs/header-dialog.c
trunk/src/dialogs/preferences-dialog.c
trunk/src/dialogs/search-dialog.c
trunk/src/main.c
trunk/src/po.c
trunk/src/view.c
trunk/src/window.c
Modified: trunk/plugins/open-tran/open-tran-plugin.c
==============================================================================
--- trunk/plugins/open-tran/open-tran-plugin.c (original)
+++ trunk/plugins/open-tran/open-tran-plugin.c Thu Mar 6 18:02:51 2008
@@ -29,7 +29,7 @@
#include <gtk/gtkentry.h>
#include <gtk/gtkdialog.h>
#include "window.h"
-#include "utils_gui.h"
+#include "utils.h"
#define OPEN_TRAN_PLUGIN_ICON PIXMAPSDIR"/open-tran.png"
#define WINDOW_DATA_KEY "GtranslatorOpenTranPluginWindowData"
Modified: trunk/src/Makefile.am
==============================================================================
--- trunk/src/Makefile.am (original)
+++ trunk/src/Makefile.am Thu Mar 6 18:02:51 2008
@@ -59,7 +59,7 @@
po.h \
statusbar.h \
tab.h \
- utils_gui.h \
+ utils.h \
view.h \
window.h
@@ -81,7 +81,7 @@
view.c \
window.c \
po.c \
- utils_gui.c \
+ utils.c \
msg.c \
actions.h \
actions-file.c \
Modified: trunk/src/actions-search.c
==============================================================================
--- trunk/src/actions-search.c (original)
+++ trunk/src/actions-search.c Thu Mar 6 18:02:51 2008
@@ -34,7 +34,7 @@
#include "actions.h"
#include "msg.h"
-#include "utils_gui.h"
+#include "utils.h"
#include "view.h"
#include "window.h"
#include "dialogs/search-dialog.h"
Modified: trunk/src/dialogs/comment-dialog.c
==============================================================================
--- trunk/src/dialogs/comment-dialog.c (original)
+++ trunk/src/dialogs/comment-dialog.c Thu Mar 6 18:02:51 2008
@@ -23,7 +23,7 @@
#include "comment-dialog.h"
#include "comment.h"
#include "tab.h"
-#include "utils_gui.h"
+#include "utils.h"
#include "window.h"
#include <glib.h>
Modified: trunk/src/dialogs/header-dialog.c
==============================================================================
--- trunk/src/dialogs/header-dialog.c (original)
+++ trunk/src/dialogs/header-dialog.c Thu Mar 6 18:02:51 2008
@@ -27,7 +27,7 @@
#include <string.h>
#include "header-dialog.h"
-#include "utils_gui.h"
+#include "utils.h"
#include "prefs-manager.h"
#include "po.h"
Modified: trunk/src/dialogs/preferences-dialog.c
==============================================================================
--- trunk/src/dialogs/preferences-dialog.c (original)
+++ trunk/src/dialogs/preferences-dialog.c Thu Mar 6 18:02:51 2008
@@ -22,7 +22,7 @@
#include "preferences-dialog.h"
#include "prefs-manager.h"
-#include "utils_gui.h"
+#include "utils.h"
#include "plugin-manager.h"
#include <glib.h>
Modified: trunk/src/dialogs/search-dialog.c
==============================================================================
--- trunk/src/dialogs/search-dialog.c (original)
+++ trunk/src/dialogs/search-dialog.c Thu Mar 6 18:02:51 2008
@@ -39,7 +39,7 @@
#include "search-dialog.h"
#include "history-entry.h"
-#include "utils_gui.h"
+#include "utils.h"
#include "gtranslator-marshal.h"
#define GTR_SEARCH_DIALOG_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), \
Modified: trunk/src/main.c
==============================================================================
--- trunk/src/main.c (original)
+++ trunk/src/main.c Thu Mar 6 18:02:51 2008
@@ -28,7 +28,7 @@
#include "application.h"
#include "prefs-manager-app.h"
#include "plugins-engine.h"
-#include "utils_gui.h"
+#include "utils.h"
#include <locale.h>
#include <glib.h>
Modified: trunk/src/po.c
==============================================================================
--- trunk/src/po.c (original)
+++ trunk/src/po.c Thu Mar 6 18:02:51 2008
@@ -479,7 +479,7 @@
**/
void
gtranslator_po_save_file(GtranslatorPo *po,
- GError **error)
+ GError **error)
{
struct po_xerror_handler handler;
po_message_iterator_t iter;
@@ -539,7 +539,10 @@
now_here = localtime(&now);
strftime(t, 22, "%Y-%m-%d %H:%M%z", now_here);
strftime(year, 5, "%Y", now_here);
- gtranslator_header_set_po_date(header, g_strdup(t));
+
+ aux = g_strdup (t);
+ gtranslator_header_set_po_date (header, aux);
+ g_free (aux);
/*
* Update the header's comment
Copied: trunk/src/utils.c (from r3507, /trunk/src/utils_gui.c)
==============================================================================
--- /trunk/src/utils_gui.c (original)
+++ trunk/src/utils.c Thu Mar 6 18:02:51 2008
@@ -21,7 +21,7 @@
*
*/
-#include "utils_gui.h"
+#include "utils.h"
#include <string.h>
Modified: trunk/src/view.c
==============================================================================
--- trunk/src/view.c (original)
+++ trunk/src/view.c Thu Mar 6 18:02:51 2008
@@ -29,7 +29,7 @@
#include "draw-spaces.h"
#include "prefs-manager.h"
-#include "utils_gui.h"
+#include "utils.h"
#include "view.h"
#include <glib.h>
Modified: trunk/src/window.c
==============================================================================
--- trunk/src/window.c (original)
+++ trunk/src/window.c Thu Mar 6 18:02:51 2008
@@ -29,7 +29,7 @@
#include "plugins-engine.h"
#include "po.h"
#include "statusbar.h"
-#include "utils_gui.h"
+#include "utils.h"
#include "window.h"
#include "egg-toolbars-model.h"
@@ -70,9 +70,6 @@
GtkWidget *notebook;
GtranslatorTab *active_tab;
- GtkWidget *sidebar;
- gint sidebar_size;
-
GtkWidget *dock;
GdlDockLayout *layout_manager;
GHashTable *widgets;
@@ -1149,14 +1146,6 @@
}
static void
-window_sidebar_position_change_cb(GObject *gobject,
- GParamSpec *arg1,
- GtranslatorWindow *window)
-{
- window->priv->sidebar_size = gtk_paned_get_position(GTK_PANED(gobject));
-}
-
-static void
side_pane_visibility_changed (GtkWidget *side_pane,
GtranslatorWindow *window)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]