[Xfce4-commits] xfce4-panel:master l10n: Updated Polish (pl) translation to 96%

2012-09-15 Thread Transifex
Updating branch refs/heads/master
 to 71d2c25d58dfef82b658eaa3d7ec9f9d4f6e18f2 (commit)
   from 2803b05f5a58d334c6ddab03fef2821cb7c7ccc7 (commit)

commit 71d2c25d58dfef82b658eaa3d7ec9f9d4f6e18f2
Author: Piotr Sokół pso...@jabster.pl
Date:   Sat Sep 15 15:43:57 2012 +0200

l10n: Updated Polish (pl) translation to 96%

New status: 374 messages complete with 0 fuzzies and 13 untranslated.

Transmitted-via: Transifex (translations.xfce.org).

 po/pl.po |   20 ++--
 1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/po/pl.po b/po/pl.po
index 190911b..d3dcafc 100644
--- a/po/pl.po
+++ b/po/pl.po
@@ -12,7 +12,7 @@ msgid 
 msgstr 
 Project-Id-Version: xfce4-panel 4.9.0\n
 Report-Msgid-Bugs-To: \n
-POT-Creation-Date: 2012-05-25 02:51+\n
+POT-Creation-Date: 2012-09-15 08:39+\n
 PO-Revision-Date: 2012-04-15 12:05+0200\n
 Last-Translator: Piotr Sokół pso...@jabster.pl\n
 Language-Team: polski \n
@@ -752,7 +752,7 @@ msgstr Wylogować bieżącego użytkownika?
 #: ../plugins/actions/actions.c:154
 #, c-format
 msgid Logging out in %d seconds.
-msgstr Wylogowywanie za %d sekund.
+msgstr Użytkownik zostanie wylogowany za %d sekund.
 
 #: ../plugins/actions/actions.c:159
 msgid Log Out...
@@ -994,15 +994,15 @@ msgstr Wyświetla menu w bieżącym położeniu kursora myszy
 msgid Show help options
 msgstr Wypisuje komunikat pomocy
 
-#: ../plugins/clock/clock.c:146
+#: ../plugins/clock/clock.c:155
 msgid Week %V
 msgstr Tydzień %V
 
-#: ../plugins/clock/clock.c:407
+#: ../plugins/clock/clock.c:437
 msgid Failed to execute clock command
 msgstr Nie udało się wykonać polecenia zegara
 
-#: ../plugins/clock/clock.c:729
+#: ../plugins/clock/clock.c:780
 msgid Custom Format
 msgstr Własny
 
@@ -1737,23 +1737,23 @@ msgstr Według nazwy okna
 msgid _Switch windows using the mouse wheel
 msgstr Przełącz okna za pomocą _kółka myszy
 
-#: ../plugins/tasklist/tasklist-widget.c:3202
+#: ../plugins/tasklist/tasklist-widget.c:3245
 msgid Mi_nimize All
 msgstr Zm_inimalizuj wszystkie
 
-#: ../plugins/tasklist/tasklist-widget.c:3211
+#: ../plugins/tasklist/tasklist-widget.c:3254
 msgid Un_minimize All
 msgstr _Cofnij minimalizację wszystkich
 
-#: ../plugins/tasklist/tasklist-widget.c:3217
+#: ../plugins/tasklist/tasklist-widget.c:3260
 msgid Ma_ximize All
 msgstr Zm_aksymalizuj wszystkie
 
-#: ../plugins/tasklist/tasklist-widget.c:3226
+#: ../plugins/tasklist/tasklist-widget.c:3269
 msgid _Unmaximize All
 msgstr C_ofnij maksymalizację wszystkich
 
-#: ../plugins/tasklist/tasklist-widget.c:3236
+#: ../plugins/tasklist/tasklist-widget.c:3279
 msgid _Close All
 msgstr Za_mknij wszystkie
 
___
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits


[Xfce4-commits] xfce4-places-plugin:master Make the PlacesCfg a GObject.

2012-09-15 Thread Andrzej
Updating branch refs/heads/master
 to 362dd6ee150a0140d7f328c8e361ad06e0b94655 (commit)
   from 89bad7fa73fcd9c61a67735c00f0eb3bb9c864af (commit)

commit 362dd6ee150a0140d7f328c8e361ad06e0b94655
Author: Andrzej ndrwr...@gmail.com
Date:   Sun Sep 16 01:33:39 2012 +0900

Make the PlacesCfg a GObject.

Needed for binding to xfconf properties.

 panel-plugin/cfg.c  |   31 ++-
 panel-plugin/cfg.h  |   28 +++-
 panel-plugin/view.c |2 +-
 3 files changed, 50 insertions(+), 11 deletions(-)

diff --git a/panel-plugin/cfg.c b/panel-plugin/cfg.c
index d8e151c..3cd5ed5 100644
--- a/panel-plugin/cfg.c
+++ b/panel-plugin/cfg.c
@@ -34,6 +34,26 @@
 #include cfg.h
 #include view.h
 
+static void places_cfg_finalize  (GObject 
*object);
+
+
+G_DEFINE_TYPE (PlacesCfg, places_cfg, G_TYPE_OBJECT)
+
+static void
+places_cfg_class_init (PlacesCfgClass *klass)
+{
+  GObjectClass  *gobject_class;
+
+  gobject_class = G_OBJECT_CLASS (klass);
+  gobject_class-finalize = places_cfg_finalize;
+}
+
+
+
+static void
+places_cfg_init (PlacesCfg *cfg)
+{
+}
 
 
 /** Configuration File **/
@@ -550,10 +570,11 @@ places_cfg_open_dialog(PlacesCfg *cfg)
 
 /** Initialization  Finalization **/
 
-void
-places_cfg_finalize(PlacesCfg *cfg)
+static void
+places_cfg_finalize (GObject *object)
 {
-g_assert(cfg != NULL);
+  PlacesCfg *cfg = XFCE_PLACES_CFG (object);
+  DBG(PlacesCfg finalize called);
 
 if(cfg-label != NULL)
 g_free(cfg-label);
@@ -565,7 +586,7 @@ places_cfg_finalize(PlacesCfg *cfg)
 if(cfg-write_path != NULL)
 g_free(cfg-write_path);
 
-g_free(cfg);
+  G_OBJECT_CLASS (places_cfg_parent_class)-finalize (object);
 }
 
 PlacesCfg*
@@ -575,7 +596,7 @@ places_cfg_new(XfcePanelPlugin *plugin, PlacesViewCfgIface 
*view_iface)
 
 g_assert(view_iface != NULL);
 
-cfg = g_new0(PlacesCfg, 1);
+cfg = g_object_new (XFCE_TYPE_PLACES_CFG, NULL);
 cfg-plugin = plugin;
 cfg-view_iface = view_iface;
 
diff --git a/panel-plugin/cfg.h b/panel-plugin/cfg.h
index a0e5f9a..15afa51 100644
--- a/panel-plugin/cfg.h
+++ b/panel-plugin/cfg.h
@@ -26,8 +26,22 @@
 #include libxfce4panel/libxfce4panel.h
 #include view.h
 
-typedef struct
+typedef struct _PlacesCfgClass PlacesCfgClass;
+typedef struct _PlacesCfg  PlacesCfg;
+
+#define XFCE_TYPE_PLACES_CFG(places_cfg_get_type ())
+#define XFCE_PLACES_CFG(obj)(G_TYPE_CHECK_INSTANCE_CAST ((obj), 
XFCE_TYPE_PLACES_CFG, PlacesCfg))
+#define XFCE_PLACES_CFG_CLASS(klass)(G_TYPE_CHECK_CLASS_CAST ((klass), 
XFCE_TYPE_PLACES_CFG, PlacesCfgClass))
+#define XFCE_IS_PLACES_CFG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), 
XFCE_TYPE_PLACES_CFG))
+#define XFCE_IS_PLACES_CFG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), 
XFCE_TYPE_PLACES_CFG))
+#define XFCE_PLACES_CFG_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), 
XFCE_TYPE_PLACES_CFG, PlacesCfgClass))
+
+GType places_cfg_get_type  (void) G_GNUC_CONST;
+
+struct _PlacesCfg
 {
+GObject __parent__;
+
 /* private */
 XfcePanelPlugin *plugin;
 PlacesViewCfgIface  *view_iface;
@@ -49,7 +63,12 @@ typedef struct
 gchar   *label;
 gchar   *search_cmd;
 
-} PlacesCfg;
+};
+
+struct _PlacesCfgClass
+{
+  GObjectClass __parent__;
+};
 
 void
 places_cfg_open_dialog(PlacesCfg*);
@@ -60,11 +79,10 @@ places_cfg_load(PlacesCfg*);
 void
 places_cfg_save(PlacesCfg*);
 
-void
-places_cfg_finalize(PlacesCfg*);
-
 PlacesCfg*
 places_cfg_new(XfcePanelPlugin*, PlacesViewCfgIface*);
 
+G_END_DECLS
+
 #endif
 /* vim: set ai et tabstop=4: */
diff --git a/panel-plugin/view.c b/panel-plugin/view.c
index 5378004..802ea36 100644
--- a/panel-plugin/view.c
+++ b/panel-plugin/view.c
@@ -1054,7 +1054,7 @@ places_view_finalize(PlacesView *view)
 view-tooltips = NULL;
 #endif
 
-places_cfg_finalize(view-cfg);
+g_object_unref(view-cfg);
 view-cfg = NULL;
 
 g_free(view-view_cfg_iface);
___
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits


[Xfce4-commits] xfce4-places-plugin:master Switched from a configuration file to xfconf.

2012-09-15 Thread Andrzej
Updating branch refs/heads/master
 to 19178ffd167bc0e0139fbf7db54f8acf999b47de (commit)
   from 362dd6ee150a0140d7f328c8e361ad06e0b94655 (commit)

commit 19178ffd167bc0e0139fbf7db54f8acf999b47de
Author: Andrzej ndrwr...@gmail.com
Date:   Sun Sep 16 04:54:10 2012 +0900

Switched from a configuration file to xfconf.

 configure.in.in  |1 +
 panel-plugin/Makefile.am |4 +-
 panel-plugin/cfg.c   |  667 ++
 panel-plugin/cfg.h   |6 +-
 panel-plugin/view.c  |   57 +---
 panel-plugin/view.h  |   14 +-
 6 files changed, 391 insertions(+), 358 deletions(-)

diff --git a/configure.in.in b/configure.in.in
index c0ab984..ea1fb3d 100644
--- a/configure.in.in
+++ b/configure.in.in
@@ -35,6 +35,7 @@ XDT_CHECK_PACKAGE([LIBXFCE4UTIL], [libxfce4util-1.0], [4.8.0])
 XDT_CHECK_PACKAGE([LIBXFCE4UI], [libxfce4ui-1], [4.8.0])
 XDT_CHECK_PACKAGE([LIBXFCE4PANEL], [libxfce4panel-1.0], [4.8.0])
 XDT_CHECK_PACKAGE([EXO], [exo-1], [0.5.0])
+XDT_CHECK_PACKAGE([XFCONF], [libxfconf-0], [4.6.0])
 XDT_CHECK_LIBX11()
 
 XDT_CHECK_OPTIONAL_PACKAGE([GIO_UNIX], [gio-unix-2.0], [2.22.0], [gio-unix],
diff --git a/panel-plugin/Makefile.am b/panel-plugin/Makefile.am
index fbb4dfa..7f8bcaa 100644
--- a/panel-plugin/Makefile.am
+++ b/panel-plugin/Makefile.am
@@ -47,6 +47,7 @@ libplaces_la_CFLAGS = 
\
$(LIBXFCE4UI_CFLAGS)\
$(LIBXFCE4PANEL_CFLAGS) \
$(EXO_CFLAGS)   \
+   $(XFCONF_CFLAGS)\
$(PLATFORM_CFLAGS)
 
 libplaces_la_LIBADD =  \
@@ -62,7 +63,8 @@ libplaces_la_LIBADD = 
\
$(LIBXFCE4UI_LIBS)  \
$(LIBXFCE4PANEL_LIBS)   \
$(LIBX11_LIBS)  \
-   $(EXO_LIBS)
+   $(EXO_LIBS) \
+   $(XFCONF_LIBS)
 
 libplaces_la_LDFLAGS = \
-avoid-version \
diff --git a/panel-plugin/cfg.c b/panel-plugin/cfg.c
index 3cd5ed5..f32747f 100644
--- a/panel-plugin/cfg.c
+++ b/panel-plugin/cfg.c
@@ -3,6 +3,7 @@
  *  This file provides a means of configuring the plugin.
  *
  *  Copyright (c) 2007-2008 Diego Ongaro ongar...@gmail.com
+ *  Copyright (c) 2012 Andrzej ndrwr...@gmail.com
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -30,12 +31,48 @@
 #include libxfce4util/libxfce4util.h
 #include libxfce4panel/libxfce4panel.h
 #include libxfce4ui/libxfce4ui.h
+#include exo/exo.h
+#include xfconf/xfconf.h
 
 #include cfg.h
 #include view.h
 
 static void places_cfg_finalize  (GObject 
*object);
+static void places_cfg_get_property  (GObject 
*object,
+  guint
prop_id,
+  GValue  
*value,
+  GParamSpec  
*pspec);
+static void places_cfg_set_property  (GObject 
*object,
+  guint
prop_id,
+  const GValue
*value,
+  GParamSpec  
*pspec);
+
+enum
+{
+  PROP_0,
+  PROP_SHOW_BUTTON_TYPE,
+  PROP_BUTTON_LABEL,
+  PROP_SHOW_ICONS,
+  PROP_SHOW_VOLUMES,
+  PROP_MOUNT_OPEN_VOLUMES,
+  PROP_SHOW_BOOKMARKS,
+#if USE_RECENT_DOCUMENTS
+  PROP_SHOW_RECENT,
+  PROP_SHOW_RECENT_CLEAR,
+  PROP_SHOW_RECENT_NUMBER,
+#endif
+  PROP_SEARCH_CMD
+};
+
+enum
+{
+  BUTTON_CHANGED,
+  MENU_CHANGED,
+  MODEL_CHANGED,
+  LAST_SIGNAL
+};
 
+static guint places_cfg_signals[LAST_SIGNAL] = { 0, };
 
 G_DEFINE_TYPE (PlacesCfg, places_cfg, G_TYPE_OBJECT)
 
@@ -46,279 +83,317 @@ places_cfg_class_init (PlacesCfgClass *klass)
 
   gobject_class = G_OBJECT_CLASS (klass);
   gobject_class-finalize = places_cfg_finalize;
-}
-
+  gobject_class-get_property = places_cfg_get_property;
+  gobject_class-set_property = places_cfg_set_property;
+
+  g_object_class_install_property (gobject_class,
+   PROP_SHOW_BUTTON_TYPE,
+   g_param_spec_uint (show-button-type,
+  NULL, NULL,
+  0,
+  2,
+  0,
+