Compare commits

...

65 Commits

Author SHA1 Message Date
Juan Pablo Ugarte
61098aea34 Rolling 3.18.3 2014-05-12 15:38:26 -03:00
Juan Pablo Ugarte
73b1137903 GladeEditorProperty: re grab focus on load_common() if property is construct-only.
If the property is construct-only, then glade_widget_rebuild() will be called
which means the object will be removed from the project/selection and
a new one will be added, which makes the eprop loose its focus.
2014-05-12 15:07:19 -03:00
Carles Ferrando
fd791c4cd7 [l10n] Updated Catalan (Valencian) translation 2014-05-11 00:24:49 +02:00
Gil Forcada
74763ed8ce [l10n] Update Catalan translation 2014-05-11 00:24:41 +02:00
Carles Ferrando
4aac66d1e5 [l10n] Updated Catalan (Valencian) translation 2014-05-11 00:19:41 +02:00
Pau Iranzo
56b19685ff [l10n] Update Catalan translation 2014-05-11 00:19:30 +02:00
Juan Pablo Ugarte
df062dbeac GladePreviewWindow: force infobar to show a close button and make label selectable 2014-05-09 14:30:35 -03:00
Juan Pablo Ugarte
2656b6fa8f GladePreviewer: ignore signal connections to avoid warnings about missing symbols. 2014-05-07 15:44:47 -03:00
Juan Pablo Ugarte
f9d19530f1 GladePreviewer: Fixed bug previewing templates.
XML text data was not escaped when generating the template XML.
2014-05-07 15:44:44 -03:00
Juan Pablo Ugarte
d27d1dd8d4 GladeWidgetAdaptor: Fixed glade_widget_adaptor_object_get_children() for internal widgets.
Internal widgets are defined in Glade in the adaptor class that introduced them.
So in order to get internal widgets that are descendant of another internal widget
we need to walk up the adaptor hierarchy to find where internal widgets are defined.

I included this patch in the stable version because without it glade can not access
GtkDialog internal action_area if compiled with gtk master (version 3.13)
2014-05-05 19:49:21 -03:00
Christian Kirbach
43bdd064dc Updated German translation 2014-05-05 15:03:17 +00:00
Dirgita
4719cb76c7 Updated Indonesian translation 2014-04-23 09:43:03 +00:00
Juan Pablo Ugarte
feea43d655 Fixed Bug 727914 "Logo is not shown in About-dialog"
Made GtkAboutDialog logo and logo-icon-name properties optional since they
are mutually exclusive.
The editor is responsible for enabling then accordingly.
2014-04-22 19:34:57 -03:00
Juan Pablo Ugarte
6b022595cb Fixed toolbar icon size.
Use GTK_ICON_SIZE_LARGE_TOOLBAR and GTK_ICON_SIZE_SMALL_TOOLBAR instead of
GTK_ICON_SIZE_MENU and GTK_ICON_SIZE_BUTTON
2014-04-22 19:34:57 -03:00
Yuri Myasoedov
256f1a458c Fixed Russian translation 2014-04-20 15:46:39 +04:00
Tom Tryfonidis
e466e5b283 Updated Greek translation 2014-04-18 21:51:13 +00:00
Juan Pablo Ugarte
8fa35da340 Fixed cursor glitch while moving the poiner across multiple placeholders.
The glitch was because we where updating the cursor on motion event only
so when the pointer enters a new placeholder the cursor is set back to
default and then changed again when the motion notify is finally triggered.
2014-04-17 00:51:11 -03:00
Juan Pablo Ugarte
5b1f00ac57 Fixed Bug 353002 "wrong cursor over widgets" 2014-04-17 00:50:31 -03:00
Juan Pablo Ugarte
35dcc715ac Convert every object to use G_DEFINE_TYPE_WITH_CODE() or G_ADD_PRIVATE() macros
Fixed function prototype identation and spacing.
2014-04-17 00:29:45 -03:00
David Shea
3ad52c12b0 Check use-underline for whether mnemonic-widget can be set 2014-04-16 21:43:28 -03:00
David Shea
83cc9dbe28 Allow 3 decimal digits for the text scale value. 2014-04-16 21:43:26 -03:00
Juan Pablo Ugarte
21eb9583b7 Marked glade_http_request_send_async() as a G_GNUC_PRINTF() function.
Fixed compile warning.
2014-04-16 20:49:30 -03:00
TingPing
f3f4420e98 Save palette appearance setting 2014-04-16 18:07:26 -04:00
Daniel Mustieles
d3a7de0b06 Updated Spanish translation 2014-04-15 14:22:34 +02:00
Juan Pablo Ugarte
465a3b8e7c Rolling 3.18.2 2014-04-14 20:07:21 -03:00
Juan Pablo Ugarte
8edcfd7f02 Fixed bug 364064 "Property Editor / Common tab: width & height request checkboxes have no effect"
Reset runtime value to default when an optional property is disabled.
2014-04-14 18:59:43 -03:00
Juan Pablo Ugarte
73eca7af22 Set license type "other" as the default one in the propject properties dialog 2014-04-14 18:56:36 -03:00
Мирослав Николић
5a13050a0a Updated Serbian translation 2014-04-14 19:26:42 +02:00
Ask H. Larsen
2c5f5a673b Updated Danish translation 2014-04-13 22:00:37 +02:00
Balázs Úr
0b864c2419 Updated Hungarian translation 2014-04-13 16:17:46 +00:00
Juan Pablo Ugarte
5fa17441d6 Ignore widgets that are not part of the project when generating edges
of directed graph used to sort objects by topological order.

Fixes bug 727992 "Editing UI and saving does not remove deleted Combo with Entry"
2014-04-12 16:28:57 -03:00
Rūdolfs Mazurs
1773be56f6 Updated Latvian translation 2014-04-12 12:41:41 +03:00
Claudio Arseni
73199ffa80 [l10n] Updated Italian translation. 2014-04-03 09:03:36 +02:00
Yuri Myasoedov
e1f5032da2 Updated Russian translation 2014-04-01 22:39:09 +04:00
Yuri Myasoedov
56294cdaa5 Updated Russian translation 2014-04-01 22:06:11 +04:00
Fran Diéguez
181bb241a5 Updated Galician translations 2014-03-31 23:38:35 +02:00
Alexandre Franke
16684ca773 Updated French translation 2014-03-31 16:18:38 +00:00
Marek Černocký
06aab361ea Updated Czech translation 2014-03-31 10:49:52 +02:00
Rafael Ferreira
0c62058e9c Updated Brazilian Portuguese translation 2014-03-31 01:00:03 +00:00
Juan Pablo Ugarte
d85c3679d1 Added few comments for translators 2014-03-30 17:53:37 -03:00
Aurimas Černius
359c377299 Updated Lithuanian translation 2014-03-30 23:06:27 +03:00
Sphinx Jiang
e2cb676b19 update zh_CN translation 2014-03-30 17:02:16 +08:00
Andika Triwidada
0027406c9b Updated Indonesian translation 2014-03-28 15:20:05 +00:00
Juan Pablo Ugarte
ebd048e49f Update Spanish translation 2014-03-28 11:49:38 -03:00
Piotr Drąg
b0dfcc8da6 Updated Polish translation 2014-03-28 15:05:29 +01:00
Juan Pablo Ugarte
38ddeb8d9e Add dialog to advertise user survey 2014-03-27 16:09:26 -03:00
Juan Pablo Ugarte
ddd9980fdc Rolling 3.18.1 2014-03-26 17:34:06 -03:00
Juan Pablo Ugarte
9f3c2b79c4 Restored widgets classes that do not fail anymore in gtk 3.12 2014-03-26 17:10:39 -03:00
Juan Pablo Ugarte
5f10a02793 Fixed bug in numeric property editors 2014-03-26 17:10:39 -03:00
Juan Pablo Ugarte
281b920eb1 Bumped gtk dependancy to 3.12 2014-03-26 17:10:39 -03:00
Juan Pablo Ugarte
92589d52a0 GtkDialog: disabled use-header-bar property untill Glade supports GtkHeaderBar
GtkAboutDialog: ignore construct only use-header-bar property to force it to False in the runtime.
2014-03-26 17:10:39 -03:00
YunQiang Su
a36133ebad update zh_CN translation 2014-03-26 10:48:07 +08:00
Juan Pablo Ugarte
376e7ed394 Fixed Bug 727014 "32 bit builds fail with -Werror=format-security" 2014-03-25 12:39:08 -03:00
Juan Pablo Ugarte
6ceed22a33 Rolling 3.18
Glade registration, point to production url.
2014-03-24 19:51:01 -03:00
Juan Pablo Ugarte
62096b62b9 Fixed distcheck errors
Fixed create-widgets test GtkMessageDialog error and skip creating GtkAboutDialog
2014-03-24 19:50:58 -03:00
Claudio Arseni
11cd71c0ad Updated Italian translation 2014-03-24 16:38:22 -03:00
Matej Urbančič
cd57b60c0b Updated Slovenian translation 2014-03-24 16:38:22 -03:00
Marek Černocký
3f48f9c7b4 Fixed domain name 2014-03-24 16:38:22 -03:00
Marek Černocký
0d1e99aa3c Fixed domain name 2014-03-24 16:38:22 -03:00
Kristjan SCHMIDT
7d6240e965 Updated Esperanto translation 2014-03-24 16:38:20 -03:00
Rūdolfs Mazurs
72aea73c9a Updated Latvian translation 2014-03-24 16:38:19 -03:00
Andika Triwidada
62d184b322 Updated Indonesian translation 2014-03-24 12:58:13 +00:00
Ask H. Larsen
e7608f15d6 Updated Danish translation 2014-03-23 19:09:53 +01:00
Мирослав Николић
8ef021987d Updated Serbian translation 2014-03-23 15:14:59 +01:00
Gábor Kelemen
ea20456c8f Updated Hungarian translation 2014-03-23 14:10:17 +00:00
77 changed files with 31717 additions and 17809 deletions

56
NEWS
View File

@ -1,3 +1,59 @@
============
Glade 3.18.3
============
- Fixed property editor focus lost bug with construct-only properties
- GladePreviewer: Fixed bug previewing templates.
- Fixed Bug 727914 "Logo is not shown in About-dialog"
- Fixed Bug 353002 "wrong cursor over widgets"
- Fixed bug 728377 "sensitivity of mnemonic-widget entry is not correct when loading file" (David Shea)
- Fixed bug 728348 "impossible to set non-integer values for scale in text attribute dialog" (David Shea)
- Fixed bug 726410 "Save palette appearance between sessions" (TingPing)
============
Glade 3.18.2
============
- Added dialog at start up to advertise user survey.
Fixes bug 726800 "New: UI break: add dialog to advertise user survey"
- Fixes bug 727992 "Editing UI and saving does not remove deleted Combo with Entry"
- Fixed bug 364064 "Property Editor / Common tab: width & height request checkboxes have no effect"
============
Glade 3.18.1
============
- Fixed Bug 727014 "32 bit builds fail with -Werror=format-security"
- GtkDialog: disabled use-header-bar property untill Glade supports GtkHeaderBar
- Fixed bug in numeric property editors (Box size)
============
Glade 3.18.0
============
- Added License property to Glade project
- Added realtime preview for custom CSS
- Added support for previewing templates
- glade-previewer added --slideshow option
- Fixed Bug 702314 "Cancelling an Add Parent action is destructive"
- pango attribute editor: don't write on cancel for color/font (Timm Bäder)
- Fixed bug 711568 "[PATCH] glade crashes upon startup" (thanks to Lubomir Rintel)
- Fixed Bug 712289 "Glade silently fails to open malformed ui file"
- Sort object dependancy before saving using a topological sorting algorithm
- Fixed Bug 709609 "[PATCH] Change way of sorting before writing XML output."
- Fixed Bug 711858 "editing glade project results in long CPU usage spikes after upgrading to 3.16 and GTK+3.10"
- Fixed <requires> tag output
- Fixed cellrenderer model column combobox chooser.
- Fixed issue with numeric property editors.
- Restored shortcuts function in workspace.
- Added new jhbuild based bundling system for 64bit linux bundles. (Tristan Van Berkom)
- Bug 720585 - Fix order of customized property output.
- gladeui: fix a pair of printf security problems (Ryan Lortie)
- Added Registration & User Survey Dialog in Help menu
- Fixed bug 723819 "Correct bounds checking for design view highlight" (Chris Johns)
- Fixed bug #721098 "Anjuta hangs when opening project"
- GtkGrid: Don't save width/height at their default values (Kalev Lember)
============ ============
Glade 3.16.0 Glade 3.16.0
============ ============

View File

@ -3,8 +3,8 @@ dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.52) AC_PREREQ(2.52)
m4_define(glade_major_version, 3) m4_define(glade_major_version, 3)
m4_define(glade_minor_version, 16) m4_define(glade_minor_version, 18)
m4_define(glade_micro_version, 0) m4_define(glade_micro_version, 3)
m4_define(glade_version, glade_major_version.glade_minor_version.glade_micro_version) m4_define(glade_version, glade_major_version.glade_minor_version.glade_micro_version)
AC_INIT([glade], [glade_version], AC_INIT([glade], [glade_version],
@ -53,9 +53,9 @@ AC_PATH_PROG(DLLTOOL, dlltool)
# If any interfaces have been removed since the last public release, then set GLADE_AGE to 0. # If any interfaces have been removed since the last public release, then set GLADE_AGE to 0.
# Reference: http://www.gnu.org/software/libtool/manual/libtool.html#Versioning # Reference: http://www.gnu.org/software/libtool/manual/libtool.html#Versioning
GLADE_REVISION=2 GLADE_REVISION=3
GLADE_CURRENT=6 GLADE_CURRENT=7
GLADE_AGE=0 GLADE_AGE=1
GLADE_CURRENT_MINUS_AGE=`expr $GLADE_CURRENT - $GLADE_AGE` GLADE_CURRENT_MINUS_AGE=`expr $GLADE_CURRENT - $GLADE_AGE`
AC_SUBST(GLADE_REVISION) AC_SUBST(GLADE_REVISION)
AC_SUBST(GLADE_CURRENT) AC_SUBST(GLADE_CURRENT)
@ -145,7 +145,7 @@ GOBJECT_INTROSPECTION_CHECK([1.32.0])
dnl ================================================================ dnl ================================================================
dnl Check for gtk+ dnl Check for gtk+
dnl ================================================================ dnl ================================================================
GTK_REQUIRED=3.10.0 GTK_REQUIRED=3.12.0
PKG_CHECK_MODULES([GTK],[ PKG_CHECK_MODULES([GTK],[
gtk+-3.0 >= $GTK_REQUIRED gtk+-3.0 >= $GTK_REQUIRED
gmodule-2.0 gmodule-2.0

View File

@ -53,9 +53,6 @@
#define GLADE_CONFIG_FILENAME "glade.conf" #define GLADE_CONFIG_FILENAME "glade.conf"
#define GLADE_APP_GET_PRIVATE(object) (G_TYPE_INSTANCE_GET_PRIVATE ((object), \
GLADE_TYPE_APP, \
GladeAppPrivate))
enum enum
{ {
DOC_SEARCH, DOC_SEARCH,
@ -91,7 +88,7 @@ static gchar *lib_dir = NULL;
static GladeApp *singleton_app = NULL; static GladeApp *singleton_app = NULL;
static gboolean check_initialised = FALSE; static gboolean check_initialised = FALSE;
G_DEFINE_TYPE (GladeApp, glade_app, G_TYPE_OBJECT); G_DEFINE_TYPE_WITH_PRIVATE (GladeApp, glade_app, G_TYPE_OBJECT);
/***************************************************************** /*****************************************************************
* GObjectClass * * GObjectClass *
@ -99,7 +96,7 @@ G_DEFINE_TYPE (GladeApp, glade_app, G_TYPE_OBJECT);
static GObject * static GObject *
glade_app_constructor (GType type, glade_app_constructor (GType type,
guint n_construct_properties, guint n_construct_properties,
GObjectConstructParam * construct_properties) GObjectConstructParam *construct_properties)
{ {
GObject *object; GObject *object;
@ -122,7 +119,7 @@ glade_app_constructor (GType type,
static void static void
glade_app_dispose (GObject * app) glade_app_dispose (GObject *app)
{ {
GladeAppPrivate *priv = GLADE_APP (app)->priv; GladeAppPrivate *priv = GLADE_APP (app)->priv;
@ -143,7 +140,7 @@ glade_app_dispose (GObject * app)
} }
static void static void
glade_app_finalize (GObject * app) glade_app_finalize (GObject *app)
{ {
g_free (catalogs_dir); g_free (catalogs_dir);
g_free (modules_dir); g_free (modules_dir);
@ -370,7 +367,7 @@ static void
glade_app_init (GladeApp *app) glade_app_init (GladeApp *app)
{ {
static gboolean initialized = FALSE; static gboolean initialized = FALSE;
GladeAppPrivate *priv = app->priv = GLADE_APP_GET_PRIVATE (app); GladeAppPrivate *priv = app->priv = glade_app_get_instance_private (app);
singleton_app = app; singleton_app = app;
@ -407,7 +404,7 @@ glade_app_event_handler (GdkEvent *event, gpointer data)
} }
static void static void
glade_app_class_init (GladeAppClass * klass) glade_app_class_init (GladeAppClass *klass)
{ {
GObjectClass *object_class; GObjectClass *object_class;
@ -467,8 +464,6 @@ glade_app_class_init (GladeAppClass * klass)
_glade_marshal_VOID__OBJECT, _glade_marshal_VOID__OBJECT,
G_TYPE_NONE, 1, G_TYPE_OBJECT); G_TYPE_NONE, 1, G_TYPE_OBJECT);
g_type_class_add_private (klass, sizeof (GladeAppPrivate));
gdk_event_handler_set (glade_app_event_handler, NULL, NULL); gdk_event_handler_set (glade_app_event_handler, NULL, NULL);
} }
@ -633,7 +628,7 @@ glade_app_get (void)
} }
void void
glade_app_set_window (GtkWidget * window) glade_app_set_window (GtkWidget *window)
{ {
GladeApp *app = glade_app_get (); GladeApp *app = glade_app_get ();
@ -641,7 +636,7 @@ glade_app_set_window (GtkWidget * window)
} }
GladeCatalog * GladeCatalog *
glade_app_get_catalog (const gchar * name) glade_app_get_catalog (const gchar *name)
{ {
GladeApp *app = glade_app_get (); GladeApp *app = glade_app_get ();
GList *list; GList *list;
@ -659,7 +654,7 @@ glade_app_get_catalog (const gchar * name)
} }
gboolean gboolean
glade_app_get_catalog_version (const gchar * name, gint * major, gint * minor) glade_app_get_catalog_version (const gchar *name, gint *major, gint *minor)
{ {
GladeCatalog *catalog = glade_app_get_catalog (name); GladeCatalog *catalog = glade_app_get_catalog (name);
@ -725,7 +720,7 @@ glade_app_get_config (void)
} }
gboolean gboolean
glade_app_is_project_loaded (const gchar * project_path) glade_app_is_project_loaded (const gchar *project_path)
{ {
GladeApp *app; GladeApp *app;
GList *list; GList *list;
@ -757,7 +752,7 @@ glade_app_is_project_loaded (const gchar * project_path)
* Returns: A #GladeProject, or NULL if no such open project was found * Returns: A #GladeProject, or NULL if no such open project was found
*/ */
GladeProject * GladeProject *
glade_app_get_project_by_path (const gchar * project_path) glade_app_get_project_by_path (const gchar *project_path)
{ {
GladeApp *app; GladeApp *app;
GList *l; GList *l;
@ -788,7 +783,7 @@ glade_app_get_project_by_path (const gchar * project_path)
} }
void void
glade_app_add_project (GladeProject * project) glade_app_add_project (GladeProject *project)
{ {
GladeApp *app; GladeApp *app;
@ -805,7 +800,7 @@ glade_app_add_project (GladeProject * project)
} }
void void
glade_app_remove_project (GladeProject * project) glade_app_remove_project (GladeProject *project)
{ {
GladeApp *app; GladeApp *app;
g_return_if_fail (GLADE_IS_PROJECT (project)); g_return_if_fail (GLADE_IS_PROJECT (project));

View File

@ -114,7 +114,7 @@ enum
N_PROPERTIES N_PROPERTIES
}; };
G_DEFINE_TYPE (GladeBaseEditor, glade_base_editor, GTK_TYPE_BOX) G_DEFINE_TYPE_WITH_PRIVATE (GladeBaseEditor, glade_base_editor, GTK_TYPE_BOX)
static GParamSpec *properties[N_PROPERTIES]; static GParamSpec *properties[N_PROPERTIES];
static guint glade_base_editor_signals[LAST_SIGNAL] = { 0 }; static guint glade_base_editor_signals[LAST_SIGNAL] = { 0 };
@ -200,7 +200,8 @@ get_children_model_for_child_type (GladeBaseEditor *editor, GType type)
static gboolean static gboolean
glade_base_editor_get_type_info (GladeBaseEditor *e, glade_base_editor_get_type_info (GladeBaseEditor *e,
GtkTreeIter *retiter, GtkTreeIter *retiter,
GType child_type, ...) GType child_type,
...)
{ {
GtkTreeModel *model; GtkTreeModel *model;
GtkTreeIter iter; GtkTreeIter iter;
@ -1184,7 +1185,7 @@ glade_base_editor_project_changed (GladeProject *project,
static void static void
glade_base_editor_project_disconnect (GladeBaseEditor * editor) glade_base_editor_project_disconnect (GladeBaseEditor *editor)
{ {
GladeBaseEditorPrivate *e = editor->priv; GladeBaseEditorPrivate *e = editor->priv;
@ -1274,16 +1275,6 @@ glade_base_editor_set_container (GladeBaseEditor *editor, GObject *container)
} }
/*************************** GladeBaseEditor Class ****************************/ /*************************** GladeBaseEditor Class ****************************/
static void
glade_base_editor_finalize (GObject *object)
{
GladeBaseEditor *cobj = GLADE_BASE_EDITOR (object);
g_free (cobj->priv);
G_OBJECT_CLASS (glade_base_editor_parent_class)->finalize (object);
}
static void static void
glade_base_editor_dispose (GObject *object) glade_base_editor_dispose (GObject *object)
{ {
@ -1480,7 +1471,6 @@ glade_base_editor_class_init (GladeBaseEditorClass *klass)
glade_base_editor_parent_class = g_type_class_peek_parent (klass); glade_base_editor_parent_class = g_type_class_peek_parent (klass);
object_class->finalize = glade_base_editor_finalize;
object_class->dispose = glade_base_editor_dispose; object_class->dispose = glade_base_editor_dispose;
object_class->set_property = glade_base_editor_set_property; object_class->set_property = glade_base_editor_set_property;
object_class->get_property = glade_base_editor_get_property; object_class->get_property = glade_base_editor_get_property;
@ -1707,7 +1697,7 @@ glade_base_editor_init (GladeBaseEditor *editor)
GTK_ORIENTATION_VERTICAL); GTK_ORIENTATION_VERTICAL);
gtk_box_set_spacing (GTK_BOX (editor), 8); gtk_box_set_spacing (GTK_BOX (editor), 8);
e = editor->priv = g_new0 (GladeBaseEditorPrivate, 1); e = editor->priv = glade_base_editor_get_instance_private (editor);
/* Paned */ /* Paned */
e->paned = paned = gtk_paned_new (GTK_ORIENTATION_VERTICAL); e->paned = paned = gtk_paned_new (GTK_ORIENTATION_VERTICAL);
@ -2077,7 +2067,8 @@ glade_base_editor_add_default_properties (GladeBaseEditor *editor,
void void
glade_base_editor_add_properties (GladeBaseEditor *editor, glade_base_editor_add_properties (GladeBaseEditor *editor,
GladeWidget *gchild, GladeWidget *gchild,
gboolean packing, ...) gboolean packing,
...)
{ {
GladeEditorProperty *eprop; GladeEditorProperty *eprop;
va_list args; va_list args;
@ -2183,8 +2174,7 @@ glade_base_editor_add_label (GladeBaseEditor *editor, gchar *str)
* Shows/hide @editor 's signal editor * Shows/hide @editor 's signal editor
*/ */
void void
glade_base_editor_set_show_signal_editor (GladeBaseEditor *editor, glade_base_editor_set_show_signal_editor (GladeBaseEditor *editor, gboolean val)
gboolean val)
{ {
g_return_if_fail (GLADE_IS_BASE_EDITOR (editor)); g_return_if_fail (GLADE_IS_BASE_EDITOR (editor));

View File

@ -23,22 +23,20 @@
#include "glade-cell-renderer-icon.h" #include "glade-cell-renderer-icon.h"
#include "glade-marshallers.h" #include "glade-marshallers.h"
static void glade_cell_renderer_icon_get_property (GObject * object, static void glade_cell_renderer_icon_get_property (GObject *object,
guint param_id, guint param_id,
GValue * value, GValue *value,
GParamSpec * pspec); GParamSpec *pspec);
static void glade_cell_renderer_icon_set_property (GObject * object, static void glade_cell_renderer_icon_set_property (GObject *object,
guint param_id, guint param_id,
const GValue * value, const GValue *value,
GParamSpec * pspec); GParamSpec *pspec);
static gboolean glade_cell_renderer_icon_activate (GtkCellRenderer * cell, static gboolean glade_cell_renderer_icon_activate (GtkCellRenderer *cell,
GdkEvent * event, GdkEvent *event,
GtkWidget * widget, GtkWidget *widget,
const gchar * path, const gchar *path,
const GdkRectangle * const GdkRectangle *background_area,
background_area, const GdkRectangle *cell_area,
const GdkRectangle *
cell_area,
GtkCellRendererState flags); GtkCellRendererState flags);
struct _GladeCellRendererIconPrivate struct _GladeCellRendererIconPrivate
@ -65,15 +63,13 @@ static GParamSpec *properties[N_PROPERTIES];
static guint icon_cell_signals[LAST_SIGNAL] = { 0 }; static guint icon_cell_signals[LAST_SIGNAL] = { 0 };
G_DEFINE_TYPE (GladeCellRendererIcon, glade_cell_renderer_icon, G_DEFINE_TYPE_WITH_PRIVATE (GladeCellRendererIcon,
glade_cell_renderer_icon,
GTK_TYPE_CELL_RENDERER_PIXBUF) GTK_TYPE_CELL_RENDERER_PIXBUF)
static void glade_cell_renderer_icon_init (GladeCellRendererIcon *cellicon) static void glade_cell_renderer_icon_init (GladeCellRendererIcon *cellicon)
{ {
cellicon->priv = cellicon->priv = glade_cell_renderer_icon_get_instance_private (cellicon);
G_TYPE_INSTANCE_GET_PRIVATE ((cellicon),
GLADE_TYPE_CELL_RENDERER_ICON,
GladeCellRendererIconPrivate);
cellicon->priv->activatable = TRUE; cellicon->priv->activatable = TRUE;
cellicon->priv->active = FALSE; cellicon->priv->active = FALSE;
@ -83,7 +79,7 @@ static void glade_cell_renderer_icon_init (GladeCellRendererIcon *cellicon)
} }
static void static void
glade_cell_renderer_icon_class_init (GladeCellRendererIconClass * class) glade_cell_renderer_icon_class_init (GladeCellRendererIconClass *class)
{ {
GObjectClass *object_class = G_OBJECT_CLASS (class); GObjectClass *object_class = G_OBJECT_CLASS (class);
GtkCellRendererClass *cell_class = GTK_CELL_RENDERER_CLASS (class); GtkCellRendererClass *cell_class = GTK_CELL_RENDERER_CLASS (class);
@ -116,14 +112,13 @@ glade_cell_renderer_icon_class_init (GladeCellRendererIconClass * class)
G_STRUCT_OFFSET (GladeCellRendererIconClass, activate), G_STRUCT_OFFSET (GladeCellRendererIconClass, activate),
NULL, NULL, NULL, NULL,
_glade_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); _glade_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING);
g_type_class_add_private (class, sizeof (GladeCellRendererIconPrivate));
} }
static void static void
glade_cell_renderer_icon_get_property (GObject * object, glade_cell_renderer_icon_get_property (GObject *object,
guint param_id, guint param_id,
GValue * value, GParamSpec * pspec) GValue *value,
GParamSpec *pspec)
{ {
GladeCellRendererIcon *cellicon = GLADE_CELL_RENDERER_ICON (object); GladeCellRendererIcon *cellicon = GLADE_CELL_RENDERER_ICON (object);
@ -143,9 +138,10 @@ glade_cell_renderer_icon_get_property (GObject * object,
static void static void
glade_cell_renderer_icon_set_property (GObject * object, glade_cell_renderer_icon_set_property (GObject *object,
guint param_id, guint param_id,
const GValue * value, GParamSpec * pspec) const GValue *value,
GParamSpec *pspec)
{ {
GladeCellRendererIcon *cellicon = GLADE_CELL_RENDERER_ICON (object); GladeCellRendererIcon *cellicon = GLADE_CELL_RENDERER_ICON (object);
@ -170,12 +166,12 @@ glade_cell_renderer_icon_new (void)
} }
static gint static gint
glade_cell_renderer_icon_activate (GtkCellRenderer * cell, glade_cell_renderer_icon_activate (GtkCellRenderer *cell,
GdkEvent * event, GdkEvent *event,
GtkWidget * widget, GtkWidget *widget,
const gchar * path, const gchar *path,
const GdkRectangle * background_area, const GdkRectangle *background_area,
const GdkRectangle * cell_area, const GdkRectangle *cell_area,
GtkCellRendererState flags) GtkCellRendererState flags)
{ {
GladeCellRendererIcon *cellicon; GladeCellRendererIcon *cellicon;
@ -191,7 +187,7 @@ glade_cell_renderer_icon_activate (GtkCellRenderer * cell,
} }
gboolean gboolean
glade_cell_renderer_icon_get_active (GladeCellRendererIcon * icon) glade_cell_renderer_icon_get_active (GladeCellRendererIcon *icon)
{ {
g_return_val_if_fail (GLADE_IS_CELL_RENDERER_ICON (icon), FALSE); g_return_val_if_fail (GLADE_IS_CELL_RENDERER_ICON (icon), FALSE);
@ -199,7 +195,7 @@ glade_cell_renderer_icon_get_active (GladeCellRendererIcon * icon)
} }
void void
glade_cell_renderer_icon_set_active (GladeCellRendererIcon * icon, glade_cell_renderer_icon_set_active (GladeCellRendererIcon *icon,
gboolean setting) gboolean setting)
{ {
g_return_if_fail (GLADE_IS_CELL_RENDERER_ICON (icon)); g_return_if_fail (GLADE_IS_CELL_RENDERER_ICON (icon));
@ -212,7 +208,7 @@ glade_cell_renderer_icon_set_active (GladeCellRendererIcon * icon,
} }
gboolean gboolean
glade_cell_renderer_icon_get_activatable (GladeCellRendererIcon * icon) glade_cell_renderer_icon_get_activatable (GladeCellRendererIcon *icon)
{ {
g_return_val_if_fail (GLADE_IS_CELL_RENDERER_ICON (icon), FALSE); g_return_val_if_fail (GLADE_IS_CELL_RENDERER_ICON (icon), FALSE);
@ -220,7 +216,7 @@ glade_cell_renderer_icon_get_activatable (GladeCellRendererIcon * icon)
} }
void void
glade_cell_renderer_icon_set_activatable (GladeCellRendererIcon * icon, glade_cell_renderer_icon_set_activatable (GladeCellRendererIcon *icon,
gboolean setting) gboolean setting)
{ {
g_return_if_fail (GLADE_IS_CELL_RENDERER_ICON (icon)); g_return_if_fail (GLADE_IS_CELL_RENDERER_ICON (icon));

View File

@ -55,11 +55,13 @@ enum
static GParamSpec *properties[N_PROPERTIES]; static GParamSpec *properties[N_PROPERTIES];
G_DEFINE_TYPE (GladeClipboard, glade_clipboard, G_TYPE_OBJECT); G_DEFINE_TYPE_WITH_PRIVATE (GladeClipboard, glade_clipboard, G_TYPE_OBJECT);
static void static void
glade_project_get_property (GObject * object, glade_project_get_property (GObject *object,
guint prop_id, GValue * value, GParamSpec * pspec) guint prop_id,
GValue *value,
GParamSpec *pspec)
{ {
GladeClipboard *clipboard = GLADE_CLIPBOARD (object); GladeClipboard *clipboard = GLADE_CLIPBOARD (object);
@ -92,24 +94,19 @@ glade_clipboard_class_init (GladeClipboardClass * klass)
/* Install all properties */ /* Install all properties */
g_object_class_install_properties (object_class, N_PROPERTIES, properties); g_object_class_install_properties (object_class, N_PROPERTIES, properties);
g_type_class_add_private (klass, sizeof (GladeClipboardPrivate));
} }
static void static void
glade_clipboard_init (GladeClipboard * clipboard) glade_clipboard_init (GladeClipboard *clipboard)
{ {
clipboard->priv = clipboard->priv = glade_clipboard_get_instance_private (clipboard);
G_TYPE_INSTANCE_GET_PRIVATE (clipboard,
GLADE_TYPE_CLIPBOARD,
GladeClipboardPrivate);
clipboard->priv->widgets = NULL; clipboard->priv->widgets = NULL;
clipboard->priv->has_selection = FALSE; clipboard->priv->has_selection = FALSE;
} }
static void static void
glade_clipboard_set_has_selection (GladeClipboard * clipboard, glade_clipboard_set_has_selection (GladeClipboard *clipboard,
gboolean has_selection) gboolean has_selection)
{ {
if (clipboard->priv->has_selection != has_selection) if (clipboard->priv->has_selection != has_selection)
@ -127,7 +124,7 @@ glade_clipboard_set_has_selection (GladeClipboard * clipboard,
* Returns: TRUE if this clipboard has selected items to paste. * Returns: TRUE if this clipboard has selected items to paste.
*/ */
gboolean gboolean
glade_clipboard_get_has_selection (GladeClipboard * clipboard) glade_clipboard_get_has_selection (GladeClipboard *clipboard)
{ {
g_return_val_if_fail (GLADE_IS_CLIPBOARD (clipboard), FALSE); g_return_val_if_fail (GLADE_IS_CLIPBOARD (clipboard), FALSE);
@ -163,7 +160,7 @@ glade_clipboard_new (void)
* This increases the reference count of each #GladeWidget in @widgets. * This increases the reference count of each #GladeWidget in @widgets.
*/ */
void void
glade_clipboard_add (GladeClipboard * clipboard, GList * widgets) glade_clipboard_add (GladeClipboard *clipboard, GList *widgets)
{ {
GladeWidget *widget; GladeWidget *widget;
GList *list; GList *list;
@ -192,7 +189,7 @@ glade_clipboard_add (GladeClipboard * clipboard, GList * widgets)
* Removes all widgets from the @clipboard. * Removes all widgets from the @clipboard.
*/ */
void void
glade_clipboard_clear (GladeClipboard * clipboard) glade_clipboard_clear (GladeClipboard *clipboard)
{ {
GladeWidget *widget; GladeWidget *widget;
GList *list; GList *list;

View File

@ -94,7 +94,7 @@ static gint gc_group_id = 1;
static gint gc_group_depth = 0; static gint gc_group_depth = 0;
G_DEFINE_TYPE (GladeCommand, glade_command, G_TYPE_OBJECT) G_DEFINE_TYPE_WITH_PRIVATE (GladeCommand, glade_command, G_TYPE_OBJECT)
static void static void
glade_command_finalize (GObject *obj) glade_command_finalize (GObject *obj)
@ -124,9 +124,7 @@ glade_command_collapse_impl (GladeCommand *this_cmd, GladeCommand *other_cmd)
static void static void
glade_command_init (GladeCommand *command) glade_command_init (GladeCommand *command)
{ {
command->priv = command->priv = glade_command_get_instance_private (command);
G_TYPE_INSTANCE_GET_PRIVATE ((command), GLADE_TYPE_COMMAND,
GladeCommandPrivate);
} }
static void static void
@ -142,8 +140,6 @@ glade_command_class_init (GladeCommandClass *klass)
klass->execute = NULL; klass->execute = NULL;
klass->unifies = glade_command_unifies_impl; klass->unifies = glade_command_unifies_impl;
klass->collapse = glade_command_collapse_impl; klass->collapse = glade_command_collapse_impl;
g_type_class_add_private (klass, sizeof (GladeCommandPrivate));
} }
/* Macros for defining the derived command types */ /* Macros for defining the derived command types */

View File

@ -35,9 +35,6 @@
#include <glib/gi18n-lib.h> #include <glib/gi18n-lib.h>
#include <gtk/gtk.h> #include <gtk/gtk.h>
#define GLADE_DESIGN_LAYOUT_GET_PRIVATE(object) (G_TYPE_INSTANCE_GET_PRIVATE ((object), \
GLADE_TYPE_DESIGN_LAYOUT, \
GladeDesignLayoutPrivate))
#define GLADE_DESIGN_LAYOUT_PRIVATE(object) (((GladeDesignLayout*)object)->priv) #define GLADE_DESIGN_LAYOUT_PRIVATE(object) (((GladeDesignLayout*)object)->priv)
#define OUTLINE_WIDTH 4 #define OUTLINE_WIDTH 4
@ -124,7 +121,7 @@ enum
PROP_DESIGN_VIEW PROP_DESIGN_VIEW
}; };
G_DEFINE_TYPE (GladeDesignLayout, glade_design_layout, GTK_TYPE_BIN) G_DEFINE_TYPE_WITH_PRIVATE (GladeDesignLayout, glade_design_layout, GTK_TYPE_BIN)
#define RECTANGLE_POINT_IN(rect,x,y) (x >= rect.x && x <= (rect.x + rect.width) && y >= rect.y && y <= (rect.y + rect.height)) #define RECTANGLE_POINT_IN(rect,x,y) (x >= rect.x && x <= (rect.x + rect.width) && y >= rect.y && y <= (rect.y + rect.height))
@ -174,7 +171,7 @@ gdl_get_margins_from_pointer (GladeDesignLayout *layout, GtkWidget *widget, gint
static Activity static Activity
gdl_get_activity_from_pointer (GladeDesignLayout *layout, gint x, gint y) gdl_get_activity_from_pointer (GladeDesignLayout *layout, gint x, gint y)
{ {
GladeDesignLayoutPrivate *priv = GLADE_DESIGN_LAYOUT_GET_PRIVATE (layout); GladeDesignLayoutPrivate *priv = GLADE_DESIGN_LAYOUT_PRIVATE (layout);
if (priv->selection) if (priv->selection)
{ {
@ -1787,7 +1784,7 @@ glade_design_layout_unrealize (GtkWidget * widget)
static void static void
glade_design_layout_style_updated (GtkWidget *widget) glade_design_layout_style_updated (GtkWidget *widget)
{ {
GladeDesignLayoutPrivate *priv = GLADE_DESIGN_LAYOUT_GET_PRIVATE (widget); GladeDesignLayoutPrivate *priv = GLADE_DESIGN_LAYOUT_PRIVATE (widget);
_glade_design_layout_get_colors (gtk_widget_get_style_context (widget), _glade_design_layout_get_colors (gtk_widget_get_style_context (widget),
&priv->frame_color[0], &priv->frame_color[0],
@ -1805,7 +1802,7 @@ glade_design_layout_init (GladeDesignLayout *layout)
GladeDesignLayoutPrivate *priv; GladeDesignLayoutPrivate *priv;
gint i; gint i;
layout->priv = priv = GLADE_DESIGN_LAYOUT_GET_PRIVATE (layout); layout->priv = priv = glade_design_layout_get_instance_private (layout);
priv->activity = ACTIVITY_NONE; priv->activity = ACTIVITY_NONE;
@ -2059,8 +2056,6 @@ glade_design_layout_class_init (GladeDesignLayoutClass * klass)
GLADE_TYPE_DESIGN_LAYOUT, GLADE_TYPE_DESIGN_LAYOUT,
g_cclosure_new (G_CALLBACK (glade_design_layout_damage), g_cclosure_new (G_CALLBACK (glade_design_layout_damage),
NULL, NULL)); NULL, NULL));
g_type_class_add_private (object_class, sizeof (GladeDesignLayoutPrivate));
} }
/* Internal API */ /* Internal API */

View File

@ -45,8 +45,6 @@
#include <glib.h> #include <glib.h>
#include <glib/gi18n.h> #include <glib/gi18n.h>
#define GLADE_DESIGN_VIEW_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), GLADE_TYPE_DESIGN_VIEW, GladeDesignViewPrivate))
#define GLADE_DESIGN_VIEW_KEY "GLADE_DESIGN_VIEW_KEY" #define GLADE_DESIGN_VIEW_KEY "GLADE_DESIGN_VIEW_KEY"
enum enum
@ -71,6 +69,7 @@ static GtkVBoxClass *parent_class = NULL;
static void glade_design_view_drag_init (_GladeDragInterface *iface); static void glade_design_view_drag_init (_GladeDragInterface *iface);
G_DEFINE_TYPE_WITH_CODE (GladeDesignView, glade_design_view, GTK_TYPE_BOX, G_DEFINE_TYPE_WITH_CODE (GladeDesignView, glade_design_view, GTK_TYPE_BOX,
G_ADD_PRIVATE (GladeDesignView)
G_IMPLEMENT_INTERFACE (GLADE_TYPE_DRAG, G_IMPLEMENT_INTERFACE (GLADE_TYPE_DRAG,
glade_design_view_drag_init)) glade_design_view_drag_init))
@ -328,7 +327,7 @@ logo_draw (GtkWidget *widget, cairo_t *cr)
static gboolean static gboolean
glade_design_view_draw (GtkWidget *widget, cairo_t *cr) glade_design_view_draw (GtkWidget *widget, cairo_t *cr)
{ {
GladeDesignViewPrivate *priv = GLADE_DESIGN_VIEW_GET_PRIVATE (widget); GladeDesignViewPrivate *priv = GLADE_DESIGN_VIEW (widget)->priv;
GdkWindow *window = gtk_widget_get_window (widget); GdkWindow *window = gtk_widget_get_window (widget);
gboolean should_draw = gtk_cairo_should_draw_window (cr, window); gboolean should_draw = gtk_cairo_should_draw_window (cr, window);
gboolean sw_visible = gtk_widget_get_visible (priv->scrolled_window); gboolean sw_visible = gtk_widget_get_visible (priv->scrolled_window);
@ -370,7 +369,7 @@ glade_design_view_init (GladeDesignView *view)
{ {
GtkWidget *viewport; GtkWidget *viewport;
view->priv = GLADE_DESIGN_VIEW_GET_PRIVATE (view); view->priv = glade_design_view_get_instance_private (view);
gtk_widget_set_no_show_all (GTK_WIDGET (view), TRUE); gtk_widget_set_no_show_all (GTK_WIDGET (view), TRUE);
gtk_orientable_set_orientation (GTK_ORIENTABLE (view), gtk_orientable_set_orientation (GTK_ORIENTABLE (view),
@ -715,8 +714,6 @@ glade_design_view_class_init (GladeDesignViewClass *klass)
GLADE_TYPE_PROJECT, GLADE_TYPE_PROJECT,
G_PARAM_READWRITE | G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY)); G_PARAM_CONSTRUCT_ONLY));
g_type_class_add_private (object_class, sizeof (GladeDesignViewPrivate));
} }
/* Private API */ /* Private API */

View File

@ -115,6 +115,7 @@ static void glade_editor_property_editable_init (GladeEditableIface *iface);
static GladeEditableIface *parent_editable_iface; static GladeEditableIface *parent_editable_iface;
G_DEFINE_TYPE_WITH_CODE (GladeEditorProperty, glade_editor_property, GTK_TYPE_BOX, G_DEFINE_TYPE_WITH_CODE (GladeEditorProperty, glade_editor_property, GTK_TYPE_BOX,
G_ADD_PRIVATE (GladeEditorProperty)
G_IMPLEMENT_INTERFACE (GLADE_TYPE_EDITABLE, G_IMPLEMENT_INTERFACE (GLADE_TYPE_EDITABLE,
glade_editor_property_editable_init)); glade_editor_property_editable_init));
@ -150,6 +151,26 @@ glade_editor_property_editable_init (GladeEditableIface *iface)
GladeEditorPropertyClass GladeEditorPropertyClass
*******************************************************************************/ *******************************************************************************/
static void
deepest_child_grab_focus (GtkWidget *widget, gpointer data)
{
gboolean *focus_set = data;
if (*focus_set)
return;
if (GTK_IS_CONTAINER (widget))
gtk_container_foreach (GTK_CONTAINER (widget),
deepest_child_grab_focus,
data);
if (gtk_widget_get_can_focus (widget))
{
gtk_widget_grab_focus (widget);
*focus_set = TRUE;
}
}
/* declare this forwardly for the finalize routine */ /* declare this forwardly for the finalize routine */
static void glade_editor_property_load_common (GladeEditorProperty *eprop, static void glade_editor_property_load_common (GladeEditorProperty *eprop,
GladeProperty *property); GladeProperty *property);
@ -168,6 +189,22 @@ glade_editor_property_commit_common (GladeEditorProperty *eprop,
*/ */
if (!glade_property_equals_value (eprop->priv->property, value)) if (!glade_property_equals_value (eprop->priv->property, value))
glade_editor_property_load (eprop, eprop->priv->property); glade_editor_property_load (eprop, eprop->priv->property);
/* Restore input focus. If the property is construct-only, then
* glade_widget_rebuild() will be called which means the object will be
* removed from the project/selection and a new one will be added, which makes
* the eprop loose its focus.
*
* FIXME: find a better way to set focus?
* make gtk_widget_grab_focus(eprop->priv->input) work?
*/
if (glade_property_class_get_construct_only (eprop->priv->klass))
{
gboolean focus_set = FALSE;
gtk_container_foreach (GTK_CONTAINER (eprop->priv->input),
deepest_child_grab_focus,
&focus_set);
}
} }
void void
@ -597,10 +634,7 @@ glade_editor_property_load_common (GladeEditorProperty *eprop,
static void static void
glade_editor_property_init (GladeEditorProperty *eprop) glade_editor_property_init (GladeEditorProperty *eprop)
{ {
eprop->priv = eprop->priv = glade_editor_property_get_instance_private (eprop);
G_TYPE_INSTANCE_GET_PRIVATE ((eprop),
GLADE_TYPE_EDITOR_PROPERTY,
GladeEditorPropertyPrivate);
gtk_orientable_set_orientation (GTK_ORIENTABLE (eprop), gtk_orientable_set_orientation (GTK_ORIENTABLE (eprop),
GTK_ORIENTATION_HORIZONTAL); GTK_ORIENTATION_HORIZONTAL);
@ -692,8 +726,6 @@ glade_editor_property_class_init (GladeEditorPropertyClass *eprop_class)
("custom-text", _("Custom Text"), ("custom-text", _("Custom Text"),
_("Custom Text to display in the property label"), _("Custom Text to display in the property label"),
NULL, G_PARAM_READWRITE)); NULL, G_PARAM_READWRITE));
g_type_class_add_private (eprop_class, sizeof (GladeEditorPropertyPrivate));
} }
/******************************************************************************* /*******************************************************************************
@ -816,9 +848,17 @@ glade_eprop_numeric_force_update (GtkSpinButton *spin,
gdouble value; gdouble value;
gchar *text; gchar *text;
val = glade_property_inline_value (prop);
text = gtk_editable_get_chars (GTK_EDITABLE (spin), 0, -1); text = gtk_editable_get_chars (GTK_EDITABLE (spin), 0, -1);
/*
* Skip empty strings, otherwise if 0 is out of range the spin will get a
* bogus update.
*/
if (text && *text == '\0')
return;
val = glade_property_inline_value (prop);
g_value_init (&newval, G_VALUE_TYPE (val)); g_value_init (&newval, G_VALUE_TYPE (val));
value = g_strtod (text, NULL); value = g_strtod (text, NULL);
glade_eprop_numeric_value_set (&newval, value); glade_eprop_numeric_value_set (&newval, value);
@ -890,9 +930,6 @@ glade_eprop_numeric_create_input (GladeEditorProperty *eprop)
/* The force update callback is here to ensure that whenever the value /* The force update callback is here to ensure that whenever the value
* is modified, it's committed immediately without requiring entry activation * is modified, it's committed immediately without requiring entry activation
* (this avoids lost modifications when modifying a value and navigating away) * (this avoids lost modifications when modifying a value and navigating away)
*
* FIXME: GtkSpinButton update its value on focus-out, why is not that enough?
* Could it be because this callback was used before using spins?
*/ */
g_signal_connect (G_OBJECT (eprop_numeric->spin), "changed", g_signal_connect (G_OBJECT (eprop_numeric->spin), "changed",
G_CALLBACK (glade_eprop_numeric_force_update), eprop); G_CALLBACK (glade_eprop_numeric_force_update), eprop);

View File

@ -49,6 +49,7 @@ static GladeEditableIface *parent_editable_iface;
static GtkBuildableIface *parent_buildable_iface; static GtkBuildableIface *parent_buildable_iface;
G_DEFINE_TYPE_WITH_CODE (GladeEditorSkeleton, glade_editor_skeleton, GTK_TYPE_BOX, G_DEFINE_TYPE_WITH_CODE (GladeEditorSkeleton, glade_editor_skeleton, GTK_TYPE_BOX,
G_ADD_PRIVATE (GladeEditorSkeleton)
G_IMPLEMENT_INTERFACE (GLADE_TYPE_EDITABLE, G_IMPLEMENT_INTERFACE (GLADE_TYPE_EDITABLE,
glade_editor_skeleton_editable_init) glade_editor_skeleton_editable_init)
G_IMPLEMENT_INTERFACE (GTK_TYPE_BUILDABLE, G_IMPLEMENT_INTERFACE (GTK_TYPE_BUILDABLE,
@ -57,20 +58,15 @@ G_DEFINE_TYPE_WITH_CODE (GladeEditorSkeleton, glade_editor_skeleton, GTK_TYPE_BO
static void static void
glade_editor_skeleton_init (GladeEditorSkeleton *skeleton) glade_editor_skeleton_init (GladeEditorSkeleton *skeleton)
{ {
skeleton->priv = skeleton->priv = glade_editor_skeleton_get_instance_private (skeleton);
G_TYPE_INSTANCE_GET_PRIVATE (skeleton,
GLADE_TYPE_EDITOR_SKELETON,
GladeEditorSkeletonPrivate);
} }
static void static void
glade_editor_skeleton_class_init (GladeEditorSkeletonClass *class) glade_editor_skeleton_class_init (GladeEditorSkeletonClass *klass)
{ {
GObjectClass *gobject_class = G_OBJECT_CLASS (class); GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
gobject_class->dispose = glade_editor_skeleton_dispose; gobject_class->dispose = glade_editor_skeleton_dispose;
g_type_class_add_private (gobject_class, sizeof (GladeEditorSkeletonPrivate));
} }
/*********************************************************** /***********************************************************
@ -114,7 +110,7 @@ glade_editor_skeleton_load (GladeEditable *editable,
} }
static void static void
glade_editor_skeleton_set_show_name (GladeEditable * editable, gboolean show_name) glade_editor_skeleton_set_show_name (GladeEditable *editable, gboolean show_name)
{ {
GladeEditorSkeleton *skeleton = GLADE_EDITOR_SKELETON (editable); GladeEditorSkeleton *skeleton = GLADE_EDITOR_SKELETON (editable);
GladeEditorSkeletonPrivate *priv = skeleton->priv; GladeEditorSkeletonPrivate *priv = skeleton->priv;
@ -129,7 +125,7 @@ glade_editor_skeleton_set_show_name (GladeEditable * editable, gboolean show_nam
} }
static void static void
glade_editor_skeleton_editable_init (GladeEditableIface * iface) glade_editor_skeleton_editable_init (GladeEditableIface *iface)
{ {
parent_editable_iface = g_type_default_interface_peek (GLADE_TYPE_EDITABLE); parent_editable_iface = g_type_default_interface_peek (GLADE_TYPE_EDITABLE);

View File

@ -100,11 +100,12 @@ enum {
}; };
G_DEFINE_TYPE_WITH_CODE (GladeEditorTable, glade_editor_table, GTK_TYPE_GRID, G_DEFINE_TYPE_WITH_CODE (GladeEditorTable, glade_editor_table, GTK_TYPE_GRID,
G_ADD_PRIVATE (GladeEditorTable)
G_IMPLEMENT_INTERFACE (GLADE_TYPE_EDITABLE, G_IMPLEMENT_INTERFACE (GLADE_TYPE_EDITABLE,
glade_editor_table_editable_init)); glade_editor_table_editable_init));
static void static void
glade_editor_table_class_init (GladeEditorTableClass * klass) glade_editor_table_class_init (GladeEditorTableClass *klass)
{ {
GObjectClass *object_class = G_OBJECT_CLASS (klass); GObjectClass *object_class = G_OBJECT_CLASS (klass);
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
@ -121,17 +122,12 @@ glade_editor_table_class_init (GladeEditorTableClass * klass)
_("The editor page type to create this GladeEditorTable for"), _("The editor page type to create this GladeEditorTable for"),
GLADE_TYPE_EDITOR_PAGE_TYPE, GLADE_PAGE_GENERAL, GLADE_TYPE_EDITOR_PAGE_TYPE, GLADE_PAGE_GENERAL,
G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
g_type_class_add_private (klass, sizeof (GladeEditorTablePrivate));
} }
static void static void
glade_editor_table_init (GladeEditorTable * self) glade_editor_table_init (GladeEditorTable *self)
{ {
self->priv = self->priv = glade_editor_table_get_instance_private (self);
G_TYPE_INSTANCE_GET_PRIVATE ((self),
GLADE_TYPE_EDITOR_TABLE,
GladeEditorTablePrivate);
gtk_orientable_set_orientation (GTK_ORIENTABLE (self), gtk_orientable_set_orientation (GTK_ORIENTABLE (self),
GTK_ORIENTATION_VERTICAL); GTK_ORIENTATION_VERTICAL);
@ -143,7 +139,7 @@ glade_editor_table_init (GladeEditorTable * self)
} }
static void static void
glade_editor_table_dispose (GObject * object) glade_editor_table_dispose (GObject *object)
{ {
GladeEditorTable *table = GLADE_EDITOR_TABLE (object); GladeEditorTable *table = GLADE_EDITOR_TABLE (object);
@ -179,7 +175,7 @@ glade_editor_table_set_property (GObject *object,
} }
static void static void
glade_editor_table_realize (GtkWidget * widget) glade_editor_table_realize (GtkWidget *widget)
{ {
GladeEditorTable *table = GLADE_EDITOR_TABLE (widget); GladeEditorTable *table = GLADE_EDITOR_TABLE (widget);
GList *list; GList *list;
@ -196,7 +192,7 @@ glade_editor_table_realize (GtkWidget * widget)
} }
static void static void
glade_editor_table_grab_focus (GtkWidget * widget) glade_editor_table_grab_focus (GtkWidget *widget)
{ {
GladeEditorTable *editor_table = GLADE_EDITOR_TABLE (widget); GladeEditorTable *editor_table = GLADE_EDITOR_TABLE (widget);
@ -210,7 +206,7 @@ glade_editor_table_grab_focus (GtkWidget * widget)
} }
static void static void
widget_name_edited (GtkWidget * editable, GladeEditorTable * table) widget_name_edited (GtkWidget *editable, GladeEditorTable *table)
{ {
GladeWidget *widget; GladeWidget *widget;
gchar *new_name; gchar *new_name;
@ -300,7 +296,7 @@ widget_composite_changed (GladeWidget *widget,
} }
static void static void
widget_finalized (GladeEditorTable * table, GladeWidget * where_widget_was) widget_finalized (GladeEditorTable *table, GladeWidget *where_widget_was)
{ {
table->priv->loaded_widget = NULL; table->priv->loaded_widget = NULL;
@ -309,7 +305,7 @@ widget_finalized (GladeEditorTable * table, GladeWidget * where_widget_was)
static void static void
glade_editor_table_load (GladeEditable * editable, GladeWidget * widget) glade_editor_table_load (GladeEditable *editable, GladeWidget *widget)
{ {
GladeEditorTable *table = GLADE_EDITOR_TABLE (editable); GladeEditorTable *table = GLADE_EDITOR_TABLE (editable);
GladeEditorProperty *property; GladeEditorProperty *property;
@ -392,7 +388,7 @@ glade_editor_table_load (GladeEditable * editable, GladeWidget * widget)
} }
static void static void
glade_editor_table_set_show_name (GladeEditable * editable, gboolean show_name) glade_editor_table_set_show_name (GladeEditable *editable, gboolean show_name)
{ {
GladeEditorTable *table = GLADE_EDITOR_TABLE (editable); GladeEditorTable *table = GLADE_EDITOR_TABLE (editable);
@ -409,7 +405,7 @@ glade_editor_table_set_show_name (GladeEditable * editable, gboolean show_name)
} }
static void static void
glade_editor_table_editable_init (GladeEditableIface * iface) glade_editor_table_editable_init (GladeEditableIface *iface)
{ {
iface->load = glade_editor_table_load; iface->load = glade_editor_table_load;
iface->set_show_name = glade_editor_table_set_show_name; iface->set_show_name = glade_editor_table_set_show_name;
@ -466,7 +462,7 @@ property_class_comp (gconstpointer a, gconstpointer b)
} }
static GList * static GList *
get_sorted_properties (GladeWidgetAdaptor * adaptor, GladeEditorPageType type) get_sorted_properties (GladeWidgetAdaptor *adaptor, GladeEditorPageType type)
{ {
const GList *l, *properties; const GList *l, *properties;
GList *list = NULL; GList *list = NULL;
@ -497,8 +493,9 @@ get_sorted_properties (GladeWidgetAdaptor * adaptor, GladeEditorPageType type)
} }
static GladeEditorProperty * static GladeEditorProperty *
append_item (GladeEditorTable * table, append_item (GladeEditorTable *table,
GladePropertyClass * klass, gboolean from_query_dialog) GladePropertyClass *klass,
gboolean from_query_dialog)
{ {
GladeEditorProperty *property; GladeEditorProperty *property;
GtkWidget *label; GtkWidget *label;
@ -527,8 +524,9 @@ append_item (GladeEditorTable * table,
} }
static void static void
append_items (GladeEditorTable * table, append_items (GladeEditorTable *table,
GladeWidgetAdaptor * adaptor, GladeEditorPageType type) GladeWidgetAdaptor *adaptor,
GladeEditorPageType type)
{ {
GladeEditorProperty *property; GladeEditorProperty *property;
GladePropertyClass *property_class; GladePropertyClass *property_class;
@ -548,7 +546,7 @@ append_items (GladeEditorTable * table,
} }
static void static void
append_name_field (GladeEditorTable * table) append_name_field (GladeEditorTable *table)
{ {
gchar *text = _("The object's unique identifier"); gchar *text = _("The object's unique identifier");
@ -604,7 +602,7 @@ append_name_field (GladeEditorTable * table)
* *
*/ */
GtkWidget * GtkWidget *
glade_editor_table_new (GladeWidgetAdaptor * adaptor, GladeEditorPageType type) glade_editor_table_new (GladeWidgetAdaptor *adaptor, GladeEditorPageType type)
{ {
GladeEditorTable *table; GladeEditorTable *table;

View File

@ -515,7 +515,7 @@ glade_editor_load_widget_class (GladeEditor *editor,
} }
static void static void
glade_editor_close_cb (GladeProject * project, GladeEditor * editor) glade_editor_close_cb (GladeProject *project, GladeEditor *editor)
{ {
/* project we are viewing was closed, /* project we are viewing was closed,
* detatch from editor. * detatch from editor.

View File

@ -61,7 +61,7 @@ glade_id_allocator_new (void)
* Frees @allocator and its associated memory * Frees @allocator and its associated memory
*/ */
void void
glade_id_allocator_destroy (GladeIDAllocator * allocator) glade_id_allocator_destroy (GladeIDAllocator *allocator)
{ {
g_return_if_fail (allocator != NULL); g_return_if_fail (allocator != NULL);
@ -110,7 +110,7 @@ first_set_bit (guint32 word)
* Returns: * Returns:
*/ */
guint guint
glade_id_allocator_allocate (GladeIDAllocator * allocator) glade_id_allocator_allocate (GladeIDAllocator *allocator)
{ {
guint i; guint i;
@ -148,7 +148,7 @@ glade_id_allocator_allocate (GladeIDAllocator * allocator)
* TODO: write me * TODO: write me
*/ */
void void
glade_id_allocator_release (GladeIDAllocator * allocator, guint id) glade_id_allocator_release (GladeIDAllocator *allocator, guint id)
{ {
guint word_idx; guint word_idx;

View File

@ -112,12 +112,13 @@ static gint button_press_cb (GtkWidget *widget,
GdkEventButton *event, GdkEventButton *event,
GladeInspector *inspector); GladeInspector *inspector);
G_DEFINE_TYPE (GladeInspector, glade_inspector, GTK_TYPE_BOX) G_DEFINE_TYPE_WITH_PRIVATE (GladeInspector, glade_inspector, GTK_TYPE_BOX)
static void static void
glade_inspector_set_property (GObject *object, glade_inspector_set_property (GObject *object,
guint property_id, guint property_id,
const GValue *value, GParamSpec *pspec) const GValue *value,
GParamSpec *pspec)
{ {
GladeInspector *inspector = GLADE_INSPECTOR (object); GladeInspector *inspector = GLADE_INSPECTOR (object);
@ -198,8 +199,6 @@ glade_inspector_class_init (GladeInspectorClass *klass)
/* Install all properties */ /* Install all properties */
g_object_class_install_properties (object_class, N_PROPERTIES, properties); g_object_class_install_properties (object_class, N_PROPERTIES, properties);
g_type_class_add_private (klass, sizeof (GladeInspectorPrivate));
} }
static gboolean static gboolean
@ -572,7 +571,7 @@ glade_inspector_init (GladeInspector *inspector)
GtkWidget *sw; GtkWidget *sw;
GtkTreeSelection *selection; GtkTreeSelection *selection;
inspector->priv = priv = GLADE_INSPECTOR_GET_PRIVATE (inspector); inspector->priv = priv = glade_inspector_get_instance_private (inspector);
gtk_orientable_set_orientation (GTK_ORIENTABLE (inspector), gtk_orientable_set_orientation (GTK_ORIENTABLE (inspector),
GTK_ORIENTATION_VERTICAL); GTK_ORIENTATION_VERTICAL);

View File

@ -38,8 +38,6 @@ struct _GladeNameContext
GHashTable *names; GHashTable *names;
}; };
GladeNameContext * GladeNameContext *
glade_name_context_new (void) glade_name_context_new (void)
{ {
@ -58,7 +56,7 @@ glade_name_context_new (void)
} }
void void
glade_name_context_destroy (GladeNameContext * context) glade_name_context_destroy (GladeNameContext *context)
{ {
g_return_if_fail (context != NULL); g_return_if_fail (context != NULL);
@ -68,8 +66,8 @@ glade_name_context_destroy (GladeNameContext * context)
} }
gchar * gchar *
glade_name_context_new_name (GladeNameContext * context, glade_name_context_new_name (GladeNameContext *context,
const gchar * base_name) const gchar *base_name)
{ {
GladeIDAllocator *id_allocator; GladeIDAllocator *id_allocator;
const gchar *number; const gchar *number;
@ -111,9 +109,9 @@ glade_name_context_new_name (GladeNameContext * context,
} }
gchar * gchar *
glade_name_context_dual_new_name (GladeNameContext * context, glade_name_context_dual_new_name (GladeNameContext *context,
GladeNameContext * another_context, GladeNameContext *another_context,
const gchar * base_name) const gchar *base_name)
{ {
GladeIDAllocator *id_allocator; GladeIDAllocator *id_allocator;
GList *free_ids = NULL, *l; GList *free_ids = NULL, *l;
@ -172,7 +170,7 @@ glade_name_context_dual_new_name (GladeNameContext * context,
} }
guint guint
glade_name_context_n_names (GladeNameContext * context) glade_name_context_n_names (GladeNameContext *context)
{ {
g_return_val_if_fail (context != NULL, FALSE); g_return_val_if_fail (context != NULL, FALSE);
@ -180,7 +178,7 @@ glade_name_context_n_names (GladeNameContext * context)
} }
gboolean gboolean
glade_name_context_has_name (GladeNameContext * context, const gchar * name) glade_name_context_has_name (GladeNameContext *context, const gchar *name)
{ {
g_return_val_if_fail (context != NULL, FALSE); g_return_val_if_fail (context != NULL, FALSE);
g_return_val_if_fail (name && name[0], FALSE); g_return_val_if_fail (name && name[0], FALSE);
@ -189,7 +187,7 @@ glade_name_context_has_name (GladeNameContext * context, const gchar * name)
} }
gboolean gboolean
glade_name_context_add_name (GladeNameContext * context, const gchar * name) glade_name_context_add_name (GladeNameContext *context, const gchar *name)
{ {
gboolean ret = FALSE; gboolean ret = FALSE;
@ -207,7 +205,7 @@ glade_name_context_add_name (GladeNameContext * context, const gchar * name)
} }
void void
glade_name_context_release_name (GladeNameContext * context, const gchar * name) glade_name_context_release_name (GladeNameContext *context, const gchar *name)
{ {
const gchar *first_number = name; const gchar *first_number = name;

View File

@ -33,10 +33,6 @@
#define DEFAULT_SETTING_LIST_STANDARD_ONLY TRUE #define DEFAULT_SETTING_LIST_STANDARD_ONLY TRUE
#define GLADE_NAMED_ICON_CHOOSER_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), \
GLADE_TYPE_NAMED_ICON_CHOOSER_DIALOG, \
GladeNamedIconChooserDialogPrivate))
enum enum
{ {
CONTEXTS_ID_COLUMN, CONTEXTS_ID_COLUMN,
@ -103,45 +99,46 @@ static GHashTable *standard_icon_quarks = NULL;
static guint dialog_signals[LAST_SIGNAL] = { 0, }; static guint dialog_signals[LAST_SIGNAL] = { 0, };
gchar *
glade_named_icon_chooser_dialog_get_icon_name (GladeNamedIconChooserDialog *dialog);
gchar void
*glade_named_icon_chooser_dialog_get_icon_name (GladeNamedIconChooserDialog glade_named_icon_chooser_dialog_set_icon_name (GladeNamedIconChooserDialog *dialog,
* dialog); const gchar *icon_name);
void glade_named_icon_chooser_dialog_set_icon_name (GladeNamedIconChooserDialog
* dialog,
const gchar * icon_name);
gboolean gboolean
glade_named_icon_chooser_dialog_set_context (GladeNamedIconChooserDialog * glade_named_icon_chooser_dialog_set_context (GladeNamedIconChooserDialog *dialog,
dialog, const gchar * context); const gchar *context);
gchar *glade_named_icon_chooser_dialog_get_context (GladeNamedIconChooserDialog gchar *
* dialog); glade_named_icon_chooser_dialog_get_context (GladeNamedIconChooserDialog *dialog);
static gboolean should_respond (GladeNamedIconChooserDialog * dialog); static gboolean should_respond (GladeNamedIconChooserDialog *dialog);
static void filter_icons_model (GladeNamedIconChooserDialog * dialog); static void filter_icons_model (GladeNamedIconChooserDialog *dialog);
static gboolean scan_for_name_func (GtkTreeModel * model, static gboolean scan_for_name_func (GtkTreeModel *model,
GtkTreePath * path, GtkTreePath *path,
GtkTreeIter * iter, gpointer data); GtkTreeIter *iter,
gpointer data);
static gboolean scan_for_context_func (GtkTreeModel * model, static gboolean scan_for_context_func (GtkTreeModel *model,
GtkTreePath * path, GtkTreePath *path,
GtkTreeIter * iter, gpointer data); GtkTreeIter *iter,
gpointer data);
static void settings_load (GladeNamedIconChooserDialog * dialog); static void settings_load (GladeNamedIconChooserDialog *dialog);
static void settings_save (GladeNamedIconChooserDialog * dialog); static void settings_save (GladeNamedIconChooserDialog *dialog);
G_DEFINE_TYPE (GladeNamedIconChooserDialog, glade_named_icon_chooser_dialog, G_DEFINE_TYPE_WITH_PRIVATE (GladeNamedIconChooserDialog,
glade_named_icon_chooser_dialog,
GTK_TYPE_DIALOG); GTK_TYPE_DIALOG);
static void static void
entry_set_name (GladeNamedIconChooserDialog * dialog, const gchar * name) entry_set_name (GladeNamedIconChooserDialog *dialog, const gchar *name)
{ {
/* Must disable completion before setting text, in order to avoid /* Must disable completion before setting text, in order to avoid
* spurious warnings (possible GTK+ bug). * spurious warnings (possible GTK+ bug).
@ -155,7 +152,7 @@ entry_set_name (GladeNamedIconChooserDialog * dialog, const gchar * name)
} }
static GtkIconTheme * static GtkIconTheme *
get_icon_theme_for_widget (GtkWidget * widget) get_icon_theme_for_widget (GtkWidget *widget)
{ {
if (gtk_widget_has_screen (widget)) if (gtk_widget_has_screen (widget))
return gtk_icon_theme_get_for_screen (gtk_widget_get_screen (widget)); return gtk_icon_theme_get_for_screen (gtk_widget_get_screen (widget));
@ -184,9 +181,10 @@ is_well_formed (const gchar * name)
} }
static void static void
check_entry_text (GladeNamedIconChooserDialog * dialog, check_entry_text (GladeNamedIconChooserDialog *dialog,
gchar ** name_ret, gchar **name_ret,
gboolean * is_wellformed_ret, gboolean * is_empty_ret) gboolean *is_wellformed_ret,
gboolean *is_empty_ret)
{ {
if (strlen (gtk_entry_get_text (GTK_ENTRY (dialog->priv->entry))) == 0) if (strlen (gtk_entry_get_text (GTK_ENTRY (dialog->priv->entry))) == 0)
{ {
@ -209,18 +207,19 @@ check_entry_text (GladeNamedIconChooserDialog * dialog,
} }
static void static void
changed_text_handler (GtkEditable * editable, changed_text_handler (GtkEditable *editable,
GladeNamedIconChooserDialog * dialog) GladeNamedIconChooserDialog *dialog)
{ {
g_signal_emit_by_name (dialog, "selection-changed", NULL); g_signal_emit_by_name (dialog, "selection-changed", NULL);
} }
/* ensure that only valid text can be inserted into entry */ /* ensure that only valid text can be inserted into entry */
static void static void
insert_text_handler (GtkEditable * editable, insert_text_handler (GtkEditable *editable,
const gchar * text, const gchar *text,
gint length, gint length,
gint * position, GladeNamedIconChooserDialog * dialog) gint *position,
GladeNamedIconChooserDialog *dialog)
{ {
if (is_well_formed (text)) if (is_well_formed (text))
{ {
@ -256,8 +255,8 @@ typedef struct
} ForEachFuncData; } ForEachFuncData;
void void
glade_named_icon_chooser_dialog_set_icon_name (GladeNamedIconChooserDialog * glade_named_icon_chooser_dialog_set_icon_name (GladeNamedIconChooserDialog *dialog,
dialog, const gchar * name) const gchar *name)
{ {
ForEachFuncData *data; ForEachFuncData *data;
gboolean located_in_theme; gboolean located_in_theme;
@ -322,8 +321,8 @@ glade_named_icon_chooser_dialog_set_icon_name (GladeNamedIconChooserDialog *
} }
gboolean gboolean
glade_named_icon_chooser_dialog_set_context (GladeNamedIconChooserDialog * glade_named_icon_chooser_dialog_set_context (GladeNamedIconChooserDialog *dialog,
dialog, const gchar * name) const gchar *name)
{ {
ForEachFuncData *data; ForEachFuncData *data;
@ -353,8 +352,7 @@ glade_named_icon_chooser_dialog_set_context (GladeNamedIconChooserDialog *
} }
gchar * gchar *
glade_named_icon_chooser_dialog_get_context (GladeNamedIconChooserDialog * glade_named_icon_chooser_dialog_get_context (GladeNamedIconChooserDialog *dialog)
dialog)
{ {
GtkTreeSelection *sel; GtkTreeSelection *sel;
GtkTreeIter iter; GtkTreeIter iter;
@ -382,7 +380,7 @@ glade_named_icon_chooser_dialog_get_context (GladeNamedIconChooserDialog *
} }
static gchar * static gchar *
get_icon_name_from_selection (GladeNamedIconChooserDialog * dialog) get_icon_name_from_selection (GladeNamedIconChooserDialog *dialog)
{ {
GtkTreeIter iter; GtkTreeIter iter;
GtkTreeModel *model; GtkTreeModel *model;
@ -397,8 +395,7 @@ get_icon_name_from_selection (GladeNamedIconChooserDialog * dialog)
} }
gchar * gchar *
glade_named_icon_chooser_dialog_get_icon_name (GladeNamedIconChooserDialog * glade_named_icon_chooser_dialog_get_icon_name (GladeNamedIconChooserDialog *dialog)
dialog)
{ {
GtkWidget *current_focus; GtkWidget *current_focus;
gchar *name; gchar *name;
@ -444,7 +441,7 @@ glade_named_icon_chooser_dialog_get_icon_name (GladeNamedIconChooserDialog *
} }
static void static void
set_busy_cursor (GladeNamedIconChooserDialog * dialog, gboolean busy) set_busy_cursor (GladeNamedIconChooserDialog *dialog, gboolean busy)
{ {
GdkDisplay *display; GdkDisplay *display;
GdkCursor *cursor; GdkCursor *cursor;
@ -504,10 +501,10 @@ populate_icon_contexts_model (void)
} }
static void static void
icons_row_activated_cb (GtkTreeView * view, icons_row_activated_cb (GtkTreeView *view,
GtkTreePath * path, GtkTreePath *path,
GtkTreeViewColumn * column, GtkTreeViewColumn *column,
GladeNamedIconChooserDialog * dialog) GladeNamedIconChooserDialog *dialog)
{ {
g_signal_emit_by_name (dialog, "icon-activated", NULL); g_signal_emit_by_name (dialog, "icon-activated", NULL);
} }
@ -538,10 +535,10 @@ icons_selection_changed_cb (GtkTreeSelection * selection,
} }
static void static void
contexts_row_activated_cb (GtkTreeView * view, contexts_row_activated_cb (GtkTreeView *view,
GtkTreePath * cpath, GtkTreePath *cpath,
GtkTreeViewColumn * column, GtkTreeViewColumn *column,
GladeNamedIconChooserDialog * dialog) GladeNamedIconChooserDialog *dialog)
{ {
GtkTreeIter iter; GtkTreeIter iter;
GtkTreePath *path; GtkTreePath *path;
@ -565,8 +562,8 @@ contexts_row_activated_cb (GtkTreeView * view,
} }
static void static void
contexts_selection_changed_cb (GtkTreeSelection * selection, contexts_selection_changed_cb (GtkTreeSelection *selection,
GladeNamedIconChooserDialog * dialog) GladeNamedIconChooserDialog *dialog)
{ {
GtkTreeIter iter; GtkTreeIter iter;
GtkTreeModel *model; GtkTreeModel *model;
@ -593,7 +590,7 @@ contexts_selection_changed_cb (GtkTreeSelection * selection,
} }
static gboolean static gboolean
row_separator_func (GtkTreeModel * model, GtkTreeIter * iter, gpointer unused) row_separator_func (GtkTreeModel *model, GtkTreeIter *iter, gpointer unused)
{ {
gboolean retval; gboolean retval;
gchar *name, *title; gchar *name, *title;
@ -611,7 +608,7 @@ row_separator_func (GtkTreeModel * model, GtkTreeIter * iter, gpointer unused)
} }
static GtkWidget * static GtkWidget *
create_contexts_view (GladeNamedIconChooserDialog * dialog) create_contexts_view (GladeNamedIconChooserDialog *dialog)
{ {
GtkTreeView *view; GtkTreeView *view;
GtkTreeViewColumn *column; GtkTreeViewColumn *column;
@ -656,7 +653,7 @@ create_contexts_view (GladeNamedIconChooserDialog * dialog)
/* filters the icons model based on the current state */ /* filters the icons model based on the current state */
static void static void
filter_icons_model (GladeNamedIconChooserDialog * dialog) filter_icons_model (GladeNamedIconChooserDialog *dialog)
{ {
set_busy_cursor (dialog, TRUE); set_busy_cursor (dialog, TRUE);
@ -680,8 +677,9 @@ filter_icons_model (GladeNamedIconChooserDialog * dialog)
} }
static gboolean static gboolean
filter_visible_func (GtkTreeModel * model, filter_visible_func (GtkTreeModel *model,
GtkTreeIter * iter, GladeNamedIconChooserDialog * dialog) GtkTreeIter *iter,
GladeNamedIconChooserDialog *dialog)
{ {
gboolean standard; gboolean standard;
gint context_id; gint context_id;
@ -701,10 +699,11 @@ filter_visible_func (GtkTreeModel * model,
static gboolean static gboolean
search_equal_func (GtkTreeModel * model, search_equal_func (GtkTreeModel *model,
gint column, gint column,
const gchar * key, const gchar *key,
GtkTreeIter * iter, GladeNamedIconChooserDialog * dialog) GtkTreeIter *iter,
GladeNamedIconChooserDialog *dialog)
{ {
gchar *name; gchar *name;
gboolean retval; gboolean retval;
@ -720,9 +719,10 @@ search_equal_func (GtkTreeModel * model,
} }
static gboolean static gboolean
scan_for_context_func (GtkTreeModel * model, scan_for_context_func (GtkTreeModel *model,
GtkTreePath * path, GtkTreePath *path,
GtkTreeIter * iter, gpointer user_data) GtkTreeIter *iter,
gpointer user_data)
{ {
ForEachFuncData *data = (ForEachFuncData *) user_data; ForEachFuncData *data = (ForEachFuncData *) user_data;
GtkTreeSelection *selection = GtkTreeSelection *selection =
@ -769,8 +769,10 @@ scan_for_context_func (GtkTreeModel * model,
} }
gboolean gboolean
scan_for_name_func (GtkTreeModel * model, scan_for_name_func (GtkTreeModel *model,
GtkTreePath * path, GtkTreeIter * iter, gpointer user_data) GtkTreePath *path,
GtkTreeIter *iter,
gpointer user_data)
{ {
ForEachFuncData *data = (ForEachFuncData *) user_data; ForEachFuncData *data = (ForEachFuncData *) user_data;
gchar *name = NULL; gchar *name = NULL;
@ -814,7 +816,7 @@ scan_for_name_func (GtkTreeModel * model,
} }
static void static void
centre_selected_row (GladeNamedIconChooserDialog * dialog) centre_selected_row (GladeNamedIconChooserDialog *dialog)
{ {
GList *l; GList *l;
@ -845,7 +847,7 @@ centre_selected_row (GladeNamedIconChooserDialog * dialog)
} }
static void static void
select_first_row (GladeNamedIconChooserDialog * dialog) select_first_row (GladeNamedIconChooserDialog *dialog)
{ {
GtkTreePath *path; GtkTreePath *path;
@ -859,7 +861,7 @@ select_first_row (GladeNamedIconChooserDialog * dialog)
} }
static void static void
pending_select_name_process (GladeNamedIconChooserDialog * dialog) pending_select_name_process (GladeNamedIconChooserDialog *dialog)
{ {
ForEachFuncData *data; ForEachFuncData *data;
@ -897,7 +899,7 @@ pending_select_name_process (GladeNamedIconChooserDialog * dialog)
} }
static gboolean static gboolean
is_standard_icon_name (const gchar * icon_name) is_standard_icon_name (const gchar *icon_name)
{ {
GQuark quark; GQuark quark;
@ -912,7 +914,7 @@ is_standard_icon_name (const gchar * icon_name)
} }
static void static void
cleanup_after_load (GladeNamedIconChooserDialog * dialog) cleanup_after_load (GladeNamedIconChooserDialog *dialog)
{ {
dialog->priv->load_id = 0; dialog->priv->load_id = 0;
@ -922,7 +924,7 @@ cleanup_after_load (GladeNamedIconChooserDialog * dialog)
} }
static void static void
chooser_set_model (GladeNamedIconChooserDialog * dialog) chooser_set_model (GladeNamedIconChooserDialog *dialog)
{ {
/* filter model */ /* filter model */
@ -957,13 +959,13 @@ typedef struct
} IconData; } IconData;
static gint static gint
icon_data_compare (IconData * a, IconData * b) icon_data_compare (IconData *a, IconData *b)
{ {
return g_ascii_strcasecmp (a->name, b->name); return g_ascii_strcasecmp (a->name, b->name);
} }
static gboolean static gboolean
reload_icons (GladeNamedIconChooserDialog * dialog) reload_icons (GladeNamedIconChooserDialog *dialog)
{ {
GtkListStore *store = dialog->priv->icons_store; GtkListStore *store = dialog->priv->icons_store;
GtkTreeIter iter; GtkTreeIter iter;
@ -1020,7 +1022,7 @@ reload_icons (GladeNamedIconChooserDialog * dialog)
} }
static void static void
change_icon_theme (GladeNamedIconChooserDialog * dialog) change_icon_theme (GladeNamedIconChooserDialog *dialog)
{ {
if (dialog->priv->icon_theme == NULL) if (dialog->priv->icon_theme == NULL)
dialog->priv->icon_theme = get_icon_theme_for_widget (GTK_WIDGET (dialog)); dialog->priv->icon_theme = get_icon_theme_for_widget (GTK_WIDGET (dialog));
@ -1038,8 +1040,8 @@ change_icon_theme (GladeNamedIconChooserDialog * dialog)
} }
static void static void
glade_named_icon_chooser_dialog_screen_changed (GtkWidget * widget, glade_named_icon_chooser_dialog_screen_changed (GtkWidget *widget,
GdkScreen * previous_screen) GdkScreen *previous_screen)
{ {
GladeNamedIconChooserDialog *dialog; GladeNamedIconChooserDialog *dialog;
@ -1056,7 +1058,7 @@ glade_named_icon_chooser_dialog_screen_changed (GtkWidget * widget,
} }
static GtkWidget * static GtkWidget *
create_icons_view (GladeNamedIconChooserDialog * dialog) create_icons_view (GladeNamedIconChooserDialog *dialog)
{ {
GtkTreeView *view; GtkTreeView *view;
GtkTreeViewColumn *column; GtkTreeViewColumn *column;
@ -1124,7 +1126,7 @@ create_icons_view (GladeNamedIconChooserDialog * dialog)
/* sets the 'list-standard' state and refilters the icons model */ /* sets the 'list-standard' state and refilters the icons model */
static void static void
button_toggled (GtkToggleButton * button, GladeNamedIconChooserDialog * dialog) button_toggled (GtkToggleButton *button, GladeNamedIconChooserDialog *dialog)
{ {
dialog->priv->settings_list_standard = gtk_toggle_button_get_active (button); dialog->priv->settings_list_standard = gtk_toggle_button_get_active (button);
@ -1154,8 +1156,8 @@ create_standard_icon_quarks (void)
} }
static void static void
glade_named_icon_chooser_dialog_style_set (GtkWidget * widget, glade_named_icon_chooser_dialog_style_set (GtkWidget *widget,
GtkStyle * previous_style) GtkStyle *previous_style)
{ {
if (gtk_widget_has_screen (widget) && gtk_widget_get_mapped (widget)) if (gtk_widget_has_screen (widget) && gtk_widget_get_mapped (widget))
change_icon_theme (GLADE_NAMED_ICON_CHOOSER_DIALOG (widget)); change_icon_theme (GLADE_NAMED_ICON_CHOOSER_DIALOG (widget));
@ -1165,7 +1167,7 @@ glade_named_icon_chooser_dialog_style_set (GtkWidget * widget,
* hidden unless we decide otherwise, like the list-standard-icons-only checkbox. * hidden unless we decide otherwise, like the list-standard-icons-only checkbox.
*/ */
static void static void
glade_named_icon_chooser_dialog_show_all (GtkWidget * widget) glade_named_icon_chooser_dialog_show_all (GtkWidget *widget)
{ {
gtk_widget_show (widget); gtk_widget_show (widget);
} }
@ -1174,8 +1176,7 @@ glade_named_icon_chooser_dialog_show_all (GtkWidget * widget)
* widget on our toplevel. See glade_named_icon_chooser_dialog_hierarchy_changed() * widget on our toplevel. See glade_named_icon_chooser_dialog_hierarchy_changed()
*/ */
static void static void
glade_named_icon_chooser_dialog_set_focus (GtkWindow * window, glade_named_icon_chooser_dialog_set_focus (GtkWindow *window, GtkWidget *focus)
GtkWidget * focus)
{ {
GTK_WINDOW_CLASS (glade_named_icon_chooser_dialog_parent_class)-> GTK_WINDOW_CLASS (glade_named_icon_chooser_dialog_parent_class)->
@ -1186,7 +1187,7 @@ glade_named_icon_chooser_dialog_set_focus (GtkWindow * window,
} }
static void static void
glade_named_icon_chooser_dialog_finalize (GObject * object) glade_named_icon_chooser_dialog_finalize (GObject *object)
{ {
GladeNamedIconChooserDialog *dialog = GladeNamedIconChooserDialog *dialog =
GLADE_NAMED_ICON_CHOOSER_DIALOG (object); GLADE_NAMED_ICON_CHOOSER_DIALOG (object);
@ -1202,7 +1203,7 @@ glade_named_icon_chooser_dialog_finalize (GObject * object)
} }
static void static void
glade_named_icon_chooser_dialog_map (GtkWidget * widget) glade_named_icon_chooser_dialog_map (GtkWidget *widget)
{ {
GladeNamedIconChooserDialog *dialog = GladeNamedIconChooserDialog *dialog =
GLADE_NAMED_ICON_CHOOSER_DIALOG (widget); GLADE_NAMED_ICON_CHOOSER_DIALOG (widget);
@ -1218,7 +1219,7 @@ glade_named_icon_chooser_dialog_map (GtkWidget * widget)
} }
static void static void
glade_named_icon_chooser_dialog_unmap (GtkWidget * widget) glade_named_icon_chooser_dialog_unmap (GtkWidget *widget)
{ {
GladeNamedIconChooserDialog *dialog = GladeNamedIconChooserDialog *dialog =
GLADE_NAMED_ICON_CHOOSER_DIALOG (widget); GLADE_NAMED_ICON_CHOOSER_DIALOG (widget);
@ -1233,7 +1234,7 @@ glade_named_icon_chooser_dialog_unmap (GtkWidget * widget)
* to be fully painted before loading begins * to be fully painted before loading begins
*/ */
static gboolean static gboolean
glade_named_icon_chooser_dialog_draw (GtkWidget * widget, cairo_t * cr) glade_named_icon_chooser_dialog_draw (GtkWidget *widget, cairo_t *cr)
{ {
GladeNamedIconChooserDialog *dialog = GladeNamedIconChooserDialog *dialog =
GLADE_NAMED_ICON_CHOOSER_DIALOG (widget); GLADE_NAMED_ICON_CHOOSER_DIALOG (widget);
@ -1252,7 +1253,7 @@ glade_named_icon_chooser_dialog_draw (GtkWidget * widget, cairo_t * cr)
} }
static void static void
response_cb (GtkDialog * dialog, gint response_id) response_cb (GtkDialog *dialog, gint response_id)
{ {
/* Act only on response IDs we recognize */ /* Act only on response IDs we recognize */
if (!(response_id == GTK_RESPONSE_ACCEPT if (!(response_id == GTK_RESPONSE_ACCEPT
@ -1271,7 +1272,7 @@ response_cb (GtkDialog * dialog, gint response_id)
* make the dialog emit a valid response signal * make the dialog emit a valid response signal
*/ */
static void static void
icon_activated_cb (GladeNamedIconChooserDialog * dialog) icon_activated_cb (GladeNamedIconChooserDialog *dialog)
{ {
GList *children, *l; GList *children, *l;
@ -1307,7 +1308,7 @@ icon_activated_cb (GladeNamedIconChooserDialog * dialog)
* make the affirmative response button insensitive when the selection is empty * make the affirmative response button insensitive when the selection is empty
*/ */
static void static void
selection_changed_cb (GladeNamedIconChooserDialog * dialog) selection_changed_cb (GladeNamedIconChooserDialog *dialog)
{ {
GList *children, *l; GList *children, *l;
gchar *icon_name; gchar *icon_name;
@ -1343,7 +1344,7 @@ selection_changed_cb (GladeNamedIconChooserDialog * dialog)
} }
static void static void
glade_named_icon_chooser_dialog_init (GladeNamedIconChooserDialog * dialog) glade_named_icon_chooser_dialog_init (GladeNamedIconChooserDialog *dialog)
{ {
GtkWidget *contents; GtkWidget *contents;
GtkWidget *hbox; GtkWidget *hbox;
@ -1355,7 +1356,7 @@ glade_named_icon_chooser_dialog_init (GladeNamedIconChooserDialog * dialog)
GtkWidget *action_area; GtkWidget *action_area;
GtkSizeGroup *group; GtkSizeGroup *group;
dialog->priv = GLADE_NAMED_ICON_CHOOSER_DIALOG_GET_PRIVATE (dialog); dialog->priv = glade_named_icon_chooser_dialog_get_instance_private (dialog);
dialog->priv->filter_model = NULL; dialog->priv->filter_model = NULL;
dialog->priv->icons_store = NULL; dialog->priv->icons_store = NULL;
@ -1505,13 +1506,10 @@ glade_named_icon_chooser_dialog_init (GladeNamedIconChooserDialog * dialog)
G_TYPE_UINT, G_TYPE_UINT,
G_TYPE_BOOLEAN, G_TYPE_BOOLEAN,
G_TYPE_STRING); G_TYPE_STRING);
} }
static void static void
glade_named_icon_chooser_dialog_class_init (GladeNamedIconChooserDialogClass * glade_named_icon_chooser_dialog_class_init (GladeNamedIconChooserDialogClass *klass)
klass)
{ {
GObjectClass *object_class; GObjectClass *object_class;
GtkWidgetClass *widget_class; GtkWidgetClass *widget_class;
@ -1565,13 +1563,10 @@ glade_named_icon_chooser_dialog_class_init (GladeNamedIconChooserDialogClass *
G_STRUCT_OFFSET (GladeNamedIconChooserDialogClass, G_STRUCT_OFFSET (GladeNamedIconChooserDialogClass,
selection_changed), NULL, NULL, selection_changed), NULL, NULL,
g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
g_type_class_add_private (klass, sizeof (GladeNamedIconChooserDialogPrivate));
} }
static gboolean static gboolean
should_respond (GladeNamedIconChooserDialog * dialog) should_respond (GladeNamedIconChooserDialog *dialog)
{ {
gchar *icon_name; gchar *icon_name;
@ -1600,7 +1595,7 @@ get_config_dirname (void)
/* loads the configuration settings */ /* loads the configuration settings */
static void static void
settings_load (GladeNamedIconChooserDialog * dialog) settings_load (GladeNamedIconChooserDialog *dialog)
{ {
GKeyFile *keyfile; GKeyFile *keyfile;
gboolean success, boolean_value; gboolean success, boolean_value;
@ -1643,7 +1638,7 @@ settings_load (GladeNamedIconChooserDialog * dialog)
/* creates a GKeyFile based on the current settings */ /* creates a GKeyFile based on the current settings */
static GKeyFile * static GKeyFile *
settings_to_keyfile (GladeNamedIconChooserDialog * dialog) settings_to_keyfile (GladeNamedIconChooserDialog *dialog)
{ {
GKeyFile *keyfile; GKeyFile *keyfile;
gchar *filename; gchar *filename;
@ -1666,7 +1661,7 @@ settings_to_keyfile (GladeNamedIconChooserDialog * dialog)
/* serializes the the current configuration to the config file */ /* serializes the the current configuration to the config file */
static void static void
settings_save (GladeNamedIconChooserDialog * dialog) settings_save (GladeNamedIconChooserDialog *dialog)
{ {
GKeyFile *keyfile; GKeyFile *keyfile;
gchar *contents; gchar *contents;
@ -1716,9 +1711,9 @@ out:
} }
static GtkWidget * static GtkWidget *
glade_named_icon_chooser_dialog_new_valist (const gchar * title, glade_named_icon_chooser_dialog_new_valist (const gchar *title,
GtkWindow * parent, GtkWindow *parent,
const gchar * first_button_text, const gchar *first_button_text,
va_list varargs) va_list varargs)
{ {
GtkWidget *result; GtkWidget *result;
@ -1752,9 +1747,10 @@ glade_named_icon_chooser_dialog_new_valist (const gchar * title,
* Return value: a new #GladeNamedIconChooserDialog * Return value: a new #GladeNamedIconChooserDialog
*/ */
GtkWidget * GtkWidget *
glade_named_icon_chooser_dialog_new (const gchar * title, glade_named_icon_chooser_dialog_new (const gchar *title,
GtkWindow * parent, GtkWindow *parent,
const gchar * first_button_text, ...) const gchar *first_button_text,
...)
{ {
GtkWidget *result; GtkWidget *result;
va_list varargs; va_list varargs;

View File

@ -35,8 +35,6 @@ struct _GladeObjectStubPrivate
GladeXmlNode *node; GladeXmlNode *node;
}; };
#define GLADE_OBJECT_STUB_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GLADE_TYPE_OBJECT_STUB, GladeObjectStubPrivate))
enum enum
{ {
PROP_0, PROP_0,
@ -46,7 +44,7 @@ enum
}; };
G_DEFINE_TYPE (GladeObjectStub, glade_object_stub, GTK_TYPE_INFO_BAR); G_DEFINE_TYPE_WITH_PRIVATE (GladeObjectStub, glade_object_stub, GTK_TYPE_INFO_BAR);
#define RESPONSE_DELETE 1 #define RESPONSE_DELETE 1
#define RESPONSE_DELETE_ALL 2 #define RESPONSE_DELETE_ALL 2
@ -85,7 +83,7 @@ on_infobar_response (GladeObjectStub *stub, gint response_id)
static void static void
glade_object_stub_init (GladeObjectStub *object) glade_object_stub_init (GladeObjectStub *object)
{ {
GladeObjectStubPrivate *priv = GLADE_OBJECT_STUB_PRIVATE (object); GladeObjectStubPrivate *priv = glade_object_stub_get_instance_private (object);
GtkWidget *label = gtk_label_new (NULL); GtkWidget *label = gtk_label_new (NULL);
object->priv = priv; object->priv = priv;
@ -139,7 +137,10 @@ glade_object_stub_refresh_text (GladeObjectStub *stub)
} }
static void static void
glade_object_stub_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) glade_object_stub_set_property (GObject *object,
guint prop_id,
const GValue *value,
GParamSpec *pspec)
{ {
GladeObjectStubPrivate *priv; GladeObjectStubPrivate *priv;
GladeObjectStub *stub; GladeObjectStub *stub;
@ -167,7 +168,10 @@ glade_object_stub_set_property (GObject *object, guint prop_id, const GValue *va
} }
static void static void
glade_object_stub_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) glade_object_stub_get_property (GObject *object,
guint prop_id,
GValue *value,
GParamSpec *pspec)
{ {
GladeObjectStubPrivate *priv; GladeObjectStubPrivate *priv;
@ -207,8 +211,6 @@ glade_object_stub_class_init (GladeObjectStubClass *klass)
{ {
GObjectClass *object_class = G_OBJECT_CLASS (klass); GObjectClass *object_class = G_OBJECT_CLASS (klass);
g_type_class_add_private (klass, sizeof (GladeObjectStubPrivate));
object_class->finalize = glade_object_stub_finalize; object_class->finalize = glade_object_stub_finalize;
object_class->set_property = glade_object_stub_set_property; object_class->set_property = glade_object_stub_set_property;
object_class->get_property = glade_object_stub_get_property; object_class->get_property = glade_object_stub_get_property;

View File

@ -52,10 +52,6 @@
#include <glib/gi18n-lib.h> #include <glib/gi18n-lib.h>
#include <gdk/gdk.h> #include <gdk/gdk.h>
#define GLADE_PALETTE_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object),\
GLADE_TYPE_PALETTE, \
GladePalettePrivate))
struct _GladePalettePrivate struct _GladePalettePrivate
{ {
const GList *catalogs; /* List of widget catalogs */ const GList *catalogs; /* List of widget catalogs */
@ -95,12 +91,10 @@ static guint glade_palette_signals[LAST_SIGNAL] = { 0 };
static void glade_palette_append_item_group (GladePalette *palette, static void glade_palette_append_item_group (GladePalette *palette,
GladeWidgetGroup *group); GladeWidgetGroup *group);
static void glade_palette_update_appearance (GladePalette *palette);
static void palette_item_toggled_cb (GtkToggleToolButton *button, static void palette_item_toggled_cb (GtkToggleToolButton *button,
GladePalette *palette); GladePalette *palette);
G_DEFINE_TYPE (GladePalette, glade_palette, GTK_TYPE_BOX) G_DEFINE_TYPE_WITH_PRIVATE (GladePalette, glade_palette, GTK_TYPE_BOX)
/******************************************************* /*******************************************************
@ -146,7 +140,7 @@ palette_item_refresh_cb (GladePalette *palette,
} }
static void static void
glade_palette_refresh (GladePalette * palette) glade_palette_refresh (GladePalette *palette)
{ {
g_return_if_fail (GLADE_IS_PALETTE (palette)); g_return_if_fail (GLADE_IS_PALETTE (palette));
@ -313,7 +307,7 @@ palette_item_button_press_cb (GtkWidget *button,
* Building Widgets/Populating catalog * * Building Widgets/Populating catalog *
*******************************************************/ *******************************************************/
static GtkWidget * static GtkWidget *
glade_palette_new_item (GladePalette * palette, GladeWidgetAdaptor * adaptor) glade_palette_new_item (GladePalette *palette, GladeWidgetAdaptor *adaptor)
{ {
GtkWidget *item, *button, *label, *box; GtkWidget *item, *button, *label, *box;
@ -362,7 +356,7 @@ glade_palette_new_item (GladePalette * palette, GladeWidgetAdaptor * adaptor)
} }
static GtkWidget * static GtkWidget *
glade_palette_new_item_group (GladePalette * palette, GladeWidgetGroup * group) glade_palette_new_item_group (GladePalette *palette, GladeWidgetGroup *group)
{ {
GtkWidget *item_group, *item, *label; GtkWidget *item_group, *item, *label;
GList *l; GList *l;
@ -404,8 +398,7 @@ glade_palette_new_item_group (GladePalette * palette, GladeWidgetGroup * group)
} }
static void static void
glade_palette_append_item_group (GladePalette * palette, glade_palette_append_item_group (GladePalette *palette, GladeWidgetGroup *group)
GladeWidgetGroup * group)
{ {
GladePalettePrivate *priv = palette->priv; GladePalettePrivate *priv = palette->priv;
GtkWidget *item_group; GtkWidget *item_group;
@ -415,7 +408,7 @@ glade_palette_append_item_group (GladePalette * palette,
} }
static void static void
glade_palette_populate (GladePalette * palette) glade_palette_populate (GladePalette *palette)
{ {
GList *l; GList *l;
@ -436,7 +429,7 @@ glade_palette_populate (GladePalette * palette)
} }
static GtkWidget * static GtkWidget *
glade_palette_create_selector_button (GladePalette * palette) glade_palette_create_selector_button (GladePalette *palette)
{ {
GtkWidget *selector; GtkWidget *selector;
GtkWidget *image; GtkWidget *image;
@ -471,15 +464,16 @@ glade_palette_create_selector_button (GladePalette * palette)
* hidden unless we decide otherwise, like the hidden selector button. * hidden unless we decide otherwise, like the hidden selector button.
*/ */
static void static void
glade_palette_show_all (GtkWidget * widget) glade_palette_show_all (GtkWidget *widget)
{ {
gtk_widget_show (widget); gtk_widget_show (widget);
} }
static void static void
glade_palette_set_property (GObject * object, glade_palette_set_property (GObject *object,
guint prop_id, guint prop_id,
const GValue * value, GParamSpec * pspec) const GValue *value,
GParamSpec *pspec)
{ {
GladePalette *palette = GLADE_PALETTE (object); GladePalette *palette = GLADE_PALETTE (object);
@ -506,8 +500,10 @@ glade_palette_set_property (GObject * object,
} }
static void static void
glade_palette_get_property (GObject * object, glade_palette_get_property (GObject *object,
guint prop_id, GValue * value, GParamSpec * pspec) guint prop_id,
GValue *value,
GParamSpec *pspec)
{ {
GladePalette *palette = GLADE_PALETTE (object); GladePalette *palette = GLADE_PALETTE (object);
GladePalettePrivate *priv = palette->priv; GladePalettePrivate *priv = palette->priv;
@ -534,7 +530,7 @@ glade_palette_get_property (GObject * object,
} }
static void static void
glade_palette_dispose (GObject * object) glade_palette_dispose (GObject *object)
{ {
GladePalettePrivate *priv; GladePalettePrivate *priv;
@ -548,7 +544,7 @@ glade_palette_dispose (GObject * object)
} }
static void static void
glade_palette_finalize (GObject * object) glade_palette_finalize (GObject *object)
{ {
GladePalettePrivate *priv; GladePalettePrivate *priv;
@ -560,38 +556,7 @@ glade_palette_finalize (GObject * object)
} }
static void static void
glade_palette_update_appearance (GladePalette * palette) glade_palette_class_init (GladePaletteClass *klass)
{
GladePalettePrivate *priv;
GtkToolbarStyle style;
GtkIconSize size;
priv = palette->priv;
size = priv->use_small_item_icons ? GTK_ICON_SIZE_MENU : GTK_ICON_SIZE_BUTTON;
switch (priv->item_appearance)
{
case GLADE_ITEM_ICON_AND_LABEL:
style = GTK_TOOLBAR_BOTH_HORIZ;
break;
case GLADE_ITEM_ICON_ONLY:
style = GTK_TOOLBAR_ICONS;
break;
case GLADE_ITEM_LABEL_ONLY:
style = GTK_TOOLBAR_TEXT;
break;
default:
g_assert_not_reached ();
break;
}
gtk_tool_palette_set_icon_size (GTK_TOOL_PALETTE (priv->toolpalette), size);
gtk_tool_palette_set_style (GTK_TOOL_PALETTE (priv->toolpalette), style);
}
static void
glade_palette_class_init (GladePaletteClass * klass)
{ {
GObjectClass *object_class; GObjectClass *object_class;
GtkWidgetClass *widget_class; GtkWidgetClass *widget_class;
@ -644,12 +609,10 @@ glade_palette_class_init (GladePaletteClass * klass)
/* Install all properties */ /* Install all properties */
g_object_class_install_properties (object_class, N_PROPERTIES, properties); g_object_class_install_properties (object_class, N_PROPERTIES, properties);
g_type_class_add_private (object_class, sizeof (GladePalettePrivate));
} }
static void static void
glade_palette_init (GladePalette * palette) glade_palette_init (GladePalette *palette)
{ {
GladePalettePrivate *priv; GladePalettePrivate *priv;
GtkWidget *sw; GtkWidget *sw;
@ -657,7 +620,7 @@ glade_palette_init (GladePalette * palette)
gtk_orientable_set_orientation (GTK_ORIENTABLE (palette), gtk_orientable_set_orientation (GTK_ORIENTABLE (palette),
GTK_ORIENTATION_VERTICAL); GTK_ORIENTATION_VERTICAL);
priv = palette->priv = GLADE_PALETTE_GET_PRIVATE (palette); priv = palette->priv = glade_palette_get_instance_private (palette);
priv->button_table = g_hash_table_new (g_str_hash, g_str_equal); priv->button_table = g_hash_table_new (g_str_hash, g_str_equal);
@ -677,6 +640,10 @@ glade_palette_init (GladePalette * palette)
/* The GtkToolPalette */ /* The GtkToolPalette */
priv->toolpalette = gtk_tool_palette_new (); priv->toolpalette = gtk_tool_palette_new ();
gtk_tool_palette_set_style (GTK_TOOL_PALETTE (priv->toolpalette),
GTK_TOOLBAR_ICONS);
gtk_tool_palette_set_icon_size (GTK_TOOL_PALETTE (priv->toolpalette),
GTK_ICON_SIZE_LARGE_TOOLBAR);
sw = gtk_scrolled_window_new (NULL, NULL); sw = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw), gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw),
@ -689,9 +656,6 @@ glade_palette_init (GladePalette * palette)
gtk_widget_show (sw); gtk_widget_show (sw);
gtk_widget_show (priv->toolpalette); gtk_widget_show (priv->toolpalette);
glade_palette_update_appearance (palette);
gtk_widget_set_no_show_all (GTK_WIDGET (palette), TRUE); gtk_widget_set_no_show_all (GTK_WIDGET (palette), TRUE);
glade_palette_populate (palette); glade_palette_populate (palette);
@ -732,8 +696,7 @@ glade_palette_get_project (GladePalette *palette)
} }
void void
glade_palette_set_project (GladePalette *palette, glade_palette_set_project (GladePalette *palette, GladeProject *project)
GladeProject *project)
{ {
g_return_if_fail (GLADE_IS_PALETTE (palette)); g_return_if_fail (GLADE_IS_PALETTE (palette));
@ -783,7 +746,7 @@ glade_palette_set_project (GladePalette *palette,
* Sets the appearance of the palette items. * Sets the appearance of the palette items.
*/ */
void void
glade_palette_set_item_appearance (GladePalette * palette, glade_palette_set_item_appearance (GladePalette *palette,
GladeItemAppearance item_appearance) GladeItemAppearance item_appearance)
{ {
GladePalettePrivate *priv; GladePalettePrivate *priv;
@ -794,9 +757,26 @@ glade_palette_set_item_appearance (GladePalette * palette,
if (priv->item_appearance != item_appearance) if (priv->item_appearance != item_appearance)
{ {
GtkToolbarStyle style;
priv->item_appearance = item_appearance; priv->item_appearance = item_appearance;
glade_palette_update_appearance (palette); switch (item_appearance)
{
case GLADE_ITEM_ICON_AND_LABEL:
style = GTK_TOOLBAR_BOTH_HORIZ;
break;
case GLADE_ITEM_ICON_ONLY:
style = GTK_TOOLBAR_ICONS;
break;
case GLADE_ITEM_LABEL_ONLY:
style = GTK_TOOLBAR_TEXT;
break;
default:
g_assert_not_reached ();
break;
}
gtk_tool_palette_set_style (GTK_TOOL_PALETTE (priv->toolpalette), style);
g_object_notify_by_pspec (G_OBJECT (palette), properties[PROP_ITEM_APPEARANCE]); g_object_notify_by_pspec (G_OBJECT (palette), properties[PROP_ITEM_APPEARANCE]);
} }
@ -810,7 +790,7 @@ glade_palette_set_item_appearance (GladePalette * palette,
* Sets whether to use small item icons. * Sets whether to use small item icons.
*/ */
void void
glade_palette_set_use_small_item_icons (GladePalette * palette, glade_palette_set_use_small_item_icons (GladePalette *palette,
gboolean use_small_item_icons) gboolean use_small_item_icons)
{ {
GladePalettePrivate *priv; GladePalettePrivate *priv;
@ -821,12 +801,13 @@ glade_palette_set_use_small_item_icons (GladePalette * palette,
{ {
priv->use_small_item_icons = use_small_item_icons; priv->use_small_item_icons = use_small_item_icons;
glade_palette_update_appearance (palette); gtk_tool_palette_set_icon_size (GTK_TOOL_PALETTE (priv->toolpalette),
(use_small_item_icons) ?
GTK_ICON_SIZE_SMALL_TOOLBAR :
GTK_ICON_SIZE_LARGE_TOOLBAR);
g_object_notify_by_pspec (G_OBJECT (palette), properties[PROP_USE_SMALL_ITEM_ICONS]); g_object_notify_by_pspec (G_OBJECT (palette), properties[PROP_USE_SMALL_ITEM_ICONS]);
} }
} }
/** /**
@ -837,7 +818,7 @@ glade_palette_set_use_small_item_icons (GladePalette * palette,
* Sets whether to show the internal widget selector button * Sets whether to show the internal widget selector button
*/ */
void void
glade_palette_set_show_selector_button (GladePalette * palette, glade_palette_set_show_selector_button (GladePalette *palette,
gboolean show_selector_button) gboolean show_selector_button)
{ {
GladePalettePrivate *priv; GladePalettePrivate *priv;
@ -864,7 +845,7 @@ glade_palette_set_show_selector_button (GladePalette * palette,
* Returns: The appearance of the palette items * Returns: The appearance of the palette items
*/ */
GladeItemAppearance GladeItemAppearance
glade_palette_get_item_appearance (GladePalette * palette) glade_palette_get_item_appearance (GladePalette *palette)
{; {;
g_return_val_if_fail (GLADE_IS_PALETTE (palette), GLADE_ITEM_ICON_ONLY); g_return_val_if_fail (GLADE_IS_PALETTE (palette), GLADE_ITEM_ICON_ONLY);
@ -878,7 +859,7 @@ glade_palette_get_item_appearance (GladePalette * palette)
* Returns: Whether small item icons are used * Returns: Whether small item icons are used
*/ */
gboolean gboolean
glade_palette_get_use_small_item_icons (GladePalette * palette) glade_palette_get_use_small_item_icons (GladePalette *palette)
{ {
g_return_val_if_fail (GLADE_IS_PALETTE (palette), FALSE); g_return_val_if_fail (GLADE_IS_PALETTE (palette), FALSE);
@ -892,7 +873,7 @@ glade_palette_get_use_small_item_icons (GladePalette * palette)
* Returns: Whether the selector button is visible * Returns: Whether the selector button is visible
*/ */
gboolean gboolean
glade_palette_get_show_selector_button (GladePalette * palette) glade_palette_get_show_selector_button (GladePalette *palette)
{ {
g_return_val_if_fail (GLADE_IS_PALETTE (palette), FALSE); g_return_val_if_fail (GLADE_IS_PALETTE (palette), FALSE);

View File

@ -73,14 +73,12 @@ enum
PROP_VSCROLL_POLICY PROP_VSCROLL_POLICY
}; };
#define GLADE_PLACEHOLDER_GET_PRIVATE(object) (G_TYPE_INSTANCE_GET_PRIVATE ((object), \
GLADE_TYPE_PLACEHOLDER, \
GladePlaceholderPrivate))
#define GLADE_PLACEHOLDER_PRIVATE(object) (((GladePlaceholder*)object)->priv) #define GLADE_PLACEHOLDER_PRIVATE(object) (((GladePlaceholder*)object)->priv)
static void glade_placeholder_drag_init (_GladeDragInterface *iface); static void glade_placeholder_drag_init (_GladeDragInterface *iface);
G_DEFINE_TYPE_WITH_CODE (GladePlaceholder, glade_placeholder, GTK_TYPE_WIDGET, G_DEFINE_TYPE_WITH_CODE (GladePlaceholder, glade_placeholder, GTK_TYPE_WIDGET,
G_ADD_PRIVATE (GladePlaceholder)
G_IMPLEMENT_INTERFACE (GTK_TYPE_SCROLLABLE, NULL) G_IMPLEMENT_INTERFACE (GTK_TYPE_SCROLLABLE, NULL)
G_IMPLEMENT_INTERFACE (GLADE_TYPE_DRAG, G_IMPLEMENT_INTERFACE (GLADE_TYPE_DRAG,
glade_placeholder_drag_init)) glade_placeholder_drag_init))
@ -113,7 +111,7 @@ glade_placeholder_notify_parent (GObject *gobject,
static void static void
glade_placeholder_init (GladePlaceholder *placeholder) glade_placeholder_init (GladePlaceholder *placeholder)
{ {
placeholder->priv = GLADE_PLACEHOLDER_GET_PRIVATE (placeholder); placeholder->priv = glade_placeholder_get_instance_private (placeholder);
placeholder->priv->packing_actions = NULL; placeholder->priv->packing_actions = NULL;
@ -355,22 +353,30 @@ glade_placeholder_draw (GtkWidget *widget, cairo_t *cr)
return FALSE; return FALSE;
} }
static void
glade_placeholder_update_cursor (GladePlaceholder *placeholder, GdkWindow *win)
{
GladeProject *project = glade_placeholder_get_project (placeholder);
GladePointerMode pointer_mode = glade_project_get_pointer_mode (project);
if (pointer_mode == GLADE_POINTER_SELECT)
glade_cursor_set (project, win, GLADE_CURSOR_SELECTOR);
else if (pointer_mode == GLADE_POINTER_ADD_WIDGET)
glade_cursor_set (project, win, GLADE_CURSOR_ADD_WIDGET);
}
static gboolean
glade_placeholder_enter_notify_event (GtkWidget *widget,
GdkEventCrossing *event)
{
glade_placeholder_update_cursor (GLADE_PLACEHOLDER (widget), event->window);
return FALSE;
}
static gboolean static gboolean
glade_placeholder_motion_notify_event (GtkWidget *widget, GdkEventMotion *event) glade_placeholder_motion_notify_event (GtkWidget *widget, GdkEventMotion *event)
{ {
GladePointerMode pointer_mode; glade_placeholder_update_cursor (GLADE_PLACEHOLDER (widget), event->window);
GladeProject *project;
g_return_val_if_fail (GLADE_IS_PLACEHOLDER (widget), FALSE);
project = glade_placeholder_get_project (GLADE_PLACEHOLDER (widget));
pointer_mode = glade_project_get_pointer_mode (project);
if (pointer_mode == GLADE_POINTER_SELECT)
glade_cursor_set (project, event->window, GLADE_CURSOR_SELECTOR);
else if (pointer_mode == GLADE_POINTER_ADD_WIDGET)
glade_cursor_set (project, event->window, GLADE_CURSOR_ADD_WIDGET);
return FALSE; return FALSE;
} }
@ -539,6 +545,7 @@ glade_placeholder_class_init (GladePlaceholderClass *klass)
widget_class->unmap = glade_placeholder_unmap; widget_class->unmap = glade_placeholder_unmap;
widget_class->size_allocate = glade_placeholder_size_allocate; widget_class->size_allocate = glade_placeholder_size_allocate;
widget_class->draw = glade_placeholder_draw; widget_class->draw = glade_placeholder_draw;
widget_class->enter_notify_event = glade_placeholder_enter_notify_event;
widget_class->motion_notify_event = glade_placeholder_motion_notify_event; widget_class->motion_notify_event = glade_placeholder_motion_notify_event;
widget_class->button_press_event = glade_placeholder_button_press; widget_class->button_press_event = glade_placeholder_button_press;
widget_class->popup_menu = glade_placeholder_popup_menu; widget_class->popup_menu = glade_placeholder_popup_menu;
@ -565,8 +572,6 @@ glade_placeholder_class_init (GladePlaceholderClass *klass)
cairo_pattern_set_extend (placeholder_pattern, CAIRO_EXTEND_REPEAT); cairo_pattern_set_extend (placeholder_pattern, CAIRO_EXTEND_REPEAT);
} }
g_free (path); g_free (path);
g_type_class_add_private (klass, sizeof (GladePlaceholderPrivate));
} }
/** /**

View File

@ -44,12 +44,25 @@ template_init (GTypeInstance *instance, gpointer g_class)
gtk_widget_init_template (GTK_WIDGET (instance)); gtk_widget_init_template (GTK_WIDGET (instance));
} }
static void
template_connect_function (GtkBuilder *builder,
GObject *object,
const gchar *signal_name,
const gchar *handler_name,
GObject *connect_object,
GConnectFlags flags,
gpointer data)
{
/* Ignore signal connections */
}
/* Need to associate the class with a template */ /* Need to associate the class with a template */
static void static void
template_class_init (gpointer g_class, gpointer user_data) template_class_init (gpointer g_class, gpointer user_data)
{ {
TypeData *data = user_data; TypeData *data = user_data;
gtk_widget_class_set_template (g_class, data->template_data); gtk_widget_class_set_template (g_class, data->template_data);
gtk_widget_class_set_connect_func (g_class, template_connect_function, NULL, NULL);
} }
static GQuark type_data_quark = 0; static GQuark type_data_quark = 0;
@ -203,8 +216,12 @@ text (GMarkupParseContext *context,
gpointer user_data, gpointer user_data,
GError **error) GError **error)
{ {
gchar *escaped_text = g_markup_escape_text (text, text_len);
ParseData *state = user_data; ParseData *state = user_data;
g_string_append_len (state->xml, text, text_len);
g_string_append_len (state->xml, escaped_text, -1);
g_free (escaped_text);
} }
static void static void

View File

@ -41,14 +41,12 @@ struct _GladePreviewWindowPrivate
gchar *extension; gchar *extension;
}; };
#define GLADE_PREVIEW_WINDOW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GLADE_TYPE_PREVIEW_WINDOW, GladePreviewWindowPrivate)) G_DEFINE_TYPE_WITH_PRIVATE (GladePreviewWindow, glade_preview_window, GTK_TYPE_WINDOW);
G_DEFINE_TYPE (GladePreviewWindow, glade_preview_window, GTK_TYPE_WINDOW);
static void static void
glade_preview_window_init (GladePreviewWindow *window) glade_preview_window_init (GladePreviewWindow *window)
{ {
GladePreviewWindowPrivate *priv = GLADE_PREVIEW_WINDOW_GET_PRIVATE (window); GladePreviewWindowPrivate *priv = glade_preview_window_get_instance_private (window);
GtkWidget *content_area; GtkWidget *content_area;
window->priv = priv; window->priv = priv;
@ -60,12 +58,15 @@ glade_preview_window_init (GladePreviewWindow *window)
priv->info = gtk_info_bar_new (); priv->info = gtk_info_bar_new ();
priv->message_label = gtk_label_new (""); priv->message_label = gtk_label_new ("");
gtk_label_set_line_wrap (GTK_LABEL (priv->message_label), TRUE); gtk_label_set_line_wrap (GTK_LABEL (priv->message_label), TRUE);
gtk_label_set_selectable (GTK_LABEL (priv->message_label), TRUE);
gtk_widget_set_valign (priv->info, GTK_ALIGN_END); gtk_widget_set_valign (priv->info, GTK_ALIGN_END);
gtk_widget_set_vexpand (priv->info, FALSE); gtk_widget_set_vexpand (priv->info, FALSE);
content_area = gtk_info_bar_get_content_area (GTK_INFO_BAR (priv->info)); content_area = gtk_info_bar_get_content_area (GTK_INFO_BAR (priv->info));
gtk_container_add (GTK_CONTAINER (content_area), priv->message_label); gtk_container_add (GTK_CONTAINER (content_area), priv->message_label);
gtk_info_bar_set_show_close_button (GTK_INFO_BAR (priv->info), TRUE);
g_signal_connect (priv->info, "response", G_CALLBACK (gtk_widget_hide), NULL); g_signal_connect (priv->info, "response", G_CALLBACK (gtk_widget_hide), NULL);
gtk_box_pack_start (GTK_BOX (priv->box), priv->info, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (priv->box), priv->info, FALSE, FALSE, 0);
@ -78,7 +79,7 @@ glade_preview_window_init (GladePreviewWindow *window)
static void static void
glade_preview_window_finalize (GObject *object) glade_preview_window_finalize (GObject *object)
{ {
GladePreviewWindowPrivate *priv = GLADE_PREVIEW_WINDOW_GET_PRIVATE (object); GladePreviewWindowPrivate *priv = GLADE_PREVIEW_WINDOW (object)->priv;
g_free (priv->css_file); g_free (priv->css_file);
g_clear_object (&priv->css_provider); g_clear_object (&priv->css_provider);
@ -157,8 +158,6 @@ glade_preview_window_class_init (GladePreviewWindowClass *klass)
GObjectClass *object_class = G_OBJECT_CLASS (klass); GObjectClass *object_class = G_OBJECT_CLASS (klass);
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
g_type_class_add_private (klass, sizeof (GladePreviewWindowPrivate));
object_class->finalize = glade_preview_window_finalize; object_class->finalize = glade_preview_window_finalize;
widget_class->realize = glade_preview_window_realize; widget_class->realize = glade_preview_window_realize;

View File

@ -62,9 +62,7 @@ struct _GladePreviewPrivate
GPid pid; /* Pid of the corresponding glade-previewer process */ GPid pid; /* Pid of the corresponding glade-previewer process */
}; };
G_DEFINE_TYPE (GladePreview, glade_preview, G_TYPE_OBJECT); G_DEFINE_TYPE_WITH_PRIVATE (GladePreview, glade_preview, G_TYPE_OBJECT);
#define GLADE_PREVIEW_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GLADE_TYPE_PREVIEW, GladePreviewPrivate))
enum enum
{ {
@ -162,8 +160,6 @@ glade_preview_class_init (GladePreviewClass *klass)
G_SIGNAL_RUN_FIRST, G_SIGNAL_RUN_FIRST,
0, NULL, NULL, 0, NULL, NULL,
g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
g_type_class_add_private (klass, sizeof (GladePreviewPrivate));
} }
static void static void
@ -171,7 +167,7 @@ glade_preview_init (GladePreview *self)
{ {
GladePreviewPrivate *priv; GladePreviewPrivate *priv;
self->priv = priv = GLADE_PREVIEW_GET_PRIVATE (self); self->priv = priv = glade_preview_get_instance_private (self);
priv->channel = NULL; priv->channel = NULL;
} }

View File

@ -540,6 +540,7 @@ Authors:
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="active">0</property> <property name="active">0</property>
<items> <items>
<item id="other" translatable="yes">Other</item>
<item id="gplv2" translatable="yes">GNU GPL version 2</item> <item id="gplv2" translatable="yes">GNU GPL version 2</item>
<item id="gplv3" translatable="yes">GNU GPL version 3</item> <item id="gplv3" translatable="yes">GNU GPL version 3</item>
<item id="lgplv2" translatable="yes">GNU LGPL version 2.1</item> <item id="lgplv2" translatable="yes">GNU LGPL version 2.1</item>
@ -549,7 +550,6 @@ Authors:
<item id="apache2" translatable="yes">Apache 2</item> <item id="apache2" translatable="yes">Apache 2</item>
<item id="mit" translatable="yes">MIT</item> <item id="mit" translatable="yes">MIT</item>
<item id="all_permissive" translatable="yes">GNU All permissive</item> <item id="all_permissive" translatable="yes">GNU All permissive</item>
<item id="other" translatable="yes">Other</item>
</items> </items>
<signal name="changed" handler="on_license_comboboxtext_changed" swapped="no"/> <signal name="changed" handler="on_license_comboboxtext_changed" swapped="no"/>
</object> </object>

View File

@ -214,6 +214,7 @@ static GladeIDAllocator *unsaved_number_allocator = NULL;
((GladeProject*)(project))->priv->stamp == (iter)->stamp) ((GladeProject*)(project))->priv->stamp == (iter)->stamp)
G_DEFINE_TYPE_WITH_CODE (GladeProject, glade_project, G_TYPE_OBJECT, G_DEFINE_TYPE_WITH_CODE (GladeProject, glade_project, G_TYPE_OBJECT,
G_ADD_PRIVATE (GladeProject)
G_IMPLEMENT_INTERFACE (GTK_TYPE_TREE_MODEL, G_IMPLEMENT_INTERFACE (GTK_TYPE_TREE_MODEL,
glade_project_model_iface_init) glade_project_model_iface_init)
G_IMPLEMENT_INTERFACE (GTK_TYPE_TREE_DRAG_SOURCE, G_IMPLEMENT_INTERFACE (GTK_TYPE_TREE_DRAG_SOURCE,
@ -646,7 +647,8 @@ glade_project_destroy_preview (gpointer data)
static void static void
glade_project_changed_impl (GladeProject *project, glade_project_changed_impl (GladeProject *project,
GladeCommand *command, gboolean forward) GladeCommand *command,
gboolean forward)
{ {
if (!project->priv->loading) if (!project->priv->loading)
{ {
@ -696,9 +698,7 @@ glade_project_init (GladeProject *project)
GladeProjectPrivate *priv; GladeProjectPrivate *priv;
GList *list; GList *list;
project->priv = priv = project->priv = priv = glade_project_get_instance_private (project);
G_TYPE_INSTANCE_GET_PRIVATE ((project), GLADE_TYPE_PROJECT,
GladeProjectPrivate);
priv->path = NULL; priv->path = NULL;
priv->model = GTK_TREE_MODEL (gtk_tree_store_new (1, G_TYPE_OBJECT)); priv->model = GTK_TREE_MODEL (gtk_tree_store_new (1, G_TYPE_OBJECT));
@ -1033,8 +1033,6 @@ glade_project_class_init (GladeProjectClass *klass)
/* Install all properties */ /* Install all properties */
g_object_class_install_properties (object_class, N_PROPERTIES, glade_project_props); g_object_class_install_properties (object_class, N_PROPERTIES, glade_project_props);
g_type_class_add_private (klass, sizeof (GladeProjectPrivate));
} }
/****************************************************************** /******************************************************************
@ -1402,7 +1400,8 @@ gp_comment_get_content (GladeXmlNode *comment)
static gchar * static gchar *
glade_project_read_requires_from_comment (GladeXmlNode *comment, glade_project_read_requires_from_comment (GladeXmlNode *comment,
guint16 *major, guint16 *minor) guint16 *major,
guint16 *minor)
{ {
gchar *value, *requires, *required_lib = NULL; gchar *value, *requires, *required_lib = NULL;
@ -1430,7 +1429,8 @@ glade_project_read_requires_from_comment (GladeXmlNode *comment,
static gboolean static gboolean
glade_project_read_requires (GladeProject *project, glade_project_read_requires (GladeProject *project,
GladeXmlNode *root_node, GladeXmlNode *root_node,
const gchar *path, gboolean *has_gtk_dep) const gchar *path,
gboolean *has_gtk_dep)
{ {
GString *string = g_string_new (NULL); GString *string = g_string_new (NULL);
@ -2413,7 +2413,13 @@ glade_project_get_graph_deps (GladeProject *project)
for (ll = _glade_widget_peek_prop_refs (predecessor); ll; ll = g_list_next (ll)) for (ll = _glade_widget_peek_prop_refs (predecessor); ll; ll = g_list_next (ll))
{ {
GladeWidget *successor = glade_property_get_widget (ll->data); GladeWidget *successor = glade_property_get_widget (ll->data);
GladeWidget *successor_top = glade_widget_get_toplevel (successor); GladeWidget *successor_top;
/* Ignore widgets that are not part of this project. (ie removed ones) */
if (glade_widget_get_project (successor) != project)
continue;
successor_top = glade_widget_get_toplevel (successor);
/* Ignore objects within the same toplevel */ /* Ignore objects within the same toplevel */
if (predecessor_top != successor_top) if (predecessor_top != successor_top)
@ -2660,9 +2666,7 @@ glade_project_write (GladeProject *project)
* Returns: %TRUE on success, %FALSE on failure * Returns: %TRUE on success, %FALSE on failure
*/ */
gboolean gboolean
glade_project_backup (GladeProject *project, glade_project_backup (GladeProject *project, const gchar *path, GError **error)
const gchar *path,
GError **error)
{ {
gchar *canonical_path; gchar *canonical_path;
gchar *destination_path; gchar *destination_path;
@ -2691,7 +2695,6 @@ glade_project_backup (GladeProject *project,
/** /**
* glade_project_autosave: * glade_project_autosave:
* @project: a #GladeProject * @project: a #GladeProject
* @path: location to save glade file
* @error: an error from the G_FILE_ERROR domain. * @error: an error from the G_FILE_ERROR domain.
* *
* Saves an autosave snapshot of @project to it's currently set path * Saves an autosave snapshot of @project to it's currently set path
@ -2701,8 +2704,7 @@ glade_project_backup (GladeProject *project,
* Returns: %TRUE on success, %FALSE on failure * Returns: %TRUE on success, %FALSE on failure
*/ */
gboolean gboolean
glade_project_autosave (GladeProject *project, glade_project_autosave (GladeProject *project, GError **error)
GError **error)
{ {
GladeXmlContext *context; GladeXmlContext *context;
@ -3259,7 +3261,9 @@ glade_project_verify_dialog (GladeProject *project,
gboolean gboolean
glade_project_verify (GladeProject *project, gboolean saving, GladeVerifyFlags flags) glade_project_verify (GladeProject *project,
gboolean saving,
GladeVerifyFlags flags)
{ {
GString *string = g_string_new (NULL); GString *string = g_string_new (NULL);
GList *list; GList *list;
@ -3468,7 +3472,6 @@ glade_project_verify_project_for_ui (GladeProject *project)
/** /**
* glade_project_get_widget_by_name: * glade_project_get_widget_by_name:
* @project: a #GladeProject * @project: a #GladeProject
* @ancestor: The toplevel project object to search under
* @name: The user visible name of the widget we are looking for * @name: The user visible name of the widget we are looking for
* *
* Searches under @ancestor in @project looking for a #GladeWidget named @name. * Searches under @ancestor in @project looking for a #GladeWidget named @name.
@ -3476,8 +3479,7 @@ glade_project_verify_project_for_ui (GladeProject *project)
* Returns: a pointer to the widget, %NULL if the widget does not exist * Returns: a pointer to the widget, %NULL if the widget does not exist
*/ */
GladeWidget * GladeWidget *
glade_project_get_widget_by_name (GladeProject *project, glade_project_get_widget_by_name (GladeProject *project, const gchar *name)
const gchar *name)
{ {
GList *list; GList *list;
@ -4026,8 +4028,7 @@ glade_project_get_pointer_mode (GladeProject *project)
} }
void void
glade_project_set_template (GladeProject *project, glade_project_set_template (GladeProject *project, GladeWidget *widget)
GladeWidget *widget)
{ {
g_return_if_fail (GLADE_IS_PROJECT (project)); g_return_if_fail (GLADE_IS_PROJECT (project));
g_return_if_fail (widget == NULL || GLADE_IS_WIDGET (widget)); g_return_if_fail (widget == NULL || GLADE_IS_WIDGET (widget));
@ -5009,7 +5010,7 @@ glade_project_get_css_provider_path (GladeProject *project)
* Command Central * * Command Central *
*************************************************/ *************************************************/
static gboolean static gboolean
widget_contains_unknown_type (GladeWidget * widget) widget_contains_unknown_type (GladeWidget *widget)
{ {
GList *list, *l; GList *list, *l;
GObject *object; GObject *object;

View File

@ -290,12 +290,12 @@ glade_property_label_load (GladeEditable *editable,
} }
static void static void
glade_property_label_set_show_name (GladeEditable * editable, gboolean show_name) glade_property_label_set_show_name (GladeEditable *editable, gboolean show_name)
{ {
} }
static void static void
glade_property_label_editable_init (GladeEditableIface * iface) glade_property_label_editable_init (GladeEditableIface *iface)
{ {
parent_editable_iface = g_type_default_interface_peek (GLADE_TYPE_EDITABLE); parent_editable_iface = g_type_default_interface_peek (GLADE_TYPE_EDITABLE);

View File

@ -83,25 +83,23 @@ static guint glade_property_shell_signals[LAST_SIGNAL] = { 0, };
static GladeEditableIface *parent_editable_iface; static GladeEditableIface *parent_editable_iface;
G_DEFINE_TYPE_WITH_CODE (GladePropertyShell, glade_property_shell, GTK_TYPE_BOX, G_DEFINE_TYPE_WITH_CODE (GladePropertyShell, glade_property_shell, GTK_TYPE_BOX,
G_ADD_PRIVATE (GladePropertyShell)
G_IMPLEMENT_INTERFACE (GLADE_TYPE_EDITABLE, G_IMPLEMENT_INTERFACE (GLADE_TYPE_EDITABLE,
glade_property_shell_editable_init)); glade_property_shell_editable_init));
static void static void
glade_property_shell_init (GladePropertyShell *shell) glade_property_shell_init (GladePropertyShell *shell)
{ {
shell->priv = shell->priv = glade_property_shell_get_instance_private (shell);
G_TYPE_INSTANCE_GET_PRIVATE (shell,
GLADE_TYPE_PROPERTY_SHELL,
GladePropertyShellPrivate);
shell->priv->packing = FALSE; shell->priv->packing = FALSE;
shell->priv->use_command = TRUE; shell->priv->use_command = TRUE;
} }
static void static void
glade_property_shell_class_init (GladePropertyShellClass *class) glade_property_shell_class_init (GladePropertyShellClass *klass)
{ {
GObjectClass *gobject_class = G_OBJECT_CLASS (class); GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
gobject_class->finalize = glade_property_shell_finalize; gobject_class->finalize = glade_property_shell_finalize;
gobject_class->set_property = glade_property_shell_set_real_property; gobject_class->set_property = glade_property_shell_set_real_property;
@ -168,8 +166,6 @@ glade_property_shell_class_init (GladePropertyShellClass *class)
0, NULL, NULL, 0, NULL, NULL,
_glade_marshal_VOID__POINTER, _glade_marshal_VOID__POINTER,
G_TYPE_NONE, 1, G_TYPE_POINTER); G_TYPE_NONE, 1, G_TYPE_POINTER);
g_type_class_add_private (gobject_class, sizeof (GladePropertyShellPrivate));
} }
@ -395,12 +391,12 @@ glade_property_shell_load (GladeEditable *editable,
} }
static void static void
glade_property_shell_set_show_name (GladeEditable * editable, gboolean show_name) glade_property_shell_set_show_name (GladeEditable *editable, gboolean show_name)
{ {
} }
static void static void
glade_property_shell_editable_init (GladeEditableIface * iface) glade_property_shell_editable_init (GladeEditableIface *iface)
{ {
parent_editable_iface = g_type_default_interface_peek (GLADE_TYPE_EDITABLE); parent_editable_iface = g_type_default_interface_peek (GLADE_TYPE_EDITABLE);

View File

@ -136,13 +136,13 @@ enum
static GParamSpec *properties[N_PROPERTIES]; static GParamSpec *properties[N_PROPERTIES];
static guint glade_property_signals[LAST_SIGNAL] = { 0 }; static guint glade_property_signals[LAST_SIGNAL] = { 0 };
static GObjectClass *parent_class = NULL; static GObjectClass *glade_property_parent_class = NULL;
/******************************************************************************* /*******************************************************************************
GladeProperty class methods GladeProperty class methods
*******************************************************************************/ *******************************************************************************/
static GladeProperty * static GladeProperty *
glade_property_dup_impl (GladeProperty * template_prop, GladeWidget * widget) glade_property_dup_impl (GladeProperty *template_prop, GladeWidget *widget)
{ {
GladeProperty *property; GladeProperty *property;
@ -178,8 +178,8 @@ glade_property_dup_impl (GladeProperty * template_prop, GladeWidget * widget)
} }
static gboolean static gboolean
glade_property_equals_value_impl (GladeProperty * property, glade_property_equals_value_impl (GladeProperty *property,
const GValue * value) const GValue *value)
{ {
return !glade_property_class_compare (property->priv->klass, property->priv->value, return !glade_property_class_compare (property->priv->klass, property->priv->value,
value); value);
@ -187,9 +187,9 @@ glade_property_equals_value_impl (GladeProperty * property,
static void static void
glade_property_update_prop_refs (GladeProperty * property, glade_property_update_prop_refs (GladeProperty *property,
const GValue * old_value, const GValue *old_value,
const GValue * new_value) const GValue *new_value)
{ {
GladeWidget *gold, *gnew; GladeWidget *gold, *gnew;
GObject *old_object, *new_object; GObject *old_object, *new_object;
@ -247,7 +247,7 @@ glade_property_update_prop_refs (GladeProperty * property,
} }
static gboolean static gboolean
glade_property_verify (GladeProperty * property, const GValue * value) glade_property_verify (GladeProperty *property, const GValue *value)
{ {
gboolean ret = FALSE; gboolean ret = FALSE;
GladeWidget *parent; GladeWidget *parent;
@ -270,7 +270,7 @@ glade_property_verify (GladeProperty * property, const GValue * value)
} }
static void static void
glade_property_fix_state (GladeProperty * property) glade_property_fix_state (GladeProperty *property)
{ {
property->priv->state = GLADE_STATE_NORMAL; property->priv->state = GLADE_STATE_NORMAL;
@ -297,7 +297,7 @@ glade_property_fix_state (GladeProperty * property)
static gboolean static gboolean
glade_property_set_value_impl (GladeProperty * property, const GValue * value) glade_property_set_value_impl (GladeProperty *property, const GValue *value)
{ {
GladeProject *project = property->priv->widget ? GladeProject *project = property->priv->widget ?
glade_widget_get_project (property->priv->widget) : NULL; glade_widget_get_project (property->priv->widget) : NULL;
@ -406,7 +406,7 @@ glade_property_set_value_impl (GladeProperty * property, const GValue * value)
} }
static void static void
glade_property_get_value_impl (GladeProperty * property, GValue * value) glade_property_get_value_impl (GladeProperty *property, GValue *value)
{ {
GParamSpec *pspec; GParamSpec *pspec;
@ -417,70 +417,71 @@ glade_property_get_value_impl (GladeProperty * property, GValue * value)
} }
static void static void
glade_property_sync_impl (GladeProperty * property) glade_property_sync_impl (GladeProperty *property)
{ {
GladePropertyPrivate *priv = property->priv;
GladePropertyClass *klass = priv->klass;
const GValue *value;
const gchar *id;
/* Heh, here are the many reasons not to /* Heh, here are the many reasons not to
* sync a property ;-) * sync a property ;-)
*/ */
if (/* the class can be NULL during object, if (/* the class can be NULL during object,
* construction this is just a temporary state */ * construction this is just a temporary state */
property->priv->klass == NULL || klass == NULL ||
/* optional properties that are disabled */
property->priv->enabled == FALSE ||
/* explicit "never sync" flag */ /* explicit "never sync" flag */
glade_property_class_get_ignore (property->priv->klass) || glade_property_class_get_ignore (klass) ||
/* recursion guards */ /* recursion guards */
property->priv->syncing >= property->priv->sync_tolerance || priv->syncing >= priv->sync_tolerance ||
/* No widget owns this property yet */ /* No widget owns this property yet */
property->priv->widget == NULL) priv->widget == NULL)
return; return;
id = glade_property_class_id (klass);
/* Only the properties from widget->properties should affect the runtime widget. /* Only the properties from widget->properties should affect the runtime widget.
* (other properties may be used for convenience in the plugin). * (other properties may be used for convenience in the plugin).
*/ */
if ((glade_property_class_get_is_packing (property->priv->klass) && if ((glade_property_class_get_is_packing (klass) &&
!glade_widget_get_pack_property (property->priv->widget, !glade_widget_get_pack_property (priv->widget, id))
glade_property_class_id (property->priv->klass))) || !glade_widget_get_property (priv->widget, id))
|| !glade_widget_get_property (property->priv->widget,
glade_property_class_id (property->priv->klass)))
return; return;
property->priv->syncing++; priv->syncing++;
/* optional properties that are disabled get the default runtime value */
value = (priv->enabled) ? priv->value : glade_property_class_get_default (klass);
/* In the case of construct_only, the widget instance must be rebuilt /* In the case of construct_only, the widget instance must be rebuilt
* to apply the property * to apply the property
*/ */
if (glade_property_class_get_construct_only (property->priv->klass) && if (glade_property_class_get_construct_only (klass) && priv->syncing == 1)
property->priv->syncing == 1)
{ {
/* Virtual properties can be construct only, in which /* Virtual properties can be construct only, in which
* case they are allowed to trigger a rebuild, and in * case they are allowed to trigger a rebuild, and in
* the process are allowed to get "synced" after the * the process are allowed to get "synced" after the
* instance is rebuilt. * instance is rebuilt.
*/ */
if (glade_property_class_get_virtual (property->priv->klass)) if (glade_property_class_get_virtual (klass))
property->priv->sync_tolerance++; priv->sync_tolerance++;
glade_widget_rebuild (property->priv->widget); glade_widget_rebuild (priv->widget);
if (glade_property_class_get_virtual (property->priv->klass)) if (glade_property_class_get_virtual (klass))
property->priv->sync_tolerance--; priv->sync_tolerance--;
} }
else if (glade_property_class_get_is_packing (property->priv->klass)) else if (glade_property_class_get_is_packing (klass))
glade_widget_child_set_property (glade_widget_get_parent (property->priv->widget), glade_widget_child_set_property (glade_widget_get_parent (priv->widget),
property->priv->widget, priv->widget, id, value);
glade_property_class_id (property->priv->klass),
property->priv->value);
else else
glade_widget_object_set_property (property->priv->widget, glade_widget_object_set_property (priv->widget, id, value);
glade_property_class_id (property->priv->klass),
property->priv->value);
property->priv->syncing--; priv->syncing--;
} }
static void static void
glade_property_load_impl (GladeProperty * property) glade_property_load_impl (GladeProperty *property)
{ {
GObject *object; GObject *object;
GObjectClass *oclass; GObjectClass *oclass;
@ -508,9 +509,10 @@ glade_property_load_impl (GladeProperty * property)
GObjectClass & Object Construction GObjectClass & Object Construction
*******************************************************************************/ *******************************************************************************/
static void static void
glade_property_set_real_property (GObject * object, glade_property_set_real_property (GObject *object,
guint prop_id, guint prop_id,
const GValue * value, GParamSpec * pspec) const GValue *value,
GParamSpec *pspec)
{ {
GladeProperty *property = GLADE_PROPERTY (object); GladeProperty *property = GLADE_PROPERTY (object);
@ -542,9 +544,10 @@ glade_property_set_real_property (GObject * object,
} }
static void static void
glade_property_get_real_property (GObject * object, glade_property_get_real_property (GObject *object,
guint prop_id, guint prop_id,
GValue * value, GParamSpec * pspec) GValue *value,
GParamSpec *pspec)
{ {
GladeProperty *property = GLADE_PROPERTY (object); GladeProperty *property = GLADE_PROPERTY (object);
@ -579,7 +582,7 @@ glade_property_get_real_property (GObject * object,
} }
static void static void
glade_property_finalize (GObject * object) glade_property_finalize (GObject *object)
{ {
GladeProperty *property = GLADE_PROPERTY (object); GladeProperty *property = GLADE_PROPERTY (object);
@ -597,11 +600,11 @@ glade_property_finalize (GObject * object)
if (property->priv->insensitive_tooltip) if (property->priv->insensitive_tooltip)
g_free (property->priv->insensitive_tooltip); g_free (property->priv->insensitive_tooltip);
G_OBJECT_CLASS (parent_class)->finalize (object); G_OBJECT_CLASS (glade_property_parent_class)->finalize (object);
} }
static void static void
glade_property_init (GladeProperty * property) glade_property_init (GladeProperty *property)
{ {
property->priv = G_TYPE_INSTANCE_GET_PRIVATE (property, property->priv = G_TYPE_INSTANCE_GET_PRIVATE (property,
GLADE_TYPE_PROPERTY, GLADE_TYPE_PROPERTY,
@ -620,7 +623,7 @@ glade_property_klass_init (GladePropertyKlass * prop_class)
GObjectClass *object_class; GObjectClass *object_class;
g_return_if_fail (prop_class != NULL); g_return_if_fail (prop_class != NULL);
parent_class = g_type_class_peek_parent (prop_class); glade_property_parent_class = g_type_class_peek_parent (prop_class);
object_class = G_OBJECT_CLASS (prop_class); object_class = G_OBJECT_CLASS (prop_class);
/* GObjectClass */ /* GObjectClass */
@ -757,8 +760,9 @@ glade_property_get_type (void)
* Returns: The newly created #GladeProperty * Returns: The newly created #GladeProperty
*/ */
GladeProperty * GladeProperty *
glade_property_new (GladePropertyClass * klass, glade_property_new (GladePropertyClass *klass,
GladeWidget * widget, GValue * value) GladeWidget *widget,
GValue *value)
{ {
GladeProperty *property; GladeProperty *property;
@ -793,14 +797,14 @@ glade_property_new (GladePropertyClass * klass,
* Returns: A newly duplicated property based on the new widget * Returns: A newly duplicated property based on the new widget
*/ */
GladeProperty * GladeProperty *
glade_property_dup (GladeProperty * template_prop, GladeWidget * widget) glade_property_dup (GladeProperty *template_prop, GladeWidget *widget)
{ {
g_return_val_if_fail (GLADE_IS_PROPERTY (template_prop), NULL); g_return_val_if_fail (GLADE_IS_PROPERTY (template_prop), NULL);
return GLADE_PROPERTY_GET_KLASS (template_prop)->dup (template_prop, widget); return GLADE_PROPERTY_GET_KLASS (template_prop)->dup (template_prop, widget);
} }
static void static void
glade_property_reset_common (GladeProperty * property, gboolean original) glade_property_reset_common (GladeProperty *property, gboolean original)
{ {
const GValue *value; const GValue *value;
@ -821,7 +825,7 @@ glade_property_reset_common (GladeProperty * property, gboolean original)
* Resets this property to its default value * Resets this property to its default value
*/ */
void void
glade_property_reset (GladeProperty * property) glade_property_reset (GladeProperty *property)
{ {
glade_property_reset_common (property, FALSE); glade_property_reset_common (property, FALSE);
} }
@ -833,13 +837,13 @@ glade_property_reset (GladeProperty * property)
* Resets this property to its original default value * Resets this property to its original default value
*/ */
void void
glade_property_original_reset (GladeProperty * property) glade_property_original_reset (GladeProperty *property)
{ {
glade_property_reset_common (property, TRUE); glade_property_reset_common (property, TRUE);
} }
static gboolean static gboolean
glade_property_default_common (GladeProperty * property, gboolean orig) glade_property_default_common (GladeProperty *property, gboolean orig)
{ {
const GValue *value; const GValue *value;
@ -860,7 +864,7 @@ glade_property_default_common (GladeProperty * property, gboolean orig)
* Returns: Whether this property is at its default value * Returns: Whether this property is at its default value
*/ */
gboolean gboolean
glade_property_default (GladeProperty * property) glade_property_default (GladeProperty *property)
{ {
return glade_property_default_common (property, FALSE); return glade_property_default_common (property, FALSE);
} }
@ -872,7 +876,7 @@ glade_property_default (GladeProperty * property)
* Returns: Whether this property is at its original default value * Returns: Whether this property is at its original default value
*/ */
gboolean gboolean
glade_property_original_default (GladeProperty * property) glade_property_original_default (GladeProperty *property)
{ {
return glade_property_default_common (property, TRUE); return glade_property_default_common (property, TRUE);
} }
@ -885,7 +889,7 @@ glade_property_original_default (GladeProperty * property)
* Returns: Whether this property is equal to the value provided * Returns: Whether this property is equal to the value provided
*/ */
gboolean gboolean
glade_property_equals_value (GladeProperty * property, const GValue * value) glade_property_equals_value (GladeProperty *property, const GValue *value)
{ {
g_return_val_if_fail (GLADE_IS_PROPERTY (property), FALSE); g_return_val_if_fail (GLADE_IS_PROPERTY (property), FALSE);
return GLADE_PROPERTY_GET_KLASS (property)->equals_value (property, value); return GLADE_PROPERTY_GET_KLASS (property)->equals_value (property, value);
@ -899,7 +903,7 @@ glade_property_equals_value (GladeProperty * property, const GValue * value)
* Returns: Whether this property is equal to the value provided * Returns: Whether this property is equal to the value provided
*/ */
static gboolean static gboolean
glade_property_equals_va_list (GladeProperty * property, va_list vl) glade_property_equals_va_list (GladeProperty *property, va_list vl)
{ {
GValue *value; GValue *value;
gboolean ret; gboolean ret;
@ -923,7 +927,7 @@ glade_property_equals_va_list (GladeProperty * property, va_list vl)
* Returns: Whether this property is equal to the value provided * Returns: Whether this property is equal to the value provided
*/ */
gboolean gboolean
glade_property_equals (GladeProperty * property, ...) glade_property_equals (GladeProperty *property, ...)
{ {
va_list vl; va_list vl;
gboolean ret; gboolean ret;
@ -947,7 +951,7 @@ glade_property_equals (GladeProperty * property, ...)
* Returns: Whether the property was successfully set. * Returns: Whether the property was successfully set.
*/ */
gboolean gboolean
glade_property_set_value (GladeProperty * property, const GValue * value) glade_property_set_value (GladeProperty *property, const GValue *value)
{ {
g_return_val_if_fail (GLADE_IS_PROPERTY (property), FALSE); g_return_val_if_fail (GLADE_IS_PROPERTY (property), FALSE);
g_return_val_if_fail (value != NULL, FALSE); g_return_val_if_fail (value != NULL, FALSE);
@ -962,7 +966,7 @@ glade_property_set_value (GladeProperty * property, const GValue * value)
* Sets the property's value * Sets the property's value
*/ */
gboolean gboolean
glade_property_set_va_list (GladeProperty * property, va_list vl) glade_property_set_va_list (GladeProperty *property, va_list vl)
{ {
GValue *value; GValue *value;
gboolean success; gboolean success;
@ -987,7 +991,7 @@ glade_property_set_va_list (GladeProperty * property, va_list vl)
* Sets the property's value (in a convenient way) * Sets the property's value (in a convenient way)
*/ */
gboolean gboolean
glade_property_set (GladeProperty * property, ...) glade_property_set (GladeProperty *property, ...)
{ {
va_list vl; va_list vl;
gboolean success; gboolean success;
@ -1009,7 +1013,7 @@ glade_property_set (GladeProperty * property, ...)
* Retrieve the property value * Retrieve the property value
*/ */
void void
glade_property_get_value (GladeProperty * property, GValue * value) glade_property_get_value (GladeProperty *property, GValue *value)
{ {
g_return_if_fail (GLADE_IS_PROPERTY (property)); g_return_if_fail (GLADE_IS_PROPERTY (property));
g_return_if_fail (value != NULL); g_return_if_fail (value != NULL);
@ -1024,7 +1028,7 @@ glade_property_get_value (GladeProperty * property, GValue * value)
* Retrieve the default property value * Retrieve the default property value
*/ */
void void
glade_property_get_default (GladeProperty * property, GValue * value) glade_property_get_default (GladeProperty *property, GValue *value)
{ {
GParamSpec *pspec; GParamSpec *pspec;
@ -1044,7 +1048,7 @@ glade_property_get_default (GladeProperty * property, GValue * value)
* Retrieve the property value * Retrieve the property value
*/ */
void void
glade_property_get_va_list (GladeProperty * property, va_list vl) glade_property_get_va_list (GladeProperty *property, va_list vl)
{ {
g_return_if_fail (GLADE_IS_PROPERTY (property)); g_return_if_fail (GLADE_IS_PROPERTY (property));
glade_property_class_set_vl_from_gvalue (property->priv->klass, property->priv->value, glade_property_class_set_vl_from_gvalue (property->priv->klass, property->priv->value,
@ -1059,7 +1063,7 @@ glade_property_get_va_list (GladeProperty * property, va_list vl)
* Retrieve the property value * Retrieve the property value
*/ */
void void
glade_property_get (GladeProperty * property, ...) glade_property_get (GladeProperty *property, ...)
{ {
va_list vl; va_list vl;
@ -1077,7 +1081,7 @@ glade_property_get (GladeProperty * property, ...)
* Synchronize the object with this property * Synchronize the object with this property
*/ */
void void
glade_property_sync (GladeProperty * property) glade_property_sync (GladeProperty *property)
{ {
g_return_if_fail (GLADE_IS_PROPERTY (property)); g_return_if_fail (GLADE_IS_PROPERTY (property));
GLADE_PROPERTY_GET_KLASS (property)->sync (property); GLADE_PROPERTY_GET_KLASS (property)->sync (property);
@ -1090,7 +1094,7 @@ glade_property_sync (GladeProperty * property)
* Loads the value of @property from the coresponding object instance * Loads the value of @property from the coresponding object instance
*/ */
void void
glade_property_load (GladeProperty * property) glade_property_load (GladeProperty *property)
{ {
g_return_if_fail (GLADE_IS_PROPERTY (property)); g_return_if_fail (GLADE_IS_PROPERTY (property));
GLADE_PROPERTY_GET_KLASS (property)->load (property); GLADE_PROPERTY_GET_KLASS (property)->load (property);
@ -1110,8 +1114,9 @@ glade_property_load (GladeProperty * property)
* completely loaded * completely loaded
*/ */
void void
glade_property_read (GladeProperty * property, glade_property_read (GladeProperty *property,
GladeProject * project, GladeXmlNode * prop) GladeProject *project,
GladeXmlNode *prop)
{ {
GValue *gvalue = NULL; GValue *gvalue = NULL;
gchar /* *id, *name, */ * value; gchar /* *id, *name, */ * value;
@ -1177,8 +1182,9 @@ glade_property_read (GladeProperty * property,
* Write @property to @node * Write @property to @node
*/ */
void void
glade_property_write (GladeProperty * property, glade_property_write (GladeProperty *property,
GladeXmlContext * context, GladeXmlNode * node) GladeXmlContext *context,
GladeXmlNode *node)
{ {
GladeXmlNode *prop_node; GladeXmlNode *prop_node;
gchar *name, *value; gchar *name, *value;
@ -1257,7 +1263,7 @@ glade_property_write (GladeProperty * property,
* or #GParamSpecObject type property. * or #GParamSpecObject type property.
*/ */
void void
glade_property_add_object (GladeProperty * property, GObject * object) glade_property_add_object (GladeProperty *property, GObject *object)
{ {
GList *list = NULL, *new_list = NULL; GList *list = NULL, *new_list = NULL;
GParamSpec *pspec; GParamSpec *pspec;
@ -1300,7 +1306,7 @@ glade_property_add_object (GladeProperty * property, GObject * object)
* or #GParamSpecObject type property. * or #GParamSpecObject type property.
*/ */
void void
glade_property_remove_object (GladeProperty * property, GObject * object) glade_property_remove_object (GladeProperty *property, GObject *object)
{ {
GList *list = NULL, *new_list = NULL; GList *list = NULL, *new_list = NULL;
GParamSpec *pspec; GParamSpec *pspec;
@ -1346,7 +1352,7 @@ glade_property_get_class (GladeProperty *property)
/* Parameters for translatable properties. */ /* Parameters for translatable properties. */
void void
glade_property_i18n_set_comment (GladeProperty * property, const gchar * str) glade_property_i18n_set_comment (GladeProperty *property, const gchar *str)
{ {
g_return_if_fail (GLADE_IS_PROPERTY (property)); g_return_if_fail (GLADE_IS_PROPERTY (property));
if (property->priv->i18n_comment) if (property->priv->i18n_comment)
@ -1364,7 +1370,7 @@ glade_property_i18n_get_comment (GladeProperty * property)
} }
void void
glade_property_i18n_set_context (GladeProperty * property, const gchar * str) glade_property_i18n_set_context (GladeProperty *property, const gchar *str)
{ {
g_return_if_fail (GLADE_IS_PROPERTY (property)); g_return_if_fail (GLADE_IS_PROPERTY (property));
if (property->priv->i18n_context) if (property->priv->i18n_context)
@ -1375,14 +1381,14 @@ glade_property_i18n_set_context (GladeProperty * property, const gchar * str)
} }
G_CONST_RETURN gchar * G_CONST_RETURN gchar *
glade_property_i18n_get_context (GladeProperty * property) glade_property_i18n_get_context (GladeProperty *property)
{ {
g_return_val_if_fail (GLADE_IS_PROPERTY (property), NULL); g_return_val_if_fail (GLADE_IS_PROPERTY (property), NULL);
return property->priv->i18n_context; return property->priv->i18n_context;
} }
void void
glade_property_i18n_set_translatable (GladeProperty * property, glade_property_i18n_set_translatable (GladeProperty *property,
gboolean translatable) gboolean translatable)
{ {
g_return_if_fail (GLADE_IS_PROPERTY (property)); g_return_if_fail (GLADE_IS_PROPERTY (property));
@ -1391,15 +1397,16 @@ glade_property_i18n_set_translatable (GladeProperty * property,
} }
gboolean gboolean
glade_property_i18n_get_translatable (GladeProperty * property) glade_property_i18n_get_translatable (GladeProperty *property)
{ {
g_return_val_if_fail (GLADE_IS_PROPERTY (property), FALSE); g_return_val_if_fail (GLADE_IS_PROPERTY (property), FALSE);
return property->priv->i18n_translatable; return property->priv->i18n_translatable;
} }
void void
glade_property_set_sensitive (GladeProperty * property, glade_property_set_sensitive (GladeProperty *property,
gboolean sensitive, const gchar * reason) gboolean sensitive,
const gchar *reason)
{ {
g_return_if_fail (GLADE_IS_PROPERTY (property)); g_return_if_fail (GLADE_IS_PROPERTY (property));
@ -1439,15 +1446,16 @@ glade_propert_get_insensitive_tooltip (GladeProperty *property)
} }
gboolean gboolean
glade_property_get_sensitive (GladeProperty * property) glade_property_get_sensitive (GladeProperty *property)
{ {
g_return_val_if_fail (GLADE_IS_PROPERTY (property), FALSE); g_return_val_if_fail (GLADE_IS_PROPERTY (property), FALSE);
return property->priv->sensitive; return property->priv->sensitive;
} }
void void
glade_property_set_support_warning (GladeProperty * property, glade_property_set_support_warning (GladeProperty *property,
gboolean disable, const gchar * reason) gboolean disable,
const gchar *reason)
{ {
gboolean warn_before, warn_after; gboolean warn_before, warn_after;
@ -1510,7 +1518,7 @@ glade_property_warn_usage (GladeProperty *property)
* or derived widget code). * or derived widget code).
*/ */
void void
glade_property_set_save_always (GladeProperty * property, gboolean setting) glade_property_set_save_always (GladeProperty *property, gboolean setting)
{ {
g_return_if_fail (GLADE_IS_PROPERTY (property)); g_return_if_fail (GLADE_IS_PROPERTY (property));
@ -1525,7 +1533,7 @@ glade_property_set_save_always (GladeProperty * property, gboolean setting)
* to always be saved regardless of its default value. * to always be saved regardless of its default value.
*/ */
gboolean gboolean
glade_property_get_save_always (GladeProperty * property) glade_property_get_save_always (GladeProperty *property)
{ {
g_return_val_if_fail (GLADE_IS_PROPERTY (property), FALSE); g_return_val_if_fail (GLADE_IS_PROPERTY (property), FALSE);
@ -1533,7 +1541,7 @@ glade_property_get_save_always (GladeProperty * property)
} }
void void
glade_property_set_enabled (GladeProperty * property, gboolean enabled) glade_property_set_enabled (GladeProperty *property, gboolean enabled)
{ {
gboolean warn_before, warn_after; gboolean warn_before, warn_after;
@ -1543,7 +1551,6 @@ glade_property_set_enabled (GladeProperty * property, gboolean enabled)
warn_before = glade_property_warn_usage (property); warn_before = glade_property_warn_usage (property);
property->priv->enabled = enabled; property->priv->enabled = enabled;
if (enabled)
glade_property_sync (property); glade_property_sync (property);
glade_property_fix_state (property); glade_property_fix_state (property);

View File

@ -46,11 +46,6 @@
#include "glade-project.h" #include "glade-project.h"
#include "glade-cell-renderer-icon.h" #include "glade-cell-renderer-icon.h"
G_DEFINE_TYPE (GladeSignalEditor, glade_signal_editor, GTK_TYPE_BOX)
#define GLADE_SIGNAL_EDITOR_GET_PRIVATE(o) \
(G_TYPE_INSTANCE_GET_PRIVATE ((o), GLADE_TYPE_SIGNAL_EDITOR, GladeSignalEditorPrivate))
struct _GladeSignalEditorPrivate struct _GladeSignalEditorPrivate
{ {
GtkTreeModel *model; GtkTreeModel *model;
@ -92,6 +87,8 @@ enum
static guint glade_signal_editor_signals[LAST_SIGNAL] = { 0 }; static guint glade_signal_editor_signals[LAST_SIGNAL] = { 0 };
static gboolean tree_path_focus_idle (gpointer data); static gboolean tree_path_focus_idle (gpointer data);
G_DEFINE_TYPE_WITH_PRIVATE (GladeSignalEditor, glade_signal_editor, GTK_TYPE_BOX)
/* Utils */ /* Utils */
static inline gboolean static inline gboolean
glade_signal_is_dummy (GladeSignal *signal) glade_signal_is_dummy (GladeSignal *signal)
@ -823,7 +820,7 @@ glade_signal_editor_enable_dnd (GladeSignalEditor *editor, gboolean enabled)
static void static void
glade_signal_editor_dispose (GObject *object) glade_signal_editor_dispose (GObject *object)
{ {
GladeSignalEditorPrivate *priv = GLADE_SIGNAL_EDITOR_GET_PRIVATE (object); GladeSignalEditorPrivate *priv = GLADE_SIGNAL_EDITOR (object)->priv;
g_clear_object (&priv->detail_store); g_clear_object (&priv->detail_store);
g_clear_object (&priv->handler_store); g_clear_object (&priv->handler_store);
@ -1242,7 +1239,7 @@ glade_signal_editor_init (GladeSignalEditor *self)
GtkCellArea *cell_area; GtkCellArea *cell_area;
GladeSignalEditorPrivate *priv; GladeSignalEditorPrivate *priv;
self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, GLADE_TYPE_SIGNAL_EDITOR, GladeSignalEditorPrivate); self->priv = glade_signal_editor_get_instance_private (self);
priv = self->priv; priv = self->priv;
/* Create signal tree */ /* Create signal tree */
@ -1463,8 +1460,6 @@ glade_signal_editor_class_init (GladeSignalEditorClass *klass)
klass->callback_suggestions = glade_signal_editor_callback_suggestions; klass->callback_suggestions = glade_signal_editor_callback_suggestions;
klass->detail_suggestions = glade_signal_editor_detail_suggestions; klass->detail_suggestions = glade_signal_editor_detail_suggestions;
g_type_class_add_private (klass, sizeof (GladeSignalEditorPrivate));
/** /**
* GladeSignalEditor::signal-activated: * GladeSignalEditor::signal-activated:
* @signal_editor: the object which received the signal * @signal_editor: the object which received the signal

View File

@ -58,6 +58,7 @@ static void on_glade_signal_model_changed (GladeWidget *widget, const GladeSigna
static void on_glade_widget_support_changed (GladeWidget *widget, GladeSignalModel *model); static void on_glade_widget_support_changed (GladeWidget *widget, GladeSignalModel *model);
G_DEFINE_TYPE_WITH_CODE (GladeSignalModel, glade_signal_model, G_TYPE_OBJECT, G_DEFINE_TYPE_WITH_CODE (GladeSignalModel, glade_signal_model, G_TYPE_OBJECT,
G_ADD_PRIVATE (GladeSignalModel)
G_IMPLEMENT_INTERFACE (GTK_TYPE_TREE_MODEL, G_IMPLEMENT_INTERFACE (GTK_TYPE_TREE_MODEL,
gtk_tree_model_iface_init); gtk_tree_model_iface_init);
G_IMPLEMENT_INTERFACE (GTK_TYPE_TREE_DRAG_SOURCE, G_IMPLEMENT_INTERFACE (GTK_TYPE_TREE_DRAG_SOURCE,
@ -78,7 +79,7 @@ g_ptr_array_find (GPtrArray *array, gpointer data)
static void static void
glade_signal_model_init (GladeSignalModel *object) glade_signal_model_init (GladeSignalModel *object)
{ {
object->priv = G_TYPE_INSTANCE_GET_PRIVATE (object, GLADE_TYPE_SIGNAL_MODEL, GladeSignalModelPrivate); object->priv = glade_signal_model_get_instance_private (object);
object->priv->dummy_signals = object->priv->dummy_signals =
g_hash_table_new_full (g_str_hash, g_str_equal, NULL, (GDestroyNotify) g_object_unref); g_hash_table_new_full (g_str_hash, g_str_equal, NULL, (GDestroyNotify) g_object_unref);
@ -182,8 +183,6 @@ glade_signal_model_class_init (GladeSignalModelClass *klass)
{ {
GObjectClass *object_class = G_OBJECT_CLASS (klass); GObjectClass *object_class = G_OBJECT_CLASS (klass);
g_type_class_add_private (klass, sizeof (GladeSignalModelPrivate));
object_class->finalize = glade_signal_model_finalize; object_class->finalize = glade_signal_model_finalize;
object_class->set_property = glade_signal_model_set_property; object_class->set_property = glade_signal_model_set_property;
object_class->get_property = glade_signal_model_get_property; object_class->get_property = glade_signal_model_get_property;

View File

@ -61,7 +61,7 @@ enum {
#define GladeSignalClass GladeSignalKlass #define GladeSignalClass GladeSignalKlass
#define glade_signal_class_init glade_signal_klass_init #define glade_signal_class_init glade_signal_klass_init
G_DEFINE_TYPE (GladeSignal, glade_signal, G_TYPE_OBJECT) G_DEFINE_TYPE_WITH_PRIVATE (GladeSignal, glade_signal, G_TYPE_OBJECT)
#undef GladeSignalClass #undef GladeSignalClass
#undef glade_signal_class_init #undef glade_signal_class_init
@ -156,9 +156,7 @@ glade_signal_set_property (GObject *object,
static void static void
glade_signal_init (GladeSignal *signal) glade_signal_init (GladeSignal *signal)
{ {
signal->priv = G_TYPE_INSTANCE_GET_PRIVATE (signal, signal->priv = glade_signal_get_instance_private (signal);
GLADE_TYPE_SIGNAL,
GladeSignalPrivate);
} }
static void static void
@ -218,8 +216,6 @@ glade_signal_klass_init (GladeSignalKlass *klass)
/* Install all properties */ /* Install all properties */
g_object_class_install_properties (object_class, N_PROPERTIES, properties); g_object_class_install_properties (object_class, N_PROPERTIES, properties);
g_type_class_add_private (klass, sizeof (GladeSignalPrivate));
} }
/** /**

View File

@ -53,14 +53,12 @@ struct _GladeWidgetActionPrivate
static GParamSpec *properties[N_PROPERTIES]; static GParamSpec *properties[N_PROPERTIES];
G_DEFINE_TYPE (GladeWidgetAction, glade_widget_action, G_TYPE_OBJECT); G_DEFINE_TYPE_WITH_PRIVATE (GladeWidgetAction, glade_widget_action, G_TYPE_OBJECT);
static void static void
glade_widget_action_init (GladeWidgetAction * object) glade_widget_action_init (GladeWidgetAction *object)
{ {
object->priv = G_TYPE_INSTANCE_GET_PRIVATE (object, object->priv = glade_widget_action_get_instance_private (object);
GLADE_TYPE_WIDGET_ACTION,
GladeWidgetActionPrivate);
object->priv->sensitive = TRUE; object->priv->sensitive = TRUE;
object->priv->visible = TRUE; object->priv->visible = TRUE;
@ -68,7 +66,7 @@ glade_widget_action_init (GladeWidgetAction * object)
} }
static void static void
glade_widget_action_finalize (GObject * object) glade_widget_action_finalize (GObject *object)
{ {
GladeWidgetAction *action = GLADE_WIDGET_ACTION (object); GladeWidgetAction *action = GLADE_WIDGET_ACTION (object);
@ -84,7 +82,7 @@ glade_widget_action_finalize (GObject * object)
static GObject * static GObject *
glade_widget_action_constructor (GType type, glade_widget_action_constructor (GType type,
guint n_construct_properties, guint n_construct_properties,
GObjectConstructParam * construct_properties) GObjectConstructParam *construct_properties)
{ {
GladeWidgetAction *action; GladeWidgetAction *action;
GObject *object; GObject *object;
@ -118,8 +116,10 @@ glade_widget_action_constructor (GType type,
} }
static void static void
glade_widget_action_set_property (GObject * object, guint prop_id, glade_widget_action_set_property (GObject *object,
const GValue * value, GParamSpec * pspec) guint prop_id,
const GValue *value,
GParamSpec *pspec)
{ {
GladeWidgetAction *action = GLADE_WIDGET_ACTION (object); GladeWidgetAction *action = GLADE_WIDGET_ACTION (object);
@ -143,8 +143,10 @@ glade_widget_action_set_property (GObject * object, guint prop_id,
} }
static void static void
glade_widget_action_get_property (GObject * object, guint prop_id, glade_widget_action_get_property (GObject *object,
GValue * value, GParamSpec * pspec) guint prop_id,
GValue *value,
GParamSpec *pspec)
{ {
GladeWidgetAction *action = GLADE_WIDGET_ACTION (object); GladeWidgetAction *action = GLADE_WIDGET_ACTION (object);
@ -168,11 +170,9 @@ glade_widget_action_get_property (GObject * object, guint prop_id,
} }
static void static void
glade_widget_action_class_init (GladeWidgetActionClass * klass) glade_widget_action_class_init (GladeWidgetActionClass *klass)
{ {
GObjectClass *object_class = G_OBJECT_CLASS (klass); GObjectClass *object_class = G_OBJECT_CLASS (klass);
glade_widget_action_parent_class =
G_OBJECT_CLASS (g_type_class_peek_parent (klass));
object_class->constructor = glade_widget_action_constructor; object_class->constructor = glade_widget_action_constructor;
object_class->finalize = glade_widget_action_finalize; object_class->finalize = glade_widget_action_finalize;
@ -201,8 +201,6 @@ glade_widget_action_class_init (GladeWidgetActionClass * klass)
/* Install all properties */ /* Install all properties */
g_object_class_install_properties (object_class, N_PROPERTIES, properties); g_object_class_install_properties (object_class, N_PROPERTIES, properties);
g_type_class_add_private (klass, sizeof (GladeWidgetActionPrivate));
} }
/** /**
@ -214,7 +212,7 @@ glade_widget_action_class_init (GladeWidgetActionClass * klass)
* *
*/ */
void void
glade_widget_action_set_sensitive (GladeWidgetAction * action, glade_widget_action_set_sensitive (GladeWidgetAction *action,
gboolean sensitive) gboolean sensitive)
{ {
g_return_if_fail (GLADE_IS_WIDGET_ACTION (action)); g_return_if_fail (GLADE_IS_WIDGET_ACTION (action));
@ -269,7 +267,7 @@ glade_widget_action_get_class (GladeWidgetAction *action)
* GWActionClass * * GWActionClass *
***************************************************************/ ***************************************************************/
static const gchar * static const gchar *
gwa_action_path_get_id (const gchar * action_path) gwa_action_path_get_id (const gchar *action_path)
{ {
const gchar *id; const gchar *id;
@ -304,7 +302,7 @@ glade_widget_action_class_new (const gchar *path)
* Returns: a newlly allocated copy of @action. * Returns: a newlly allocated copy of @action.
*/ */
GWActionClass * GWActionClass *
glade_widget_action_class_clone (GWActionClass * action) glade_widget_action_class_clone (GWActionClass *action)
{ {
GWActionClass *copy; GWActionClass *copy;
GList *l; GList *l;

View File

@ -55,9 +55,6 @@
#define DEFAULT_ICON_NAME "widget-gtk-frame" #define DEFAULT_ICON_NAME "widget-gtk-frame"
#define GLADE_WIDGET_ADAPTOR_GET_PRIVATE(o) \
(G_TYPE_INSTANCE_GET_PRIVATE ((o), GLADE_TYPE_WIDGET_ADAPTOR, GladeWidgetAdaptorPrivate))
struct _GladeWidgetAdaptorPrivate struct _GladeWidgetAdaptorPrivate
{ {
GType type; /* GType of the widget */ GType type; /* GType of the widget */
@ -149,7 +146,7 @@ static GHashTable *adaptor_hash = NULL;
* no reason for it since the autogenerated class for GtWidget is GladeGtkWidgetAdaptor * no reason for it since the autogenerated class for GtWidget is GladeGtkWidgetAdaptor
* TODO: rename GladeWidgetAdaptor to GladeGObjectAdator or GladeObjectAdator * TODO: rename GladeWidgetAdaptor to GladeGObjectAdator or GladeObjectAdator
*/ */
G_DEFINE_TYPE (GladeWidgetAdaptor, glade_widget_adaptor, G_TYPE_OBJECT); G_DEFINE_TYPE_WITH_PRIVATE (GladeWidgetAdaptor, glade_widget_adaptor, G_TYPE_OBJECT);
/******************************************************************************* /*******************************************************************************
Helper functions Helper functions
@ -230,7 +227,8 @@ gwa_gtype_hash (gconstpointer v)
} }
static gboolean static gboolean
glade_widget_adaptor_hash_find (gpointer key, gpointer value, glade_widget_adaptor_hash_find (gpointer key,
gpointer value,
gpointer user_data) gpointer user_data)
{ {
GladeWidgetAdaptor *adaptor = value; GladeWidgetAdaptor *adaptor = value;
@ -259,6 +257,29 @@ glade_abort_if_derived_adaptors_exist (GType type)
} }
} }
static GladeInternalChild *
gwa_internal_child_find (GList *list, const gchar *name)
{
GList *l;
for (l = list; l; l = g_list_next (l))
{
GladeInternalChild *data = l->data;
if (strcmp (data->name, name) == 0)
return data;
if (data->children)
{
GladeInternalChild *child;
if ((child = gwa_internal_child_find (data->children, name)))
return child;
}
}
return NULL;
}
/******************************************************************************* /*******************************************************************************
Base Object Implementation detail Base Object Implementation detail
*******************************************************************************/ *******************************************************************************/
@ -399,7 +420,8 @@ gwa_clone_parent_properties (GladeWidgetAdaptor *adaptor, gboolean is_packing)
static void static void
gwa_setup_introspected_props_from_pspecs (GladeWidgetAdaptor *adaptor, gwa_setup_introspected_props_from_pspecs (GladeWidgetAdaptor *adaptor,
GParamSpec **specs, GParamSpec **specs,
gint n_specs, gboolean is_packing) gint n_specs,
gboolean is_packing)
{ {
GladeWidgetAdaptor *parent_adaptor = gwa_get_parent_adaptor (adaptor); GladeWidgetAdaptor *parent_adaptor = gwa_get_parent_adaptor (adaptor);
GladePropertyClass *property_class; GladePropertyClass *property_class;
@ -433,7 +455,8 @@ gwa_setup_introspected_props_from_pspecs (GladeWidgetAdaptor *adaptor,
static void static void
gwa_setup_properties (GladeWidgetAdaptor *adaptor, gwa_setup_properties (GladeWidgetAdaptor *adaptor,
GObjectClass *object_class, gboolean is_packing) GObjectClass *object_class,
gboolean is_packing)
{ {
GParamSpec **specs = NULL; GParamSpec **specs = NULL;
guint n_specs = 0; guint n_specs = 0;
@ -585,7 +608,7 @@ gwa_internal_children_clone (GList *children)
static GObject * static GObject *
glade_widget_adaptor_constructor (GType type, glade_widget_adaptor_constructor (GType type,
guint n_construct_properties, guint n_construct_properties,
GObjectConstructParam * construct_properties) GObjectConstructParam *construct_properties)
{ {
GladeWidgetAdaptor *adaptor, *parent_adaptor; GladeWidgetAdaptor *adaptor, *parent_adaptor;
GObject *ret_obj; GObject *ret_obj;
@ -672,14 +695,14 @@ glade_widget_adaptor_constructor (GType type,
} }
static void static void
gwa_packing_default_free (GladePackingDefault * def) gwa_packing_default_free (GladePackingDefault *def)
{ {
g_free (def->id); g_free (def->id);
g_free (def->value); g_free (def->value);
} }
static void static void
gwa_child_packing_free (GladeChildPacking * packing) gwa_child_packing_free (GladeChildPacking *packing)
{ {
g_free (packing->parent_name); g_free (packing->parent_name);
@ -1301,12 +1324,13 @@ glade_widget_adaptor_object_create_editable (GladeWidgetAdaptor *adaptor,
return (GladeEditable *) glade_editor_table_new (adaptor, type); return (GladeEditable *) glade_editor_table_new (adaptor, type);
} }
static GList * static void
glade_widget_adaptor_object_get_children (GladeWidgetAdaptor *adaptor, glade_internal_child_append (GladeWidgetAdaptor *adaptor,
GObject *object) GObject *object,
GList *list,
GList **children)
{ {
GList *list = adaptor->priv->internal_children; GList *l;
GList *l, *children = NULL;
for (l = list; l; l = g_list_next (l)) for (l = list; l; l = g_list_next (l))
{ {
@ -1317,8 +1341,45 @@ glade_widget_adaptor_object_get_children (GladeWidgetAdaptor *adaptor,
object, object,
internal->name); internal->name);
if (child) if (child)
children = g_list_prepend (children, child); *children = g_list_prepend (*children, child);
} }
}
static GList *
glade_widget_adaptor_object_get_children (GladeWidgetAdaptor *adaptor,
GObject *object)
{
GladeWidget *gwidget = glade_widget_get_from_gobject (object);
GList *children = NULL;
const gchar *name;
if (gwidget && (name = glade_widget_get_internal (gwidget)))
{
GladeWidget *parent = gwidget;
/* Get non internal parent */
while ((parent = glade_widget_get_parent (parent)) &&
glade_widget_get_internal (parent));
if (parent)
{
GladeWidgetAdaptor *padaptor = glade_widget_get_adaptor (parent);
GladeInternalChild *internal;
internal = gwa_internal_child_find (padaptor->priv->internal_children,
name);
if (internal && internal->children)
glade_internal_child_append (padaptor, glade_widget_get_object (parent),
internal->children, &children);
}
return children;
}
glade_internal_child_append (adaptor, object,
adaptor->priv->internal_children,
&children);
return children; return children;
} }
@ -1330,7 +1391,7 @@ glade_widget_adaptor_object_get_children (GladeWidgetAdaptor *adaptor,
static void static void
glade_widget_adaptor_init (GladeWidgetAdaptor *adaptor) glade_widget_adaptor_init (GladeWidgetAdaptor *adaptor)
{ {
adaptor->priv = GLADE_WIDGET_ADAPTOR_GET_PRIVATE (adaptor); adaptor->priv = glade_widget_adaptor_get_instance_private (adaptor);
} }
@ -1448,8 +1509,6 @@ glade_widget_adaptor_class_init (GladeWidgetAdaptorClass *adaptor_class)
g_param_spec_pointer g_param_spec_pointer
("cursor", _("Cursor"), ("cursor", _("Cursor"),
_("A cursor for inserting widgets in the UI"), G_PARAM_READABLE)); _("A cursor for inserting widgets in the UI"), G_PARAM_READABLE));
g_type_class_add_private (adaptor_class, sizeof (GladeWidgetAdaptorPrivate));
} }
/******************************************************************************* /*******************************************************************************
@ -1482,7 +1541,8 @@ gwa_warn_deprecated_if_symbol_found (GladeXmlNode *node, gchar *tagname)
static void static void
gwa_extend_with_node_load_sym (GladeWidgetAdaptorClass *klass, gwa_extend_with_node_load_sym (GladeWidgetAdaptorClass *klass,
GladeXmlNode *node, GModule *module) GladeXmlNode *node,
GModule *module)
{ {
GObjectClass *object_class = G_OBJECT_CLASS (klass); GObjectClass *object_class = G_OBJECT_CLASS (klass);
gpointer symbol; gpointer symbol;
@ -2307,31 +2367,9 @@ gwa_set_signals_from_node (GladeWidgetAdaptor *adaptor,
} }
} }
static GladeInternalChild *
gwa_internal_child_find (GList *list, gchar *name)
{
GList *l;
for (l = list; l; l = g_list_next (l))
{
GladeInternalChild *data = l->data;
if (strcmp (data->name, name) == 0)
return data;
if (data->children)
{
GladeInternalChild *child;
if ((child = gwa_internal_child_find (data->children, name)))
return child;
}
}
return NULL;
}
static GList * static GList *
gwa_internal_children_update_from_node (GList *internal_children, GladeXmlNode *node) gwa_internal_children_update_from_node (GList *internal_children,
GladeXmlNode *node)
{ {
GList *retval = internal_children; GList *retval = internal_children;
GladeXmlNode *child, *children; GladeXmlNode *child, *children;
@ -2938,7 +2976,8 @@ glade_widget_adaptor_create_internal (GladeWidget *parent,
*/ */
GladeWidget * GladeWidget *
glade_widget_adaptor_create_widget_real (gboolean query, glade_widget_adaptor_create_widget_real (gboolean query,
const gchar *first_property, ...) const gchar *first_property,
...)
{ {
GladeWidgetAdaptor *adaptor; GladeWidgetAdaptor *adaptor;
GladeWidget *gwidget; GladeWidget *gwidget;

File diff suppressed because it is too large Load Diff

View File

@ -63,7 +63,7 @@ struct _GladeXmlContext
static gchar * static gchar *
claim_string (xmlChar * string) claim_string (xmlChar *string)
{ {
gchar *ret; gchar *ret;
ret = g_strdup (CAST_BAD (string)); ret = g_strdup (CAST_BAD (string));
@ -80,8 +80,7 @@ claim_string (xmlChar * string)
* Sets the property @name in @node_in to @val * Sets the property @name in @node_in to @val
*/ */
void void
glade_xml_set_value (GladeXmlNode * node_in, const gchar * name, glade_xml_set_value (GladeXmlNode *node_in, const gchar *name, const gchar *val)
const gchar * val)
{ {
xmlNodePtr node = (xmlNodePtr) node_in; xmlNodePtr node = (xmlNodePtr) node_in;
xmlChar *ret; xmlChar *ret;
@ -104,7 +103,7 @@ glade_xml_set_value (GladeXmlNode * node_in, const gchar * name,
* Returns: A newly allocated string * Returns: A newly allocated string
*/ */
gchar * gchar *
glade_xml_get_content (GladeXmlNode * node_in) glade_xml_get_content (GladeXmlNode *node_in)
{ {
xmlNodePtr node = (xmlNodePtr) node_in; xmlNodePtr node = (xmlNodePtr) node_in;
xmlChar *val = xmlNodeGetContent (node); xmlChar *val = xmlNodeGetContent (node);
@ -120,7 +119,7 @@ glade_xml_get_content (GladeXmlNode * node_in)
* Sets the content of @node to @content. * Sets the content of @node to @content.
*/ */
void void
glade_xml_set_content (GladeXmlNode * node_in, const gchar * content) glade_xml_set_content (GladeXmlNode *node_in, const gchar *content)
{ {
xmlNodePtr node = (xmlNodePtr) node_in; xmlNodePtr node = (xmlNodePtr) node_in;
xmlChar *content_encoded; xmlChar *content_encoded;
@ -142,7 +141,7 @@ glade_xml_set_content (GladeXmlNode * node_in, const gchar * content)
* *
*/ */
static gchar * static gchar *
glade_xml_get_value (xmlNodePtr node, const gchar * name) glade_xml_get_value (xmlNodePtr node, const gchar *name)
{ {
xmlNodePtr child; xmlNodePtr child;
gchar *ret = NULL; gchar *ret = NULL;
@ -162,7 +161,7 @@ glade_xml_get_value (xmlNodePtr node, const gchar * name)
* Returns: %TRUE if @node_in's name is equal to @name, %FALSE otherwise * Returns: %TRUE if @node_in's name is equal to @name, %FALSE otherwise
*/ */
gboolean gboolean
glade_xml_node_verify_silent (GladeXmlNode * node_in, const gchar * name) glade_xml_node_verify_silent (GladeXmlNode *node_in, const gchar *name)
{ {
xmlNodePtr node = (xmlNodePtr) node_in; xmlNodePtr node = (xmlNodePtr) node_in;
@ -184,7 +183,7 @@ glade_xml_node_verify_silent (GladeXmlNode * node_in, const gchar * name)
* Returns: %TRUE if @node_in's name is equal to @name, %FALSE otherwise * Returns: %TRUE if @node_in's name is equal to @name, %FALSE otherwise
*/ */
gboolean gboolean
glade_xml_node_verify (GladeXmlNode * node_in, const gchar * name) glade_xml_node_verify (GladeXmlNode *node_in, const gchar *name)
{ {
xmlNodePtr node = (xmlNodePtr) node_in; xmlNodePtr node = (xmlNodePtr) node_in;
@ -210,7 +209,7 @@ glade_xml_node_verify (GladeXmlNode * node_in, const gchar * name)
* Returns: %TRUE if the node is found, %FALSE otherwise * Returns: %TRUE if the node is found, %FALSE otherwise
*/ */
gboolean gboolean
glade_xml_get_value_int (GladeXmlNode * node_in, const gchar * name, gint * val) glade_xml_get_value_int (GladeXmlNode *node_in, const gchar *name, gint *val)
{ {
xmlNodePtr node = (xmlNodePtr) node_in; xmlNodePtr node = (xmlNodePtr) node_in;
gchar *value, *endptr = NULL; gchar *value, *endptr = NULL;
@ -245,8 +244,9 @@ glade_xml_get_value_int (GladeXmlNode * node_in, const gchar * name, gint * val)
* Returns: * Returns:
**/ **/
gboolean gboolean
glade_xml_get_value_int_required (GladeXmlNode * node, const gchar * name, glade_xml_get_value_int_required (GladeXmlNode *node,
gint * val) const gchar *name,
gint *val)
{ {
gboolean ret; gboolean ret;
@ -264,14 +264,14 @@ glade_xml_get_value_int_required (GladeXmlNode * node, const gchar * name,
* the content of a child. * the content of a child.
*/ */
gchar * gchar *
glade_xml_get_value_string (GladeXmlNode * node_in, const gchar * name) glade_xml_get_value_string (GladeXmlNode *node_in, const gchar *name)
{ {
xmlNodePtr node = (xmlNodePtr) node_in; xmlNodePtr node = (xmlNodePtr) node_in;
return glade_xml_get_value (node, name); return glade_xml_get_value (node, name);
} }
static gchar * static gchar *
glade_xml_get_property (xmlNodePtr node, const gchar * name) glade_xml_get_property (xmlNodePtr node, const gchar *name)
{ {
xmlChar *val; xmlChar *val;
@ -284,8 +284,9 @@ glade_xml_get_property (xmlNodePtr node, const gchar * name)
} }
static void static void
glade_xml_set_property (xmlNodePtr node, const gchar * name, glade_xml_set_property (xmlNodePtr node,
const gchar * value) const gchar *name,
const gchar *value)
{ {
if (value) if (value)
xmlSetProp (node, BAD_CAST (name), BAD_CAST (value)); xmlSetProp (node, BAD_CAST (name), BAD_CAST (value));
@ -302,7 +303,8 @@ glade_xml_set_property (xmlNodePtr node, const gchar * name,
* the content of a child. * the content of a child.
*/ */
gboolean gboolean
glade_xml_get_boolean (GladeXmlNode * node_in, const gchar * name, glade_xml_get_boolean (GladeXmlNode *node_in,
const gchar *name,
gboolean _default) gboolean _default)
{ {
xmlNodePtr node = (xmlNodePtr) node_in; xmlNodePtr node = (xmlNodePtr) node_in;
@ -338,8 +340,9 @@ glade_xml_get_boolean (GladeXmlNode * node_in, const gchar * name,
* the content of a child. * the content of a child.
*/ */
gboolean gboolean
glade_xml_get_property_boolean (GladeXmlNode * node_in, glade_xml_get_property_boolean (GladeXmlNode *node_in,
const gchar * name, gboolean _default) const gchar *name,
gboolean _default)
{ {
xmlNodePtr node = (xmlNodePtr) node_in; xmlNodePtr node = (xmlNodePtr) node_in;
gchar *value; gchar *value;
@ -370,8 +373,9 @@ glade_xml_get_property_boolean (GladeXmlNode * node_in,
} }
gdouble gdouble
glade_xml_get_property_double (GladeXmlNode * node_in, glade_xml_get_property_double (GladeXmlNode *node_in,
const gchar * name, gdouble _default) const gchar *name,
gdouble _default)
{ {
xmlNodePtr node = (xmlNodePtr) node_in; xmlNodePtr node = (xmlNodePtr) node_in;
gdouble retval; gdouble retval;
@ -397,8 +401,9 @@ glade_xml_get_property_double (GladeXmlNode * node_in,
} }
gint gint
glade_xml_get_property_int (GladeXmlNode * node_in, glade_xml_get_property_int (GladeXmlNode *node_in,
const gchar * name, gint _default) const gchar *name,
gint _default)
{ {
xmlNodePtr node = (xmlNodePtr) node_in; xmlNodePtr node = (xmlNodePtr) node_in;
gint retval; gint retval;
@ -415,8 +420,9 @@ glade_xml_get_property_int (GladeXmlNode * node_in,
} }
void void
glade_xml_node_set_property_boolean (GladeXmlNode * node_in, glade_xml_node_set_property_boolean (GladeXmlNode *node_in,
const gchar * name, gboolean value) const gchar *name,
gboolean value)
{ {
xmlNodePtr node = (xmlNodePtr) node_in; xmlNodePtr node = (xmlNodePtr) node_in;
@ -434,8 +440,9 @@ glade_xml_node_set_property_boolean (GladeXmlNode * node_in,
#undef GLADE_TAG_FALSE3 #undef GLADE_TAG_FALSE3
gchar * gchar *
glade_xml_get_value_string_required (GladeXmlNode * node_in, glade_xml_get_value_string_required (GladeXmlNode *node_in,
const gchar * name, const gchar * xtra) const gchar *name,
const gchar *xtra)
{ {
xmlNodePtr node = (xmlNodePtr) node_in; xmlNodePtr node = (xmlNodePtr) node_in;
gchar *value = glade_xml_get_value (node, name); gchar *value = glade_xml_get_value (node, name);
@ -454,7 +461,7 @@ glade_xml_get_value_string_required (GladeXmlNode * node_in,
} }
gchar * gchar *
glade_xml_get_property_string (GladeXmlNode * node_in, const gchar * name) glade_xml_get_property_string (GladeXmlNode *node_in, const gchar *name)
{ {
xmlNodePtr node = (xmlNodePtr) node_in; xmlNodePtr node = (xmlNodePtr) node_in;
@ -462,8 +469,9 @@ glade_xml_get_property_string (GladeXmlNode * node_in, const gchar * name)
} }
void void
glade_xml_node_set_property_string (GladeXmlNode * node_in, glade_xml_node_set_property_string (GladeXmlNode *node_in,
const gchar * name, const gchar * string) const gchar *name,
const gchar *string)
{ {
xmlNodePtr node = (xmlNodePtr) node_in; xmlNodePtr node = (xmlNodePtr) node_in;
@ -471,8 +479,9 @@ glade_xml_node_set_property_string (GladeXmlNode * node_in,
} }
gchar * gchar *
glade_xml_get_property_string_required (GladeXmlNode * node_in, glade_xml_get_property_string_required (GladeXmlNode *node_in,
const gchar * name, const gchar * xtra) const gchar *name,
const gchar *xtra)
{ {
xmlNodePtr node = (xmlNodePtr) node_in; xmlNodePtr node = (xmlNodePtr) node_in;
gchar *value = glade_xml_get_property_string (node_in, name); gchar *value = glade_xml_get_property_string (node_in, name);
@ -490,9 +499,10 @@ glade_xml_get_property_string_required (GladeXmlNode * node_in,
} }
gboolean gboolean
glade_xml_get_property_version (GladeXmlNode * node_in, glade_xml_get_property_version (GladeXmlNode *node_in,
const gchar * name, const gchar *name,
guint16 * major, guint16 * minor) guint16 *major,
guint16 * minor)
{ {
xmlNodePtr node = (xmlNodePtr) node_in; xmlNodePtr node = (xmlNodePtr) node_in;
gchar *value = glade_xml_get_property_string (node_in, name); gchar *value = glade_xml_get_property_string (node_in, name);
@ -522,8 +532,8 @@ glade_xml_get_property_version (GladeXmlNode * node_in,
} }
GList * GList *
glade_xml_get_property_targetable_versions (GladeXmlNode * node_in, glade_xml_get_property_targetable_versions (GladeXmlNode *node_in,
const gchar * name) const gchar *name)
{ {
GladeTargetableVersion *version; GladeTargetableVersion *version;
GList *targetable = NULL; GList *targetable = NULL;
@ -571,7 +581,7 @@ glade_xml_get_property_targetable_versions (GladeXmlNode * node_in,
* Search a child by name, * Search a child by name,
*/ */
GladeXmlNode * GladeXmlNode *
glade_xml_search_child (GladeXmlNode * node_in, const gchar * name) glade_xml_search_child (GladeXmlNode *node_in, const gchar *name)
{ {
xmlNodePtr node; xmlNodePtr node;
xmlNodePtr child; xmlNodePtr child;
@ -601,7 +611,7 @@ glade_xml_search_child (GladeXmlNode * node_in, const gchar * name)
* Return Value: * Return Value:
**/ **/
GladeXmlNode * GladeXmlNode *
glade_xml_search_child_required (GladeXmlNode * node, const gchar * name) glade_xml_search_child_required (GladeXmlNode *node, const gchar *name)
{ {
GladeXmlNode *child; GladeXmlNode *child;
@ -617,7 +627,7 @@ glade_xml_search_child_required (GladeXmlNode * node, const gchar * name)
/* --------------------------- Parse Context ----------------------------*/ /* --------------------------- Parse Context ----------------------------*/
static GladeXmlContext * static GladeXmlContext *
glade_xml_context_new_real (GladeXmlDoc * doc, gboolean freedoc, xmlNsPtr ns) glade_xml_context_new_real (GladeXmlDoc *doc, gboolean freedoc, xmlNsPtr ns)
{ {
GladeXmlContext *context = g_new0 (GladeXmlContext, 1); GladeXmlContext *context = g_new0 (GladeXmlContext, 1);
@ -629,7 +639,7 @@ glade_xml_context_new_real (GladeXmlDoc * doc, gboolean freedoc, xmlNsPtr ns)
} }
GladeXmlContext * GladeXmlContext *
glade_xml_context_new (GladeXmlDoc * doc, const gchar * name_space) glade_xml_context_new (GladeXmlDoc *doc, const gchar *name_space)
{ {
/* We are not using the namespace now */ /* We are not using the namespace now */
return glade_xml_context_new_real (doc, TRUE, NULL); return glade_xml_context_new_real (doc, TRUE, NULL);
@ -645,8 +655,9 @@ glade_xml_context_destroy (GladeXmlContext * context)
} }
GladeXmlContext * GladeXmlContext *
glade_xml_context_new_from_path (const gchar * full_path, glade_xml_context_new_from_path (const gchar *full_path,
const gchar * nspace, const gchar * root_name) const gchar *nspace,
const gchar *root_name)
{ {
GladeXmlContext *context; GladeXmlContext *context;
xmlDocPtr doc; xmlDocPtr doc;
@ -703,7 +714,7 @@ glade_xml_context_new_from_path (const gchar * full_path,
* Similar to glade_xml_context_destroy but it also frees the document set in the context * Similar to glade_xml_context_destroy but it also frees the document set in the context
**/ **/
void void
glade_xml_context_free (GladeXmlContext * context) glade_xml_context_free (GladeXmlContext *context)
{ {
g_return_if_fail (context != NULL); g_return_if_fail (context != NULL);
if (context->doc) if (context->doc)
@ -714,7 +725,8 @@ glade_xml_context_free (GladeXmlContext * context)
} }
void void
glade_xml_node_append_child (GladeXmlNode * node_in, GladeXmlNode * child_in) glade_xml_node_append_child (GladeXmlNode *node_in,
GladeXmlNode *child_in)
{ {
xmlNodePtr node = (xmlNodePtr) node_in; xmlNodePtr node = (xmlNodePtr) node_in;
xmlNodePtr child = (xmlNodePtr) child_in; xmlNodePtr child = (xmlNodePtr) child_in;
@ -737,7 +749,7 @@ glade_xml_node_remove (GladeXmlNode * node_in)
GladeXmlNode * GladeXmlNode *
glade_xml_node_new (GladeXmlContext * context, const gchar * name) glade_xml_node_new (GladeXmlContext *context, const gchar *name)
{ {
g_return_val_if_fail (context != NULL, NULL); g_return_val_if_fail (context != NULL, NULL);
g_return_val_if_fail (name != NULL, NULL); g_return_val_if_fail (name != NULL, NULL);
@ -747,7 +759,7 @@ glade_xml_node_new (GladeXmlContext * context, const gchar * name)
} }
GladeXmlNode * GladeXmlNode *
glade_xml_node_new_comment (GladeXmlContext * context, const gchar * comment) glade_xml_node_new_comment (GladeXmlContext *context, const gchar *comment)
{ {
g_return_val_if_fail (context != NULL, NULL); g_return_val_if_fail (context != NULL, NULL);
g_return_val_if_fail (comment != NULL, NULL); g_return_val_if_fail (comment != NULL, NULL);
@ -769,19 +781,19 @@ glade_xml_node_copy (GladeXmlNode *node)
} }
void void
glade_xml_node_delete (GladeXmlNode * node) glade_xml_node_delete (GladeXmlNode *node)
{ {
xmlFreeNode ((xmlNodePtr) node); xmlFreeNode ((xmlNodePtr) node);
} }
GladeXmlDoc * GladeXmlDoc *
glade_xml_context_get_doc (GladeXmlContext * context) glade_xml_context_get_doc (GladeXmlContext *context)
{ {
return context->doc; return context->doc;
} }
gchar * gchar *
glade_xml_dump_from_context (GladeXmlContext * context) glade_xml_dump_from_context (GladeXmlContext *context)
{ {
GladeXmlDoc *doc; GladeXmlDoc *doc;
xmlChar *string = NULL; xmlChar *string = NULL;
@ -797,7 +809,7 @@ glade_xml_dump_from_context (GladeXmlContext * context)
} }
gboolean gboolean
glade_xml_node_is_comment (GladeXmlNode * node_in) glade_xml_node_is_comment (GladeXmlNode *node_in)
{ {
xmlNodePtr node = (xmlNodePtr) node_in; xmlNodePtr node = (xmlNodePtr) node_in;
return (node) ? node->type == XML_COMMENT_NODE : FALSE; return (node) ? node->type == XML_COMMENT_NODE : FALSE;
@ -824,7 +836,7 @@ glade_xml_node_get_children (GladeXmlNode * node_in)
} }
GladeXmlNode * GladeXmlNode *
glade_xml_node_get_parent (GladeXmlNode * node_in) glade_xml_node_get_parent (GladeXmlNode *node_in)
{ {
xmlNodePtr node = (xmlNodePtr) node_in; xmlNodePtr node = (xmlNodePtr) node_in;
@ -833,7 +845,7 @@ glade_xml_node_get_parent (GladeXmlNode * node_in)
GladeXmlNode * GladeXmlNode *
glade_xml_node_get_children_with_comments (GladeXmlNode * node_in) glade_xml_node_get_children_with_comments (GladeXmlNode *node_in)
{ {
xmlNodePtr node = (xmlNodePtr) node_in; xmlNodePtr node = (xmlNodePtr) node_in;
@ -841,7 +853,7 @@ glade_xml_node_get_children_with_comments (GladeXmlNode * node_in)
} }
GladeXmlNode * GladeXmlNode *
glade_xml_node_next (GladeXmlNode * node_in) glade_xml_node_next (GladeXmlNode *node_in)
{ {
xmlNodePtr node = (xmlNodePtr) node_in; xmlNodePtr node = (xmlNodePtr) node_in;
@ -853,7 +865,7 @@ glade_xml_node_next (GladeXmlNode * node_in)
} }
GladeXmlNode * GladeXmlNode *
glade_xml_node_next_with_comments (GladeXmlNode * node_in) glade_xml_node_next_with_comments (GladeXmlNode *node_in)
{ {
xmlNodePtr node = (xmlNodePtr) node_in; xmlNodePtr node = (xmlNodePtr) node_in;
@ -861,7 +873,7 @@ glade_xml_node_next_with_comments (GladeXmlNode * node_in)
} }
GladeXmlNode * GladeXmlNode *
glade_xml_node_prev_with_comments (GladeXmlNode * node_in) glade_xml_node_prev_with_comments (GladeXmlNode *node_in)
{ {
xmlNodePtr node = (xmlNodePtr) node_in; xmlNodePtr node = (xmlNodePtr) node_in;
@ -869,7 +881,7 @@ glade_xml_node_prev_with_comments (GladeXmlNode * node_in)
} }
const gchar * const gchar *
glade_xml_node_get_name (GladeXmlNode * node_in) glade_xml_node_get_name (GladeXmlNode *node_in)
{ {
xmlNodePtr node = (xmlNodePtr) node_in; xmlNodePtr node = (xmlNodePtr) node_in;
@ -885,7 +897,7 @@ glade_xml_doc_new (void)
} }
void void
glade_xml_doc_set_root (GladeXmlDoc * doc_in, GladeXmlNode * node_in) glade_xml_doc_set_root (GladeXmlDoc *doc_in, GladeXmlNode *node_in)
{ {
xmlNodePtr node = (xmlNodePtr) node_in; xmlNodePtr node = (xmlNodePtr) node_in;
xmlDocPtr doc = (xmlDocPtr) doc_in; xmlDocPtr doc = (xmlDocPtr) doc_in;
@ -894,7 +906,7 @@ glade_xml_doc_set_root (GladeXmlDoc * doc_in, GladeXmlNode * node_in)
} }
gint gint
glade_xml_doc_save (GladeXmlDoc * doc_in, const gchar * full_path) glade_xml_doc_save (GladeXmlDoc *doc_in, const gchar *full_path)
{ {
xmlDocPtr doc = (xmlDocPtr) doc_in; xmlDocPtr doc = (xmlDocPtr) doc_in;
@ -903,7 +915,7 @@ glade_xml_doc_save (GladeXmlDoc * doc_in, const gchar * full_path)
} }
void void
glade_xml_doc_free (GladeXmlDoc * doc_in) glade_xml_doc_free (GladeXmlDoc *doc_in)
{ {
xmlDocPtr doc = (xmlDocPtr) doc_in; xmlDocPtr doc = (xmlDocPtr) doc_in;
@ -917,7 +929,7 @@ glade_xml_doc_free (GladeXmlDoc * doc_in)
* Returns: the #GladeXmlNode that is the document root of @doc * Returns: the #GladeXmlNode that is the document root of @doc
*/ */
GladeXmlNode * GladeXmlNode *
glade_xml_doc_get_root (GladeXmlDoc * doc) glade_xml_doc_get_root (GladeXmlDoc *doc)
{ {
xmlNodePtr node; xmlNodePtr node;
@ -927,9 +939,10 @@ glade_xml_doc_get_root (GladeXmlDoc * doc)
} }
gboolean gboolean
glade_xml_load_sym_from_node (GladeXmlNode * node_in, glade_xml_load_sym_from_node (GladeXmlNode *node_in,
GModule * module, GModule *module,
gchar * tagname, gpointer * sym_location) gchar *tagname,
gpointer *sym_location)
{ {
static GModule *self = NULL; static GModule *self = NULL;
gboolean retval = FALSE; gboolean retval = FALSE;

View File

@ -25,7 +25,7 @@
#include "glade-about-dialog-editor.h" #include "glade-about-dialog-editor.h"
static void glade_about_dialog_editor_editable_init (GladeEditableIface * iface); static void glade_about_dialog_editor_editable_init (GladeEditableIface *iface);
/* Callbacks */ /* Callbacks */
static void license_type_pre_commit (GladePropertyShell *shell, static void license_type_pre_commit (GladePropertyShell *shell,
@ -45,6 +45,8 @@ struct _GladeAboutDialogEditorPrivate
GtkWidget *license_label; GtkWidget *license_label;
GtkWidget *license_editor; GtkWidget *license_editor;
GtkWidget *wrap_license_editor; GtkWidget *wrap_license_editor;
GtkWidget *logo_file_editor;
GtkWidget *logo_icon_editor;
GtkWidget *logo_file_radio; GtkWidget *logo_file_radio;
GtkWidget *logo_icon_radio; GtkWidget *logo_icon_radio;
@ -67,6 +69,8 @@ glade_about_dialog_editor_class_init (GladeAboutDialogEditorClass * klass)
gtk_widget_class_bind_template_child_private (widget_class, GladeAboutDialogEditor, license_label); gtk_widget_class_bind_template_child_private (widget_class, GladeAboutDialogEditor, license_label);
gtk_widget_class_bind_template_child_private (widget_class, GladeAboutDialogEditor, license_editor); gtk_widget_class_bind_template_child_private (widget_class, GladeAboutDialogEditor, license_editor);
gtk_widget_class_bind_template_child_private (widget_class, GladeAboutDialogEditor, wrap_license_editor); gtk_widget_class_bind_template_child_private (widget_class, GladeAboutDialogEditor, wrap_license_editor);
gtk_widget_class_bind_template_child_private (widget_class, GladeAboutDialogEditor, logo_file_editor);
gtk_widget_class_bind_template_child_private (widget_class, GladeAboutDialogEditor, logo_icon_editor);
gtk_widget_class_bind_template_child_private (widget_class, GladeAboutDialogEditor, logo_file_radio); gtk_widget_class_bind_template_child_private (widget_class, GladeAboutDialogEditor, logo_file_radio);
gtk_widget_class_bind_template_child_private (widget_class, GladeAboutDialogEditor, logo_icon_radio); gtk_widget_class_bind_template_child_private (widget_class, GladeAboutDialogEditor, logo_icon_radio);
@ -77,7 +81,7 @@ glade_about_dialog_editor_class_init (GladeAboutDialogEditorClass * klass)
} }
static void static void
glade_about_dialog_editor_init (GladeAboutDialogEditor * self) glade_about_dialog_editor_init (GladeAboutDialogEditor *self)
{ {
self->priv = glade_about_dialog_editor_get_instance_private (self); self->priv = glade_about_dialog_editor_get_instance_private (self);
@ -85,7 +89,14 @@ glade_about_dialog_editor_init (GladeAboutDialogEditor * self)
} }
static void static void
glade_about_dialog_editor_load (GladeEditable * editable, GladeWidget * widget) glade_eprop_disable_check (GtkWidget *child, gpointer data)
{
if (GLADE_IS_EDITOR_PROPERTY (child))
g_object_set (child, "disable-check", TRUE, NULL);
}
static void
glade_about_dialog_editor_load (GladeEditable *editable, GladeWidget *widget)
{ {
GladeAboutDialogEditor *dialog_editor = GLADE_ABOUT_DIALOG_EDITOR (editable); GladeAboutDialogEditor *dialog_editor = GLADE_ABOUT_DIALOG_EDITOR (editable);
GladeAboutDialogEditorPrivate *priv = dialog_editor->priv; GladeAboutDialogEditorPrivate *priv = dialog_editor->priv;
@ -110,6 +121,12 @@ glade_about_dialog_editor_load (GladeEditable * editable, GladeWidget * widget)
/* Set the radio button state to our virtual property */ /* Set the radio button state to our virtual property */
glade_widget_property_get (widget, "glade-logo-as-file", &as_file); glade_widget_property_get (widget, "glade-logo-as-file", &as_file);
gtk_container_forall (GTK_CONTAINER (priv->logo_file_editor), glade_eprop_disable_check, NULL);
gtk_container_forall (GTK_CONTAINER (priv->logo_icon_editor), glade_eprop_disable_check, NULL);
glade_widget_property_set_enabled (widget, "logo-icon-name", !as_file);
glade_widget_property_set_enabled (widget, "logo", as_file);
if (as_file) if (as_file)
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->logo_file_radio), TRUE); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->logo_file_radio), TRUE);
else else
@ -118,7 +135,7 @@ glade_about_dialog_editor_load (GladeEditable * editable, GladeWidget * widget)
} }
static void static void
glade_about_dialog_editor_editable_init (GladeEditableIface * iface) glade_about_dialog_editor_editable_init (GladeEditableIface *iface)
{ {
parent_editable_iface = g_type_interface_peek_parent (iface); parent_editable_iface = g_type_interface_peek_parent (iface);
@ -159,30 +176,23 @@ license_type_post_commit (GladePropertyShell *shell,
} }
static void static void
logo_icon_toggled (GtkWidget *widget, glade_about_dialog_editor_set_logo_as_file (GladeAboutDialogEditor *editor,
GladeAboutDialogEditor *editor) gboolean logo_as_file)
{ {
GladeAboutDialogEditorPrivate *priv = editor->priv;
GladeWidget *gwidget = glade_editable_loaded_widget (GLADE_EDITABLE (editor)); GladeWidget *gwidget = glade_editable_loaded_widget (GLADE_EDITABLE (editor));
GladeProperty *property; GladeProperty *property;
if (glade_editable_loading (GLADE_EDITABLE (editor)) || !gwidget) if (glade_editable_loading (GLADE_EDITABLE (editor)) || !gwidget)
return; return;
if (!gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (priv->logo_icon_radio)))
return;
glade_editable_block (GLADE_EDITABLE (editor)); glade_editable_block (GLADE_EDITABLE (editor));
glade_command_push_group (_("Setting %s to use a logo icon"), glade_command_push_group (logo_as_file ? _("Setting %s to use logo file") :
_("Setting %s to use a logo icon"),
glade_widget_get_name (gwidget)); glade_widget_get_name (gwidget));
property = glade_widget_get_property (gwidget, "logo-icon-name");
glade_command_set_property (property, NULL);
property = glade_widget_get_property (gwidget, "logo");
glade_command_set_property (property, NULL);
property = glade_widget_get_property (gwidget, "glade-logo-as-file"); property = glade_widget_get_property (gwidget, "glade-logo-as-file");
glade_command_set_property (property, FALSE); glade_command_set_property (property, logo_as_file);
glade_command_pop_group (); glade_command_pop_group ();
@ -193,37 +203,21 @@ logo_icon_toggled (GtkWidget *widget,
} }
static void static void
logo_file_toggled (GtkWidget *widget, logo_icon_toggled (GtkWidget *widget, GladeAboutDialogEditor *editor)
GladeAboutDialogEditor *editor)
{ {
GladeAboutDialogEditorPrivate *priv = editor->priv; if (!gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (widget)))
GladeWidget *gwidget = glade_editable_loaded_widget (GLADE_EDITABLE (editor));
GladeProperty *property;
if (glade_editable_loading (GLADE_EDITABLE (editor)) || !gwidget)
return; return;
if (!gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (priv->logo_file_radio))) glade_about_dialog_editor_set_logo_as_file (editor, FALSE);
}
static void
logo_file_toggled (GtkWidget *widget, GladeAboutDialogEditor *editor)
{
if (!gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (widget)))
return; return;
glade_editable_block (GLADE_EDITABLE (editor)); glade_about_dialog_editor_set_logo_as_file (editor, TRUE);
glade_command_push_group (_("Setting %s to use logo file"),
glade_widget_get_name (gwidget));
property = glade_widget_get_property (gwidget, "logo-icon-name");
glade_command_set_property (property, NULL);
property = glade_widget_get_property (gwidget, "logo");
glade_command_set_property (property, NULL);
property = glade_widget_get_property (gwidget, "glade-logo-as-file");
glade_command_set_property (property, TRUE);
glade_command_pop_group ();
glade_editable_unblock (GLADE_EDITABLE (editor));
/* reload buttons and sensitivity and stuff... */
glade_editable_load (GLADE_EDITABLE (editor), gwidget);
} }
GtkWidget * GtkWidget *

View File

@ -207,6 +207,7 @@ static gboolean
append_empty_row (GtkListStore *store, PangoAttrType type) append_empty_row (GtkListStore *store, PangoAttrType type)
{ {
const gchar *name = NULL; const gchar *name = NULL;
guint spin_digits = 0;
GtkListStore *model = get_enum_model_for_combo (type); GtkListStore *model = get_enum_model_for_combo (type);
GtkTreeIter iter; GtkTreeIter iter;
AttrEditType edit_type = EDIT_INVALID; AttrEditType edit_type = EDIT_INVALID;
@ -293,6 +294,7 @@ append_empty_row (GtkListStore *store, PangoAttrType type)
case PANGO_ATTR_SCALE: case PANGO_ATTR_SCALE:
edit_type = EDIT_SPIN; edit_type = EDIT_SPIN;
name = C_ ("textattr", "Scale"); name = C_ ("textattr", "Scale");
spin_digits = 3;
break; break;
case PANGO_ATTR_FONT_DESC: case PANGO_ATTR_FONT_DESC:
@ -327,6 +329,7 @@ append_empty_row (GtkListStore *store, PangoAttrType type)
COLUMN_TEXT_STYLE, PANGO_STYLE_ITALIC, COLUMN_TEXT_STYLE, PANGO_STYLE_ITALIC,
COLUMN_TEXT_FG, "Grey", COLUMN_TEXT_FG, "Grey",
COLUMN_COMBO_MODEL, model, COLUMN_COMBO_MODEL, model,
COLUMN_SPIN_DIGITS, spin_digits,
ACTIVATE_COLUMN_FROM_TYPE (edit_type), TRUE, -1); ACTIVATE_COLUMN_FROM_TYPE (edit_type), TRUE, -1);
return TRUE; return TRUE;
} }

View File

@ -92,9 +92,10 @@ typedef struct
#define GRAB_BORDER_WIDTH 7 #define GRAB_BORDER_WIDTH 7
#define GRAB_CORNER_WIDTH 7 #define GRAB_CORNER_WIDTH 7
static GObjectClass *parent_class;
static guint glade_fixed_signals[FIXED_SIGNALS]; static guint glade_fixed_signals[FIXED_SIGNALS];
G_DEFINE_TYPE (GladeFixed, glade_fixed, GLADE_TYPE_WIDGET);
/* From gtkmain.c */ /* From gtkmain.c */
static gboolean static gboolean
glade_fixed_boolean_handled_accumulator (GSignalInvocationHint * ihint, glade_fixed_boolean_handled_accumulator (GSignalInvocationHint * ihint,
@ -857,7 +858,7 @@ glade_fixed_add_child_impl (GladeWidget *gwidget_fixed,
&fixed->mouse_x, &fixed->mouse_y); &fixed->mouse_x, &fixed->mouse_y);
/* Chain up for the basic parenting */ /* Chain up for the basic parenting */
GLADE_WIDGET_CLASS (parent_class)->add_child GLADE_WIDGET_CLASS (glade_fixed_parent_class)->add_child
(GLADE_WIDGET (fixed), child, at_mouse); (GLADE_WIDGET (fixed), child, at_mouse);
/* We only operate on widgets here */ /* We only operate on widgets here */
@ -912,7 +913,7 @@ glade_fixed_remove_child_impl (GladeWidget *fixed, GladeWidget *child)
glade_fixed_disconnect_child (GLADE_FIXED (fixed), child); glade_fixed_disconnect_child (GLADE_FIXED (fixed), child);
/* Chain up for the basic unparenting */ /* Chain up for the basic unparenting */
GLADE_WIDGET_CLASS (parent_class)->remove_child (GLADE_WIDGET (fixed), child); GLADE_WIDGET_CLASS (glade_fixed_parent_class)->remove_child (GLADE_WIDGET (fixed), child);
} }
static void static void
@ -927,7 +928,7 @@ glade_fixed_replace_child_impl (GladeWidget *fixed,
glade_fixed_disconnect_child (GLADE_FIXED (fixed), gold_widget); glade_fixed_disconnect_child (GLADE_FIXED (fixed), gold_widget);
/* Chain up for the basic reparenting */ /* Chain up for the basic reparenting */
GLADE_WIDGET_CLASS (parent_class)->replace_child GLADE_WIDGET_CLASS (glade_fixed_parent_class)->replace_child
(GLADE_WIDGET (fixed), old_object, new_object); (GLADE_WIDGET (fixed), old_object, new_object);
if (gnew_widget) if (gnew_widget)
@ -952,7 +953,7 @@ glade_fixed_event (GladeWidget *gwidget_fixed, GdkEvent *event)
/* If the GladeWidget used this event... let it slide. /* If the GladeWidget used this event... let it slide.
*/ */
if (GLADE_WIDGET_CLASS (parent_class)->event (gwidget_fixed, event)) if (GLADE_WIDGET_CLASS (glade_fixed_parent_class)->event (gwidget_fixed, event))
return TRUE; return TRUE;
if ((device = gdk_event_get_device (event))) if ((device = gdk_event_get_device (event)))
@ -968,6 +969,10 @@ glade_fixed_event (GladeWidget *gwidget_fixed, GdkEvent *event)
} }
} }
/* If the container uses placeholder adding widget is already taken care of */
if (GWA_USE_PLACEHOLDERS (glade_widget_get_adaptor (gwidget_fixed)))
return FALSE;
switch (event->type) switch (event->type)
{ {
case GDK_BUTTON_PRESS: /* add widget */ case GDK_BUTTON_PRESS: /* add widget */
@ -1025,7 +1030,7 @@ glade_fixed_finalize (GObject *object)
g_free (fixed->width_prop); g_free (fixed->width_prop);
g_free (fixed->height_prop); g_free (fixed->height_prop);
G_OBJECT_CLASS (parent_class)->finalize (object); G_OBJECT_CLASS (glade_fixed_parent_class)->finalize (object);
} }
static void static void
@ -1111,8 +1116,6 @@ glade_fixed_class_init (GladeFixedClass *fixed_class)
GObjectClass *gobject_class = G_OBJECT_CLASS (fixed_class); GObjectClass *gobject_class = G_OBJECT_CLASS (fixed_class);
GladeWidgetClass *gwidget_class = GLADE_WIDGET_CLASS (fixed_class); GladeWidgetClass *gwidget_class = GLADE_WIDGET_CLASS (fixed_class);
parent_class = G_OBJECT_CLASS (g_type_class_peek_parent (gobject_class));
gobject_class->finalize = glade_fixed_finalize; gobject_class->finalize = glade_fixed_finalize;
gobject_class->set_property = glade_fixed_set_property; gobject_class->set_property = glade_fixed_set_property;
gobject_class->get_property = glade_fixed_get_property; gobject_class->get_property = glade_fixed_get_property;
@ -1230,31 +1233,6 @@ glade_fixed_class_init (GladeFixedClass *fixed_class)
API API
*******************************************************************************/ *******************************************************************************/
GType
glade_fixed_get_type (void)
{
static GType fixed_type = 0;
if (!fixed_type)
{
static const GTypeInfo fixed_info = {
sizeof (GladeFixedClass),
(GBaseInitFunc) NULL,
(GBaseFinalizeFunc) NULL,
(GClassInitFunc) glade_fixed_class_init,
(GClassFinalizeFunc) NULL,
NULL, /* class_data */
sizeof (GladeFixed),
0, /* n_preallocs */
(GInstanceInitFunc) glade_fixed_init,
};
fixed_type =
g_type_register_static (GLADE_TYPE_WIDGET,
"GladeFixed", &fixed_info, 0);
}
return fixed_type;
}
/* This is called from the catalog for a few widgets */ /* This is called from the catalog for a few widgets */
GladeWidget * GladeWidget *
glade_gtk_create_fixed_widget (GladeWidgetAdaptor * adaptor, glade_gtk_create_fixed_widget (GladeWidgetAdaptor * adaptor,

View File

@ -27,9 +27,51 @@
#include "glade-gtk.h" #include "glade-gtk.h"
GObject *
glade_gtk_about_dialog_construct_object (GladeWidgetAdaptor *adaptor,
guint n_parameters,
GParameter *parameters)
{
GParameter *new_params = g_new0 (GParameter, n_parameters + 1);
gboolean use_header_bar_set = FALSE;
GObject *retval;
gint i;
/* Here we need to force use-header-bar to FALSE in the runtime because
* GtkAboutDialog set it to TRUE in its contructor which then triggers a
* warning when glade tries to add placeholders in the action area
*/
for (i = 0; i < n_parameters; i++)
{
new_params[i] = parameters[i];
if (!g_strcmp0 (new_params[i].name, "use-header-bar"))
{
/* force the value to 0 */
g_value_set_int (&new_params[i].value, 0);
use_header_bar_set = TRUE;
}
}
if (!use_header_bar_set)
{
GParameter *use_header = &new_params[n_parameters++];
/* append value if it was not part of the parameters */
use_header->name = "use-header-bar";
g_value_init (&use_header->value, G_TYPE_INT);
g_value_set_int (&use_header->value, 0);
}
retval = GWA_GET_CLASS (GTK_TYPE_DIALOG)->construct_object (adaptor, n_parameters, new_params);
g_free (new_params);
return retval;
}
void void
glade_gtk_about_dialog_read_widget (GladeWidgetAdaptor * adaptor, glade_gtk_about_dialog_read_widget (GladeWidgetAdaptor *adaptor,
GladeWidget * widget, GladeXmlNode * node) GladeWidget *widget,
GladeXmlNode *node)
{ {
if (!(glade_xml_node_verify_silent (node, GLADE_XML_TAG_WIDGET) || if (!(glade_xml_node_verify_silent (node, GLADE_XML_TAG_WIDGET) ||
glade_xml_node_verify_silent (node, GLADE_XML_TAG_TEMPLATE))) glade_xml_node_verify_silent (node, GLADE_XML_TAG_TEMPLATE)))
@ -46,21 +88,23 @@ glade_gtk_about_dialog_read_widget (GladeWidgetAdaptor * adaptor,
} }
void void
glade_gtk_about_dialog_set_property (GladeWidgetAdaptor * adaptor, glade_gtk_about_dialog_set_property (GladeWidgetAdaptor *adaptor,
GObject * object, GObject *object,
const gchar * id, const GValue * value) const gchar *id,
const GValue *value)
{ {
if (!strcmp (id, "glade-logo-as-file")) if (!strcmp (id, "glade-logo-as-file"))
{ {
GladeWidget *gwidget = glade_widget_get_from_gobject (object); GladeWidget *gwidget = glade_widget_get_from_gobject (object);
GladeProperty *logo = glade_widget_get_property (gwidget, "logo");
GladeProperty *icon = glade_widget_get_property (gwidget, "logo-icon-name");
gboolean as_file = g_value_get_boolean (value);
glade_widget_property_set_sensitive (gwidget, "logo", FALSE, NOT_SELECTED_MSG); glade_property_set_sensitive (icon, !as_file, as_file ? NOT_SELECTED_MSG : NULL);
glade_widget_property_set_sensitive (gwidget, "logo-icon-name", FALSE, NOT_SELECTED_MSG); glade_property_set_enabled (icon, !as_file);
if (g_value_get_boolean (value)) glade_property_set_sensitive (logo, as_file, as_file ? NULL : NOT_SELECTED_MSG);
glade_widget_property_set_sensitive (gwidget, "logo", TRUE, NULL); glade_property_set_enabled (logo, as_file);
else
glade_widget_property_set_sensitive (gwidget, "logo-icon-name", TRUE, NULL);
} }
else else
GWA_GET_CLASS (GTK_TYPE_DIALOG)->set_property (adaptor, object, id, value); GWA_GET_CLASS (GTK_TYPE_DIALOG)->set_property (adaptor, object, id, value);

View File

@ -399,7 +399,7 @@ glade_gtk_label_read_widget (GladeWidgetAdaptor * adaptor,
glade_widget_property_set (widget, "label-wrap-mode", glade_widget_property_set (widget, "label-wrap-mode",
GLADE_LABEL_WRAP_FREE); GLADE_LABEL_WRAP_FREE);
if (glade_widget_property_original_default (widget, "use-markup")) if (glade_widget_property_original_default (widget, "use-underline"))
glade_widget_property_set_sensitive (widget, "mnemonic-widget", glade_widget_property_set_sensitive (widget, "mnemonic-widget",
FALSE, MNEMONIC_INSENSITIVE_MSG); FALSE, MNEMONIC_INSENSITIVE_MSG);

View File

@ -67,7 +67,7 @@ glade_gtk_message_dialog_image_determine_action (GtkMessageDialog * dialog,
*image = g_value_get_object (value); *image = g_value_get_object (value);
if (*image == NULL) if (*image == NULL)
if (glade_widget_get_from_gobject (dialog_image)) if (dialog_image && glade_widget_get_from_gobject (dialog_image))
return MD_IMAGE_ACTION_RESET; return MD_IMAGE_ACTION_RESET;
else else
return MD_IMAGE_ACTION_INVALID; return MD_IMAGE_ACTION_INVALID;

View File

@ -33,29 +33,23 @@ struct _GladeScaleEditorPrivate
GtkWidget *embed; GtkWidget *embed;
}; };
G_DEFINE_TYPE (GladeScaleEditor, glade_scale_editor, GLADE_TYPE_EDITOR_SKELETON) G_DEFINE_TYPE_WITH_PRIVATE (GladeScaleEditor, glade_scale_editor, GLADE_TYPE_EDITOR_SKELETON)
static void static void
glade_scale_editor_class_init (GladeScaleEditorClass * klass) glade_scale_editor_class_init (GladeScaleEditorClass * klass)
{ {
GObjectClass *object_class = G_OBJECT_CLASS (klass);
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
widget_class->grab_focus = glade_scale_editor_grab_focus; widget_class->grab_focus = glade_scale_editor_grab_focus;
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/gladegtk/glade-scale-editor.ui"); gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/gladegtk/glade-scale-editor.ui");
gtk_widget_class_bind_template_child_private (widget_class, GladeScaleEditor, embed); gtk_widget_class_bind_template_child_private (widget_class, GladeScaleEditor, embed);
g_type_class_add_private (object_class, sizeof (GladeScaleEditorPrivate));
} }
static void static void
glade_scale_editor_init (GladeScaleEditor * self) glade_scale_editor_init (GladeScaleEditor * self)
{ {
self->priv = self->priv = glade_scale_editor_get_instance_private (self);
G_TYPE_INSTANCE_GET_PRIVATE (self,
GLADE_TYPE_SCALE_EDITOR,
GladeScaleEditorPrivate);
gtk_widget_init_template (GTK_WIDGET (self)); gtk_widget_init_template (GTK_WIDGET (self));
} }

View File

@ -1,9 +1,9 @@
<glade-catalog name="gtk+" <glade-catalog name="gtk+"
version="3.10" version="3.12"
targetable="3.8,3.6,3.4,3.2,3.0" targetable="3.10,3.8,3.6,3.4,3.2,3.0"
icon-prefix="gtk" icon-prefix="gtk"
library="gladegtk" library="gladegtk"
domain="glade3" domain="glade"
book="gtk3"> book="gtk3">
<glade-widget-classes> <glade-widget-classes>
@ -2147,6 +2147,8 @@
<property id="default-width" default="320" optional="True" optional-default="False"/> <property id="default-width" default="320" optional="True" optional-default="False"/>
<property id="default-height" default="260" optional="True" optional-default="False"/> <property id="default-height" default="260" optional="True" optional-default="False"/>
<property id="type-hint" default="GDK_WINDOW_TYPE_HINT_DIALOG" save-always="True"/> <property id="type-hint" default="GDK_WINDOW_TYPE_HINT_DIALOG" save-always="True"/>
<!-- We disabled this property until Glade supports GtkHeaderBar editing -->
<property id="use-header-bar" since="3.12" disabled="True"/>
</properties> </properties>
</glade-widget-class> </glade-widget-class>
@ -2828,6 +2830,7 @@
<glade-widget-class name="GtkAboutDialog" generic-name="aboutdialog" _title="About Dialog"> <glade-widget-class name="GtkAboutDialog" generic-name="aboutdialog" _title="About Dialog">
<construct-object-function>glade_gtk_about_dialog_construct_object</construct-object-function>
<read-widget-function>glade_gtk_about_dialog_read_widget</read-widget-function> <read-widget-function>glade_gtk_about_dialog_read_widget</read-widget-function>
<set-property-function>glade_gtk_about_dialog_set_property</set-property-function> <set-property-function>glade_gtk_about_dialog_set_property</set-property-function>
@ -2836,8 +2839,8 @@
<property id="version" custom-layout="True"/> <property id="version" custom-layout="True"/>
<property id="license" translatable="True" multiline="True" custom-layout="True"/> <property id="license" translatable="True" multiline="True" custom-layout="True"/>
<property id="wrap-license" custom-layout="True"/> <property id="wrap-license" custom-layout="True"/>
<property id="logo-icon-name" themed-icon="True" custom-layout="True"/> <property id="logo-icon-name" themed-icon="True" custom-layout="True" optional="True"/>
<property id="logo" custom-layout="True"/> <property id="logo" custom-layout="True" optional="True"/>
<property id="website" custom-layout="True"/> <property id="website" custom-layout="True"/>
<property id="website-label" translatable="True" multiline="True" custom-layout="True"/> <property id="website-label" translatable="True" multiline="True" custom-layout="True"/>
<property id="authors" custom-layout="True"/> <property id="authors" custom-layout="True"/>

View File

@ -2,7 +2,7 @@
library="gladegtk" library="gladegtk"
icon-prefix="gtk" icon-prefix="gtk"
depends="gtk+" depends="gtk+"
domain="glade3" domain="glade"
book="gtk"> book="gtk">
<glade-widget-classes> <glade-widget-classes>

2713
po/ca.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

260
po/cs.po
View File

@ -10,11 +10,11 @@
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: glade master\n" "Project-Id-Version: glade glade-3.18\n"
"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?" "Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?"
"product=glade&keywords=I18N+L10N&component=general\n" "product=glade&keywords=I18N+L10N&component=general\n"
"POT-Creation-Date: 2014-03-14 06:45+0000\n" "POT-Creation-Date: 2014-03-31 06:00+0000\n"
"PO-Revision-Date: 2014-03-14 10:51+0100\n" "PO-Revision-Date: 2014-03-31 10:42+0200\n"
"Last-Translator: Marek Černocký <marek@manet.cz>\n" "Last-Translator: Marek Černocký <marek@manet.cz>\n"
"Language-Team: Czech <gnome-cs-list@gnome.org>\n" "Language-Team: Czech <gnome-cs-list@gnome.org>\n"
"Language: cs\n" "Language: cs\n"
@ -82,190 +82,190 @@ msgstr ""
msgid "[Read Only]" msgid "[Read Only]"
msgstr "[Pouze pro čtení]" msgstr "[Pouze pro čtení]"
#: ../src/glade-window.c:322 #: ../src/glade-window.c:323
msgid "User Interface Designer" msgid "User Interface Designer"
msgstr "Návrhář uživatelského rozhraní" msgstr "Návrhář uživatelského rozhraní"
#. translators: referring to the action of activating a file named '%s'. #. translators: referring to the action of activating a file named '%s'.
#. * we also indicate to users that the file may be read-only with #. * we also indicate to users that the file may be read-only with
#. * the second '%s' #. * the second '%s'
#: ../src/glade-window.c:523 #: ../src/glade-window.c:524
#, c-format #, c-format
msgid "Activate '%s' %s" msgid "Activate '%s' %s"
msgstr "Aktivovat „%s“ %s" msgstr "Aktivovat „%s“ %s"
#. translators: referring to the action of activating a file named '%s' #. translators: referring to the action of activating a file named '%s'
#. FIXME add hint for translators #. FIXME add hint for translators
#: ../src/glade-window.c:529 ../src/glade-window.c:537 #: ../src/glade-window.c:530 ../src/glade-window.c:538
#, c-format #, c-format
msgid "Activate '%s'" msgid "Activate '%s'"
msgstr "Aktivovat „%s“" msgstr "Aktivovat „%s“"
#. Name #. Name
#: ../src/glade-window.c:585 ../src/glade-registration.glade.h:4 #: ../src/glade-window.c:586 ../src/glade-registration.glade.h:4
#: ../gladeui/glade-base-editor.c:2030 #: ../gladeui/glade-base-editor.c:2030
#: ../gladeui/glade-project-properties.ui.h:12 #: ../gladeui/glade-project-properties.ui.h:12
#: ../plugins/gtk+/glade-about-dialog-editor.ui.h:2 #: ../plugins/gtk+/glade-about-dialog-editor.ui.h:2
msgid "Name:" msgid "Name:"
msgstr "Název:" msgstr "Název:"
#: ../src/glade-window.c:588 #: ../src/glade-window.c:589
msgid "Requires:" msgid "Requires:"
msgstr "Vyžaduje:" msgstr "Vyžaduje:"
#: ../src/glade-window.c:647 #: ../src/glade-window.c:648
msgid "_Undo" msgid "_Undo"
msgstr "_Zpět" msgstr "_Zpět"
#: ../src/glade-window.c:650 #: ../src/glade-window.c:651
#, c-format #, c-format
msgid "Undo: %s" msgid "Undo: %s"
msgstr "Zpět: %s" msgstr "Zpět: %s"
#: ../src/glade-window.c:651 ../src/glade-window.c:662 #: ../src/glade-window.c:652 ../src/glade-window.c:663
msgid "the last action" msgid "the last action"
msgstr "poslední akce" msgstr "poslední akce"
#: ../src/glade-window.c:658 #: ../src/glade-window.c:659
msgid "_Redo" msgid "_Redo"
msgstr "Zn_ovu" msgstr "Zn_ovu"
#: ../src/glade-window.c:661 #: ../src/glade-window.c:662
#, c-format #, c-format
msgid "Redo: %s" msgid "Redo: %s"
msgstr "Znovu: %s" msgstr "Znovu: %s"
#: ../src/glade-window.c:693 #: ../src/glade-window.c:694
#, c-format #, c-format
msgid "Autosaving '%s'" msgid "Autosaving '%s'"
msgstr "Automaticky se ukládá „%s“" msgstr "Automaticky se ukládá „%s“"
#: ../src/glade-window.c:698 #: ../src/glade-window.c:699
#, c-format #, c-format
msgid "Error autosaving '%s'" msgid "Error autosaving '%s'"
msgstr "Chyba automatického ukládání „%s“" msgstr "Chyba automatického ukládání „%s“"
#: ../src/glade-window.c:1117 #: ../src/glade-window.c:1118
msgid "Open…" msgid "Open…"
msgstr "Otevřít…" msgstr "Otevřít…"
#: ../src/glade-window.c:1151 #: ../src/glade-window.c:1152
#, c-format #, c-format
msgid "Project %s is still loading." msgid "Project %s is still loading."
msgstr "Projekt „%s“ se doposud načítá." msgstr "Projekt „%s“ se doposud načítá."
#: ../src/glade-window.c:1170 #: ../src/glade-window.c:1171
msgid "Failed to backup existing file, continue saving?" msgid "Failed to backup existing file, continue saving?"
msgstr "Selhalo zazálohování stávajícího souboru. Pokračovat v ukládání?" msgstr "Selhalo zazálohování stávajícího souboru. Pokračovat v ukládání?"
#: ../src/glade-window.c:1192 #: ../src/glade-window.c:1193
#, c-format #, c-format
msgid "Failed to save %s: %s" msgid "Failed to save %s: %s"
msgstr "Nezdařilo se uložit %s: %s" msgstr "Nezdařilo se uložit %s: %s"
#: ../src/glade-window.c:1231 #: ../src/glade-window.c:1232
#, c-format #, c-format
msgid "The file %s has been modified since reading it" msgid "The file %s has been modified since reading it"
msgstr "Od svého načtení se soubor %s změnil" msgstr "Od svého načtení se soubor %s změnil"
#: ../src/glade-window.c:1235 #: ../src/glade-window.c:1236
msgid "If you save it, all the external changes could be lost. Save it anyway?" msgid "If you save it, all the external changes could be lost. Save it anyway?"
msgstr "" msgstr ""
"Pokud jej uložíte, všechny externí změny budou přepsány. Přesto uložit?" "Pokud jej uložíte, všechny externí změny budou přepsány. Přesto uložit?"
#: ../src/glade-window.c:1240 #: ../src/glade-window.c:1241
msgid "_Save Anyway" msgid "_Save Anyway"
msgstr "Pře_sto uložit" msgstr "Pře_sto uložit"
#: ../src/glade-window.c:1248 #: ../src/glade-window.c:1249
msgid "_Don't Save" msgid "_Don't Save"
msgstr "Neuklá_dat" msgstr "Neuklá_dat"
#: ../src/glade-window.c:1282 #: ../src/glade-window.c:1283
#, c-format #, c-format
msgid "Project '%s' saved" msgid "Project '%s' saved"
msgstr "Projekt „%s“ byl uložen" msgstr "Projekt „%s“ byl uložen"
#: ../src/glade-window.c:1313 #: ../src/glade-window.c:1314
msgid "Save As…" msgid "Save As…"
msgstr "Uložit jako…" msgstr "Uložit jako…"
#: ../src/glade-window.c:1377 #: ../src/glade-window.c:1378
#, c-format #, c-format
msgid "Could not save the file %s" msgid "Could not save the file %s"
msgstr "Nelze uložit soubor %s" msgstr "Nelze uložit soubor %s"
#: ../src/glade-window.c:1381 #: ../src/glade-window.c:1382
msgid "You do not have the permissions necessary to save the file." msgid "You do not have the permissions necessary to save the file."
msgstr "Nemáte dostatečná oprávnění nezbytná k uložení souboru." msgstr "Nemáte dostatečná oprávnění nezbytná k uložení souboru."
#: ../src/glade-window.c:1403 #: ../src/glade-window.c:1404
#, c-format #, c-format
msgid "Could not save file %s. Another project with that path is open." msgid "Could not save file %s. Another project with that path is open."
msgstr "Nelze uložit soubor %s. Je otevřený jiný projekt s touto cestou." msgstr "Nelze uložit soubor %s. Je otevřený jiný projekt s touto cestou."
#: ../src/glade-window.c:1428 #: ../src/glade-window.c:1429
msgid "No open projects to save" msgid "No open projects to save"
msgstr "Není otevřený žádný projekt, který by mohl být uložen" msgstr "Není otevřený žádný projekt, který by mohl být uložen"
#: ../src/glade-window.c:1458 #: ../src/glade-window.c:1459
#, c-format #, c-format
msgid "Save changes to project \"%s\" before closing?" msgid "Save changes to project \"%s\" before closing?"
msgstr "Uložit před zavření změny do projektu „%s“?" msgstr "Uložit před zavření změny do projektu „%s“?"
#: ../src/glade-window.c:1466 #: ../src/glade-window.c:1467
msgid "Your changes will be lost if you don't save them." msgid "Your changes will be lost if you don't save them."
msgstr "Pokud je neuložíte, budou všechny vaše změny navždy ztraceny." msgstr "Pokud je neuložíte, budou všechny vaše změny navždy ztraceny."
#: ../src/glade-window.c:1470 #: ../src/glade-window.c:1471
msgid "Close _without Saving" msgid "Close _without Saving"
msgstr "Za_vřít bez uložení" msgstr "Za_vřít bez uložení"
#: ../src/glade-window.c:1500 #: ../src/glade-window.c:1501
msgid "Save…" msgid "Save…"
msgstr "Uložit…" msgstr "Uložit…"
#: ../src/glade-window.c:2466 #: ../src/glade-window.c:2467
msgid "Close document" msgid "Close document"
msgstr "Zavřít dokument" msgstr "Zavřít dokument"
#: ../src/glade-window.c:2568 #: ../src/glade-window.c:2564
msgid "Could not create a new project." msgid "Could not create a new project."
msgstr "Nelze vytvořit nový projekt." msgstr "Nelze vytvořit nový projekt."
#: ../src/glade-window.c:2621 #: ../src/glade-window.c:2617
#, c-format #, c-format
msgid "The project %s has unsaved changes" msgid "The project %s has unsaved changes"
msgstr "Projekt %s obsahuje neuložené změny" msgstr "Projekt %s obsahuje neuložené změny"
#: ../src/glade-window.c:2626 #: ../src/glade-window.c:2622
msgid "If you reload it, all unsaved changes could be lost. Reload it anyway?" msgid "If you reload it, all unsaved changes could be lost. Reload it anyway?"
msgstr "" msgstr ""
"Pokud jej znovu načtete, všechny neuložené změny budou ztraceny. Přejete si " "Pokud jej znovu načtete, všechny neuložené změny budou ztraceny. Přejete si "
"přesto pokračovat?" "přesto pokračovat?"
#: ../src/glade-window.c:2636 #: ../src/glade-window.c:2632
#, c-format #, c-format
msgid "The project file %s has been externally modified" msgid "The project file %s has been externally modified"
msgstr "Soubor projektu %s byl externě změněn" msgstr "Soubor projektu %s byl externě změněn"
#: ../src/glade-window.c:2641 #: ../src/glade-window.c:2637
msgid "Do you want to reload the project?" msgid "Do you want to reload the project?"
msgstr "Chcete projekt znovu načíst?" msgstr "Chcete projekt znovu načíst?"
#: ../src/glade-window.c:2647 #: ../src/glade-window.c:2643
msgid "_Reload" msgid "_Reload"
msgstr "_Obnovit" msgstr "_Obnovit"
#: ../src/glade-window.c:3216 #: ../src/glade-window.c:3214
msgid "Palette" msgid "Palette"
msgstr "Paleta" msgstr "Paleta"
#: ../src/glade-window.c:3218 #: ../src/glade-window.c:3216
msgid "Inspector" msgid "Inspector"
msgstr "Inspektor" msgstr "Inspektor"
#: ../src/glade-window.c:3220 ../src/glade.glade.h:33 #: ../src/glade-window.c:3218 ../src/glade.glade.h:33
#: ../gladeui/glade-editor.c:320 ../gladeui/glade-widget.c:1385 #: ../gladeui/glade-editor.c:320 ../gladeui/glade-widget.c:1385
#: ../gladeui/glade-project-properties.ui.h:11 #: ../gladeui/glade-project-properties.ui.h:11
#: ../plugins/gtk+/glade-gtk-action-group.c:177 #: ../plugins/gtk+/glade-gtk-action-group.c:177
@ -278,6 +278,30 @@ msgstr "Inspektor"
msgid "Properties" msgid "Properties"
msgstr "Vlastnosti" msgstr "Vlastnosti"
#. translators: Primary message of a dialog used to notify the user about the survey
#: ../src/glade-window.c:3479
msgid ""
"We are conducting a user survey\n"
" would you like to take it now?"
msgstr ""
"Provádíme průzkum mezi uživateli.\n"
"Chtěli byste se jej nyní zůčastnit?"
#. translators: Secondary text of a dialog used to notify the user about the survey
#: ../src/glade-window.c:3483
msgid "If not, you can always find it in the Help menu."
msgstr "Pokud ne, kdykoliv později jej najdete v nabídce Nápověda."
#: ../src/glade-window.c:3485
msgid "_Do not show this dialog again"
msgstr "Toto _dialogové okno příště nezobrazovat"
#. translators: Text to show in the statusbar if the user did not completed the survey and choose not to show the notification dialog again
#: ../src/glade-window.c:3506
msgid "Go to Help -> Registration & User Survey and complete our survey!"
msgstr ""
"Přejděte do „Nápověda“ -> „Registrace a dotazník“ a dokončete vyplňování!"
#: ../src/main.c:51 #: ../src/main.c:51
msgid "Output version information and exit" msgid "Output version information and exit"
msgstr "Vypíše informace o verzi a skončí" msgstr "Vypíše informace o verzi a skončí"
@ -773,50 +797,50 @@ msgstr "Zvláštní cesty ke katalogům"
msgid "Select a catalog search path" msgid "Select a catalog search path"
msgstr "Vyberte umístění, kde katalog hledat" msgstr "Vyberte umístění, kde katalog hledat"
#: ../src/glade-registration.c:282 #: ../src/glade-registration.c:290
#, c-format #, c-format
msgid "Connecting to %s" msgid "Connecting to %s"
msgstr "Připojuje se k %s" msgstr "Připojuje se k %s"
#: ../src/glade-registration.c:285 #: ../src/glade-registration.c:293
#, c-format #, c-format
msgid "Sending data to %s" msgid "Sending data to %s"
msgstr "Odesílají se data na %s" msgstr "Odesílají se data na %s"
#: ../src/glade-registration.c:288 #: ../src/glade-registration.c:296
#, c-format #, c-format
msgid "Waiting for %s" msgid "Waiting for %s"
msgstr "Čeká se na %s" msgstr "Čeká se na %s"
#: ../src/glade-registration.c:291 #: ../src/glade-registration.c:299
#, c-format #, c-format
msgid "Receiving data from %s" msgid "Receiving data from %s"
msgstr "Přijímají se data z %s" msgstr "Přijímají se data z %s"
#: ../src/glade-registration.c:323 #: ../src/glade-registration.c:331
msgid "Sorry, automatic subscription to Glade Users mailing list failed" msgid "Sorry, automatic subscription to Glade Users mailing list failed"
msgstr "" msgstr ""
"Bohužel, ale automatické přihlášení k poštovní konferenci uživatelů Glade " "Bohužel, ale automatické přihlášení k poštovní konferenci uživatelů Glade "
"selhalo" "selhalo"
#: ../src/glade-registration.c:326 #: ../src/glade-registration.c:334
msgid "Open Glade Users Website" msgid "Open Glade Users Website"
msgstr "Otevřít web uživatelů Glade" msgstr "Otevřít web uživatelů Glade"
#: ../src/glade-registration.c:378 #: ../src/glade-registration.c:386
msgid "Internal server error" msgid "Internal server error"
msgstr "Interní chyba serveru" msgstr "Interní chyba serveru"
#: ../src/glade-registration.c:402 #: ../src/glade-registration.c:410
msgid "Thank you for taking the time to complete the survey, we appreciate it!" msgid "Thank you for taking the time to complete the survey, we appreciate it!"
msgstr "" msgstr ""
"Děkujeme, že jste si udělali čas na vyplnění dotazníku. Vážíme si toho!" "Děkujeme, že jste si udělali čas na vyplnění dotazníku. Vážíme si toho!"
#: ../src/glade-registration.c:407 #: ../src/glade-registration.c:418
msgid "Name and Email fields are required" msgid "Name and Email fields are required"
msgstr "Pole se jménem a e-mailem jsou povinná" msgstr "Pole se jménem a e-mailem jsou povinná"
#: ../src/glade-registration.c:410 #: ../src/glade-registration.c:421
msgid "" msgid ""
"Ops! Email address is already in use!\n" "Ops! Email address is already in use!\n"
"To update information you need to provide the token that was sent to your " "To update information you need to provide the token that was sent to your "
@ -826,17 +850,17 @@ msgstr ""
"Abyste mohli údaje aktualizovat, musíte zadat tiket, který jste obdrželi e-" "Abyste mohli údaje aktualizovat, musíte zadat tiket, který jste obdrželi e-"
"mailem." "mailem."
#: ../src/glade-registration.c:413 #: ../src/glade-registration.c:424
#, c-format #, c-format
msgid "Ops! Error saving user information: %s" msgid "Ops! Error saving user information: %s"
msgstr "Problém! Chyba při ukládání údajů o uživateli: %s" msgstr "Problém! Chyba při ukládání údajů o uživateli: %s"
#: ../src/glade-registration.c:416 #: ../src/glade-registration.c:427
#, c-format #, c-format
msgid "Ops! Error saving survey data: %s" msgid "Ops! Error saving survey data: %s"
msgstr "Problém! Chyba při ukládání dotazníkových dat: %s" msgstr "Problém! Chyba při ukládání dotazníkových dat: %s"
#: ../src/glade-registration.c:419 #: ../src/glade-registration.c:430
#, c-format #, c-format
msgid "Ops! Error accessing DB: %s" msgid "Ops! Error accessing DB: %s"
msgstr "Problém! Chyba při přístupu k DB: %s" msgstr "Problém! Chyba při přístupu k DB: %s"
@ -1616,7 +1640,7 @@ msgstr "Nastavení více vlastností"
msgid "Setting %s of %s" msgid "Setting %s of %s"
msgstr "Nastavení „%s“ pro „%s“" msgstr "Nastavení „%s“ pro „%s“"
#: ../gladeui/glade-command.c:823 ../gladeui/glade-editor-property.c:3350 #: ../gladeui/glade-command.c:823 ../gladeui/glade-editor-property.c:3355
#, c-format #, c-format
msgid "Setting %s of %s to %s" msgid "Setting %s of %s to %s"
msgstr "Nastavení „%s“ pro „%s“ na %s" msgstr "Nastavení „%s“ pro „%s“ na %s"
@ -1901,41 +1925,41 @@ msgstr "Vlastní text"
msgid "Custom Text to display in the property label" msgid "Custom Text to display in the property label"
msgstr "Vlastní text pro zobrazení v popisku vlastnosti" msgstr "Vlastní text pro zobrazení v popisku vlastnosti"
#: ../gladeui/glade-editor-property.c:1262 #: ../gladeui/glade-editor-property.c:1267
msgid "Select Fields" msgid "Select Fields"
msgstr "Výběr polí" msgstr "Výběr polí"
#: ../gladeui/glade-editor-property.c:1285 #: ../gladeui/glade-editor-property.c:1290
msgid "_Select individual fields:" msgid "_Select individual fields:"
msgstr "_Označte jednotlivá pole:" msgstr "_Označte jednotlivá pole:"
#: ../gladeui/glade-editor-property.c:1635 #: ../gladeui/glade-editor-property.c:1640
msgid "Select Named Icon" msgid "Select Named Icon"
msgstr "Výběr pojmenované ikony" msgstr "Výběr pojmenované ikony"
#: ../gladeui/glade-editor-property.c:1942 #: ../gladeui/glade-editor-property.c:1947
msgid "Edit Text" msgid "Edit Text"
msgstr "Úprava textu" msgstr "Úprava textu"
#. Text #. Text
#: ../gladeui/glade-editor-property.c:1972 #: ../gladeui/glade-editor-property.c:1977
msgid "_Text:" msgid "_Text:"
msgstr "_Text:" msgstr "_Text:"
#. Translatable #. Translatable
#: ../gladeui/glade-editor-property.c:2008 #: ../gladeui/glade-editor-property.c:2013
msgid "T_ranslatable" msgid "T_ranslatable"
msgstr "_Přeložitelný" msgstr "_Přeložitelný"
#: ../gladeui/glade-editor-property.c:2014 ../gladeui/glade-property.c:677 #: ../gladeui/glade-editor-property.c:2019 ../gladeui/glade-property.c:677
msgid "Whether this property is translatable" msgid "Whether this property is translatable"
msgstr "Zda se má tato vlastnost překládat" msgstr "Zda se má tato vlastnost překládat"
#: ../gladeui/glade-editor-property.c:2022 #: ../gladeui/glade-editor-property.c:2027
msgid "Conte_xt for translation:" msgid "Conte_xt for translation:"
msgstr "Konte_xt pro překlad:" msgstr "Konte_xt pro překlad:"
#: ../gladeui/glade-editor-property.c:2028 #: ../gladeui/glade-editor-property.c:2033
msgid "" msgid ""
"For short and ambiguous strings: type a word here to differentiate the " "For short and ambiguous strings: type a word here to differentiate the "
"meaning of this string from the meaning of other occurrences of the same " "meaning of this string from the meaning of other occurrences of the same "
@ -1944,63 +1968,63 @@ msgstr ""
"Pro krátké a nejednoznačné řetězce: zadejte zde slovo, které odliší význam " "Pro krátké a nejednoznačné řetězce: zadejte zde slovo, které odliší význam "
"tohoto řetězce od významu dalšího výskytu téhož řetězce" "tohoto řetězce od významu dalšího výskytu téhož řetězce"
#: ../gladeui/glade-editor-property.c:2060 #: ../gladeui/glade-editor-property.c:2065
msgid "Co_mments for translators:" msgid "Co_mments for translators:"
msgstr "Pozná_mky pro překladatele:" msgstr "Pozná_mky pro překladatele:"
#: ../gladeui/glade-editor-property.c:2150 #: ../gladeui/glade-editor-property.c:2155
msgid "Select a file from the project resource directory" msgid "Select a file from the project resource directory"
msgstr "Vyberte soubor ze složky s prostředky projektu" msgstr "Vyberte soubor ze složky s prostředky projektu"
#. GtkInputPurpose enumeration value #. GtkInputPurpose enumeration value
#: ../gladeui/glade-editor-property.c:3018 #: ../gladeui/glade-editor-property.c:3023
#: ../gladeui/glade-widget-adaptor.c:1392 ../gladeui/glade-widget.c:1349 #: ../gladeui/glade-widget-adaptor.c:1392 ../gladeui/glade-widget.c:1349
#: ../plugins/gtk+/gtk+.xml.in.h:499 #: ../plugins/gtk+/gtk+.xml.in.h:499
msgid "Name" msgid "Name"
msgstr "Název" msgstr "Název"
#: ../gladeui/glade-editor-property.c:3027 ../gladeui/glade-property.c:644 #: ../gladeui/glade-editor-property.c:3032 ../gladeui/glade-property.c:644
msgid "Class" msgid "Class"
msgstr "Třída" msgstr "Třída"
#: ../gladeui/glade-editor-property.c:3047 #: ../gladeui/glade-editor-property.c:3052
#, c-format #, c-format
msgid "Choose parentless %s type objects in this project" msgid "Choose parentless %s type objects in this project"
msgstr "Výběr objektu typu %s bez rodičů v tomto projektu" msgstr "Výběr objektu typu %s bez rodičů v tomto projektu"
#: ../gladeui/glade-editor-property.c:3049 #: ../gladeui/glade-editor-property.c:3054
#, c-format #, c-format
msgid "Choose %s type objects in this project" msgid "Choose %s type objects in this project"
msgstr "Výběr objektu typu %s v tomto projektu" msgstr "Výběr objektu typu %s v tomto projektu"
#: ../gladeui/glade-editor-property.c:3069 #: ../gladeui/glade-editor-property.c:3074
#, c-format #, c-format
msgid "Choose a parentless %s in this project" msgid "Choose a parentless %s in this project"
msgstr "Výběr objektu %s bez rodičů v tomto projektu" msgstr "Výběr objektu %s bez rodičů v tomto projektu"
#: ../gladeui/glade-editor-property.c:3071 #: ../gladeui/glade-editor-property.c:3076
#, c-format #, c-format
msgid "Choose a %s in this project" msgid "Choose a %s in this project"
msgstr "Výběr objektu %s v tomto projektu" msgstr "Výběr objektu %s v tomto projektu"
#. Checklist #. Checklist
#: ../gladeui/glade-editor-property.c:3128 #: ../gladeui/glade-editor-property.c:3133
#: ../gladeui/glade-editor-property.c:3269 #: ../gladeui/glade-editor-property.c:3274
msgid "O_bjects:" msgid "O_bjects:"
msgstr "O_bjekty:" msgstr "O_bjekty:"
#: ../gladeui/glade-editor-property.c:3221 #: ../gladeui/glade-editor-property.c:3226
msgid "_New" msgid "_New"
msgstr "_Nový" msgstr "_Nový"
#. translators: Creating 'a widget' for 'a property' of 'a widget' #. translators: Creating 'a widget' for 'a property' of 'a widget'
#: ../gladeui/glade-editor-property.c:3376 #: ../gladeui/glade-editor-property.c:3381
#, c-format #, c-format
msgid "Creating %s for %s of %s" msgid "Creating %s for %s of %s"
msgstr "Vytvoření %s pro vlastnost %s widgetu %s" msgstr "Vytvoření %s pro vlastnost %s widgetu %s"
#. Checklist #. Checklist
#: ../gladeui/glade-editor-property.c:3572 #: ../gladeui/glade-editor-property.c:3577
msgid "Objects:" msgid "Objects:"
msgstr "Objekty:" msgstr "Objekty:"
@ -2306,28 +2330,28 @@ msgstr "Cesta k poskytovateli CSS"
msgid "Path to use as the custom CSS provider for this project." msgid "Path to use as the custom CSS provider for this project."
msgstr "Cesta použitá jako vlastní poskytovatel CSS pro tento projekt." msgstr "Cesta použitá jako vlastní poskytovatel CSS pro tento projekt."
#: ../gladeui/glade-project.c:1126 #: ../gladeui/glade-project.c:1129
#, c-format #, c-format
msgid "(internal %s)" msgid "(internal %s)"
msgstr "(interní %s)" msgstr "(interní %s)"
#: ../gladeui/glade-project.c:1131 #: ../gladeui/glade-project.c:1134
#, c-format #, c-format
msgid "(%s child)" msgid "(%s child)"
msgstr "(potomek %s)" msgstr "(potomek %s)"
#: ../gladeui/glade-project.c:1133 #: ../gladeui/glade-project.c:1136
#, c-format #, c-format
msgid "(template)" msgid "(template)"
msgstr "(šablona)" msgstr "(šablona)"
#. translators: refers to a property named '%s' of widget '%s' #. translators: refers to a property named '%s' of widget '%s'
#: ../gladeui/glade-project.c:1141 #: ../gladeui/glade-project.c:1144
#, c-format #, c-format
msgid "(%s of %s)" msgid "(%s of %s)"
msgstr "(%s widgetu %s)" msgstr "(%s widgetu %s)"
#: ../gladeui/glade-project.c:1499 #: ../gladeui/glade-project.c:1502
#, c-format #, c-format
msgid "" msgid ""
"Failed to load %s.\n" "Failed to load %s.\n"
@ -2337,26 +2361,26 @@ msgstr ""
"Nejsou dostupné následující vyžadované katalogy: %s" "Nejsou dostupné následující vyžadované katalogy: %s"
#. translators: refers to project name '%s' that targets gtk version '%d.%d' #. translators: refers to project name '%s' that targets gtk version '%d.%d'
#: ../gladeui/glade-project.c:1870 #: ../gladeui/glade-project.c:1873
#, c-format #, c-format
msgid "%s targets Gtk+ %d.%d" msgid "%s targets Gtk+ %d.%d"
msgstr "%s používá Gtk+ %d.%d" msgstr "%s používá Gtk+ %d.%d"
#: ../gladeui/glade-project.c:1909 #: ../gladeui/glade-project.c:1912
msgid "Specially because there is an object that can not be build with type " msgid "Specially because there is an object that can not be build with type "
msgstr "Zejména proto, že jeden z objektů nemůže být sestaven s typem " msgstr "Zejména proto, že jeden z objektů nemůže být sestaven s typem "
#: ../gladeui/glade-project.c:1914 #: ../gladeui/glade-project.c:1917
#, c-format #, c-format
msgid "" msgid ""
"Specially because there are %d objects that can not be build with types " "Specially because there are %d objects that can not be build with types "
msgstr "Zejména proto, že několik objektů (%d) nemůže být sestaveno s typy " msgstr "Zejména proto, že několik objektů (%d) nemůže být sestaveno s typy "
#: ../gladeui/glade-project.c:1921 #: ../gladeui/glade-project.c:1924
msgid " and " msgid " and "
msgstr " a " msgstr " a "
#: ../gladeui/glade-project.c:1939 #: ../gladeui/glade-project.c:1942
#, c-format #, c-format
msgid "" msgid ""
"But this version of Glade is for GTK+ 3 only.\n" "But this version of Glade is for GTK+ 3 only.\n"
@ -2369,7 +2393,7 @@ msgstr ""
"v Glade 3.8 zavržené.\n" "v Glade 3.8 zavržené.\n"
"%s" "%s"
#: ../gladeui/glade-project.c:2000 #: ../gladeui/glade-project.c:2003
#, c-format #, c-format
msgid "" msgid ""
"An automatically saved version of `%s' is more recent.\n" "An automatically saved version of `%s' is more recent.\n"
@ -2380,7 +2404,7 @@ msgstr ""
"\n" "\n"
"Přejete si místo toho načíst automaticky uloženou verzi?" "Přejete si místo toho načíst automaticky uloženou verzi?"
#: ../gladeui/glade-project.c:2140 #: ../gladeui/glade-project.c:2143
#, c-format #, c-format
msgid "%s document properties" msgid "%s document properties"
msgstr "Vlastnosti dokumentu %s" msgstr "Vlastnosti dokumentu %s"
@ -2393,7 +2417,7 @@ msgstr "Vlastnosti dokumentu %s"
#. * ugly messy code with comments in line breaks inside function calls). #. * ugly messy code with comments in line breaks inside function calls).
#. #.
#. translators: refers to a widget in toolkit version '%s %d.%d' and a project targeting toolkit version '%s %d.%d' #. translators: refers to a widget in toolkit version '%s %d.%d' and a project targeting toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2896 #: ../gladeui/glade-project.c:2899
#, c-format #, c-format
msgid "This widget was introduced in %s %d.%d while project targets %s %d.%d" msgid "This widget was introduced in %s %d.%d while project targets %s %d.%d"
msgstr "" msgstr ""
@ -2401,24 +2425,24 @@ msgstr ""
"%d" "%d"
#. translators: refers to a widget '[%s]' introduced in toolkit version '%s %d.%d' #. translators: refers to a widget '[%s]' introduced in toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2900 #: ../gladeui/glade-project.c:2903
#, c-format #, c-format
msgid "[%s] Object class '%s' was introduced in %s %d.%d\n" msgid "[%s] Object class '%s' was introduced in %s %d.%d\n"
msgstr "[%s] Třída objektu „%s“ byla zavedena v %s %d.%d\n" msgstr "[%s] Třída objektu „%s“ byla zavedena v %s %d.%d\n"
#: ../gladeui/glade-project.c:2902 #: ../gladeui/glade-project.c:2905
msgid "This widget is deprecated" msgid "This widget is deprecated"
msgstr "Tento widget je zavržený" msgstr "Tento widget je zavržený"
#. translators: refers to a widget '[%s]' loaded from toolkit version '%s %d.%d' #. translators: refers to a widget '[%s]' loaded from toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2905 #: ../gladeui/glade-project.c:2908
#, c-format #, c-format
msgid "[%s] Object class '%s' from %s %d.%d is deprecated\n" msgid "[%s] Object class '%s' from %s %d.%d is deprecated\n"
msgstr "[%s] Třída objektu „%s“ z %s %d.%d je zavržená\n" msgstr "[%s] Třída objektu „%s“ z %s %d.%d je zavržená\n"
#. translators: refers to a property in toolkit version '%s %d.%d' #. translators: refers to a property in toolkit version '%s %d.%d'
#. * and a project targeting toolkit version '%s %d.%d' #. * and a project targeting toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2910 #: ../gladeui/glade-project.c:2913
#, c-format #, c-format
msgid "This property was introduced in %s %d.%d while project targets %s %d.%d" msgid "This property was introduced in %s %d.%d while project targets %s %d.%d"
msgstr "" msgstr ""
@ -2426,32 +2450,32 @@ msgstr ""
"%s %d.%d" "%s %d.%d"
#. translators: refers to a property '%s' of widget '[%s]' in toolkit version '%s %d.%d' #. translators: refers to a property '%s' of widget '[%s]' in toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2914 #: ../gladeui/glade-project.c:2917
#, c-format #, c-format
msgid "[%s] Property '%s' of object class '%s' was introduced in %s %d.%d\n" msgid "[%s] Property '%s' of object class '%s' was introduced in %s %d.%d\n"
msgstr "[%s] Vlastnost „%s“ objektové třídy „%s“ byla zavedena v %s %d.%d\n" msgstr "[%s] Vlastnost „%s“ objektové třídy „%s“ byla zavedena v %s %d.%d\n"
#. translators: refers to a property '%s' of widget '[%s]' in toolkit version '%s %d.%d' #. translators: refers to a property '%s' of widget '[%s]' in toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2918 #: ../gladeui/glade-project.c:2921
#, c-format #, c-format
msgid "" msgid ""
"[%s] Packing property '%s' of object class '%s' was introduced in %s %d.%d\n" "[%s] Packing property '%s' of object class '%s' was introduced in %s %d.%d\n"
msgstr "" msgstr ""
"[%s] Vlastnost balení „%s“ objektové třídy „%s“ byla zavedena v %s %d.%d\n" "[%s] Vlastnost balení „%s“ objektové třídy „%s“ byla zavedena v %s %d.%d\n"
#: ../gladeui/glade-project.c:2921 #: ../gladeui/glade-project.c:2924
msgid "This property is deprecated" msgid "This property is deprecated"
msgstr "Tato vlastnost je zavržená" msgstr "Tato vlastnost je zavržená"
#. translators: refers to a property '%s' of widget '[%s]' #. translators: refers to a property '%s' of widget '[%s]'
#: ../gladeui/glade-project.c:2924 #: ../gladeui/glade-project.c:2927
#, c-format #, c-format
msgid "[%s] Property '%s' of object class '%s' is deprecated" msgid "[%s] Property '%s' of object class '%s' is deprecated"
msgstr "[%s] Vlastnost „%s“ objektové třídy „%s“ byla zavržena" msgstr "[%s] Vlastnost „%s“ objektové třídy „%s“ byla zavržena"
#. translators: refers to a signal in toolkit version '%s %d.%d' #. translators: refers to a signal in toolkit version '%s %d.%d'
#. * and a project targeting toolkit version '%s %d.%d' #. * and a project targeting toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2928 #: ../gladeui/glade-project.c:2931
#, c-format #, c-format
msgid "This signal was introduced in %s %d.%d while project targets %s %d.%d" msgid "This signal was introduced in %s %d.%d while project targets %s %d.%d"
msgstr "" msgstr ""
@ -2459,76 +2483,76 @@ msgstr ""
"%d" "%d"
#. translators: refers to a signal '%s' of widget '[%s]' in toolkit version '%s %d.%d' #. translators: refers to a signal '%s' of widget '[%s]' in toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2932 #: ../gladeui/glade-project.c:2935
#, c-format #, c-format
msgid "[%s] Signal '%s' of object class '%s' was introduced in %s %d.%d\n" msgid "[%s] Signal '%s' of object class '%s' was introduced in %s %d.%d\n"
msgstr "[%s] Signál „%s“ třídy objektu „%s“ byl zaveden v %s %d.%d\n" msgstr "[%s] Signál „%s“ třídy objektu „%s“ byl zaveden v %s %d.%d\n"
#: ../gladeui/glade-project.c:2935 #: ../gladeui/glade-project.c:2938
msgid "This signal is deprecated" msgid "This signal is deprecated"
msgstr "Tento signál je zavržený" msgstr "Tento signál je zavržený"
#. translators: refers to a signal '%s' of widget '[%s]' #. translators: refers to a signal '%s' of widget '[%s]'
#: ../gladeui/glade-project.c:2938 #: ../gladeui/glade-project.c:2941
#, c-format #, c-format
msgid "[%s] Signal '%s' of object class '%s' is deprecated" msgid "[%s] Signal '%s' of object class '%s' is deprecated"
msgstr "[%s] Signál „%s“ třídy objektu „%s“ byl zavržen" msgstr "[%s] Signál „%s“ třídy objektu „%s“ byl zavržen"
#: ../gladeui/glade-project.c:3234 #: ../gladeui/glade-project.c:3237
msgid "Details" msgid "Details"
msgstr "Detaily" msgstr "Detaily"
#: ../gladeui/glade-project.c:3249 #: ../gladeui/glade-project.c:3252
#, c-format #, c-format
msgid "Project \"%s\" has errors. Save anyway?" msgid "Project \"%s\" has errors. Save anyway?"
msgstr "Projekt „%s“ obsahuje chyby. Přesto uložit?" msgstr "Projekt „%s“ obsahuje chyby. Přesto uložit?"
#: ../gladeui/glade-project.c:3250 #: ../gladeui/glade-project.c:3253
#, c-format #, c-format
msgid "Project \"%s\" has deprecated widgets and/or version mismatches." msgid "Project \"%s\" has deprecated widgets and/or version mismatches."
msgstr "Projekt „%s“ obsahuje zavržené widgety a/nebo nesprávné verze." msgstr "Projekt „%s“ obsahuje zavržené widgety a/nebo nesprávné verze."
#: ../gladeui/glade-project.c:3277 #: ../gladeui/glade-project.c:3280
#, c-format #, c-format
msgid "Object %s has unrecognized type %s\n" msgid "Object %s has unrecognized type %s\n"
msgstr "Objekt %s má nerozpoznaný typ %s\n" msgstr "Objekt %s má nerozpoznaný typ %s\n"
#: ../gladeui/glade-project.c:4747 #: ../gladeui/glade-project.c:4750
#, c-format #, c-format
msgid "Unsaved %i" msgid "Unsaved %i"
msgstr "Neuložený %i" msgstr "Neuložený %i"
#: ../gladeui/glade-project.c:5046 ../gladeui/glade-project.c:5097 #: ../gladeui/glade-project.c:5049 ../gladeui/glade-project.c:5100
#: ../gladeui/glade-project.c:5254 #: ../gladeui/glade-project.c:5257
msgid "No widget selected." msgid "No widget selected."
msgstr "Není vybrán žádný widget." msgstr "Není vybrán žádný widget."
#: ../gladeui/glade-project.c:5062 #: ../gladeui/glade-project.c:5065
msgid "Unable to copy unrecognized widget type." msgid "Unable to copy unrecognized widget type."
msgstr "Nelze kopírovat widget nerozpoznaného typu" msgstr "Nelze kopírovat widget nerozpoznaného typu"
#: ../gladeui/glade-project.c:5094 #: ../gladeui/glade-project.c:5097
msgid "Unable to cut unrecognized widget type" msgid "Unable to cut unrecognized widget type"
msgstr "Nelze vyjmout widget nerozpoznaného typu" msgstr "Nelze vyjmout widget nerozpoznaného typu"
#: ../gladeui/glade-project.c:5146 #: ../gladeui/glade-project.c:5149
msgid "Unable to paste to the selected parent" msgid "Unable to paste to the selected parent"
msgstr "Do vybraného rodiče není možné vkládat" msgstr "Do vybraného rodiče není možné vkládat"
#: ../gladeui/glade-project.c:5157 #: ../gladeui/glade-project.c:5160
msgid "Unable to paste to multiple widgets" msgid "Unable to paste to multiple widgets"
msgstr "Není možné vkládat do více widgetů" msgstr "Není možné vkládat do více widgetů"
#: ../gladeui/glade-project.c:5167 #: ../gladeui/glade-project.c:5170
msgid "No widget on the clipboard" msgid "No widget on the clipboard"
msgstr "Ve schránce není žádný widget" msgstr "Ve schránce není žádný widget"
#: ../gladeui/glade-project.c:5212 #: ../gladeui/glade-project.c:5215
msgid "Only one widget can be pasted at a time to this container" msgid "Only one widget can be pasted at a time to this container"
msgstr "" msgstr ""
"Do tohoto kontejneru může být v jednom okamžiku vložen jen jeden widget" "Do tohoto kontejneru může být v jednom okamžiku vložen jen jeden widget"
#: ../gladeui/glade-project.c:5224 #: ../gladeui/glade-project.c:5227
msgid "Insufficient amount of placeholders in target container" msgid "Insufficient amount of placeholders in target container"
msgstr "Nedostatečné množství vyhrazených míst v cílovém kontejneru" msgstr "Nedostatečné množství vyhrazených míst v cílovém kontejneru"

3660
po/da.po

File diff suppressed because it is too large Load Diff

1798
po/de.po

File diff suppressed because it is too large Load Diff

1439
po/el.po

File diff suppressed because it is too large Load Diff

9198
po/eo.po

File diff suppressed because it is too large Load Diff

315
po/es.po
View File

@ -7,22 +7,23 @@
# Francisco Javier F. Serrador <serrador@cvs.gnome.org>, 2005, 2006. # Francisco Javier F. Serrador <serrador@cvs.gnome.org>, 2005, 2006.
# Jorge González <jorgegonz@svn.gnome.org>, 2007, 2009, 2010, 2011. # Jorge González <jorgegonz@svn.gnome.org>, 2007, 2009, 2010, 2011.
# Daniel Mustieles <daniel.mustieles@gmail.com>, 2010, 2011, 2012, 2013, 2014. # Daniel Mustieles <daniel.mustieles@gmail.com>, 2010, 2011, 2012, 2013, 2014.
# Juan Pablo Ugarte <juanpablougarte@gmail.com>, 2014.
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: glade3.master\n" "Project-Id-Version: glade3.master\n"
"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?" "Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?"
"product=glade&keywords=I18N+L10N&component=general\n" "product=glade&keywords=I18N+L10N&component=general\n"
"POT-Creation-Date: 2014-03-14 06:45+0000\n" "POT-Creation-Date: 2014-04-15 06:19+0000\n"
"PO-Revision-Date: 2014-03-14 10:37+0100\n" "PO-Revision-Date: 2014-03-28 11:35-0300\n"
"Last-Translator: Daniel Mustieles <daniel.mustieles@gmail.com>\n" "Last-Translator: Juan Pablo Ugarte <juanpablougarte@gmail.com>\n"
"Language-Team: Español <gnome-es-list@gnome.org>\n" "Language-Team: Spanish; Castilian <>\n"
"Language: \n" "Language: \n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"X-Generator: Gtranslator 2.91.5\n" "X-Generator: Gtranslator 2.91.6\n"
"Plural-Forms: nplurals=2; plural=(n!=1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: ../data/glade.desktop.in.in.h:1 ../src/main.c:42 #: ../data/glade.desktop.in.in.h:1 ../src/main.c:42
msgid "Glade" msgid "Glade"
@ -81,194 +82,194 @@ msgstr ""
msgid "[Read Only]" msgid "[Read Only]"
msgstr "[Sólo lectura]" msgstr "[Sólo lectura]"
#: ../src/glade-window.c:322 #: ../src/glade-window.c:323
msgid "User Interface Designer" msgid "User Interface Designer"
msgstr "Diseñador de interfaces de usuario" msgstr "Diseñador de interfaces de usuario"
#. translators: referring to the action of activating a file named '%s'. #. translators: referring to the action of activating a file named '%s'.
#. * we also indicate to users that the file may be read-only with #. * we also indicate to users that the file may be read-only with
#. * the second '%s' #. * the second '%s'
#: ../src/glade-window.c:523 #: ../src/glade-window.c:524
#, c-format #, c-format
msgid "Activate '%s' %s" msgid "Activate '%s' %s"
msgstr "Activar «%s» «%s»" msgstr "Activar «%s» «%s»"
#. translators: referring to the action of activating a file named '%s' #. translators: referring to the action of activating a file named '%s'
#. FIXME add hint for translators #. FIXME add hint for translators
#: ../src/glade-window.c:529 ../src/glade-window.c:537 #: ../src/glade-window.c:530 ../src/glade-window.c:538
#, c-format #, c-format
msgid "Activate '%s'" msgid "Activate '%s'"
msgstr "Activar «%s»" msgstr "Activar «%s»"
#. Name #. Name
#: ../src/glade-window.c:585 ../src/glade-registration.glade.h:4 #: ../src/glade-window.c:586 ../src/glade-registration.glade.h:4
#: ../gladeui/glade-base-editor.c:2030 #: ../gladeui/glade-base-editor.c:2030
#: ../gladeui/glade-project-properties.ui.h:12 #: ../gladeui/glade-project-properties.ui.h:12
#: ../plugins/gtk+/glade-about-dialog-editor.ui.h:2 #: ../plugins/gtk+/glade-about-dialog-editor.ui.h:2
msgid "Name:" msgid "Name:"
msgstr "Nombre:" msgstr "Nombre:"
#: ../src/glade-window.c:588 #: ../src/glade-window.c:589
msgid "Requires:" msgid "Requires:"
msgstr "Requiere:" msgstr "Requiere:"
#: ../src/glade-window.c:647 #: ../src/glade-window.c:648
msgid "_Undo" msgid "_Undo"
msgstr "_Deshacer" msgstr "_Deshacer"
#: ../src/glade-window.c:650 #: ../src/glade-window.c:651
#, c-format #, c-format
msgid "Undo: %s" msgid "Undo: %s"
msgstr "Deshacer: %s" msgstr "Deshacer: %s"
#: ../src/glade-window.c:651 ../src/glade-window.c:662 #: ../src/glade-window.c:652 ../src/glade-window.c:663
msgid "the last action" msgid "the last action"
msgstr "la última acción" msgstr "la última acción"
#: ../src/glade-window.c:658 #: ../src/glade-window.c:659
msgid "_Redo" msgid "_Redo"
msgstr "_Rehacer" msgstr "_Rehacer"
#: ../src/glade-window.c:661 #: ../src/glade-window.c:662
#, c-format #, c-format
msgid "Redo: %s" msgid "Redo: %s"
msgstr "Rehacer: %s" msgstr "Rehacer: %s"
#: ../src/glade-window.c:693 #: ../src/glade-window.c:694
#, c-format #, c-format
msgid "Autosaving '%s'" msgid "Autosaving '%s'"
msgstr "Autoguardando «%s»" msgstr "Autoguardando «%s»"
#: ../src/glade-window.c:698 #: ../src/glade-window.c:699
#, c-format #, c-format
msgid "Error autosaving '%s'" msgid "Error autosaving '%s'"
msgstr "Erro al autoguardar «%s»" msgstr "Erro al autoguardar «%s»"
#: ../src/glade-window.c:1117 #: ../src/glade-window.c:1118
msgid "Open…" msgid "Open…"
msgstr "Abrir…" msgstr "Abrir…"
#: ../src/glade-window.c:1151 #: ../src/glade-window.c:1152
#, c-format #, c-format
msgid "Project %s is still loading." msgid "Project %s is still loading."
msgstr "Aún se está cargando el proyecto «%s»." msgstr "Aún se está cargando el proyecto «%s»."
#: ../src/glade-window.c:1170 #: ../src/glade-window.c:1171
msgid "Failed to backup existing file, continue saving?" msgid "Failed to backup existing file, continue saving?"
msgstr "" msgstr ""
"Falló al hacer una copia de seguridad del archivo existente, ¿continuar el " "Falló al hacer una copia de seguridad del archivo existente, ¿continuar el "
"guardado?" "guardado?"
#: ../src/glade-window.c:1192 #: ../src/glade-window.c:1193
#, c-format #, c-format
msgid "Failed to save %s: %s" msgid "Failed to save %s: %s"
msgstr "Falló al guardar %s: %s" msgstr "Falló al guardar %s: %s"
#: ../src/glade-window.c:1231 #: ../src/glade-window.c:1232
#, c-format #, c-format
msgid "The file %s has been modified since reading it" msgid "The file %s has been modified since reading it"
msgstr "El archivo «%s» ha sido modificado desde que fue leído" msgstr "El archivo «%s» ha sido modificado desde que fue leído"
#: ../src/glade-window.c:1235 #: ../src/glade-window.c:1236
msgid "If you save it, all the external changes could be lost. Save it anyway?" msgid "If you save it, all the external changes could be lost. Save it anyway?"
msgstr "" msgstr ""
"Si lo guarda, todos los cambios externos pueden perderse. ¿Guardarlo de " "Si lo guarda, todos los cambios externos pueden perderse. ¿Guardarlo de "
"todos modos?" "todos modos?"
#: ../src/glade-window.c:1240 #: ../src/glade-window.c:1241
msgid "_Save Anyway" msgid "_Save Anyway"
msgstr "_Guardar de todos modos" msgstr "_Guardar de todos modos"
#: ../src/glade-window.c:1248 #: ../src/glade-window.c:1249
msgid "_Don't Save" msgid "_Don't Save"
msgstr "_No guardar" msgstr "_No guardar"
#: ../src/glade-window.c:1282 #: ../src/glade-window.c:1283
#, c-format #, c-format
msgid "Project '%s' saved" msgid "Project '%s' saved"
msgstr "Proyecto «%s» guardado" msgstr "Proyecto «%s» guardado"
#: ../src/glade-window.c:1313 #: ../src/glade-window.c:1314
msgid "Save As…" msgid "Save As…"
msgstr "Guardar como…" msgstr "Guardar como…"
#: ../src/glade-window.c:1377 #: ../src/glade-window.c:1378
#, c-format #, c-format
msgid "Could not save the file %s" msgid "Could not save the file %s"
msgstr "No se pudo guardar el archivo %s" msgstr "No se pudo guardar el archivo %s"
#: ../src/glade-window.c:1381 #: ../src/glade-window.c:1382
msgid "You do not have the permissions necessary to save the file." msgid "You do not have the permissions necessary to save the file."
msgstr "No tiene los permisos necesarios para guardar el archivo." msgstr "No tiene los permisos necesarios para guardar el archivo."
#: ../src/glade-window.c:1403 #: ../src/glade-window.c:1404
#, c-format #, c-format
msgid "Could not save file %s. Another project with that path is open." msgid "Could not save file %s. Another project with that path is open."
msgstr "" msgstr ""
"No se pudo guardar el archivo %s. Otro proyecto con esa ruta está abierto." "No se pudo guardar el archivo %s. Otro proyecto con esa ruta está abierto."
#: ../src/glade-window.c:1428 #: ../src/glade-window.c:1429
msgid "No open projects to save" msgid "No open projects to save"
msgstr "Ningún proyecto abierto para guardar" msgstr "Ningún proyecto abierto para guardar"
#: ../src/glade-window.c:1458 #: ../src/glade-window.c:1459
#, c-format #, c-format
msgid "Save changes to project \"%s\" before closing?" msgid "Save changes to project \"%s\" before closing?"
msgstr "¿Guardar los cambios del proyecto «%s» antes de cerrar?" msgstr "¿Guardar los cambios del proyecto «%s» antes de cerrar?"
#: ../src/glade-window.c:1466 #: ../src/glade-window.c:1467
msgid "Your changes will be lost if you don't save them." msgid "Your changes will be lost if you don't save them."
msgstr "Sus cambios se perderán si no los guarda." msgstr "Sus cambios se perderán si no los guarda."
#: ../src/glade-window.c:1470 #: ../src/glade-window.c:1471
msgid "Close _without Saving" msgid "Close _without Saving"
msgstr "Cerrar _sin guardar" msgstr "Cerrar _sin guardar"
#: ../src/glade-window.c:1500 #: ../src/glade-window.c:1501
msgid "Save…" msgid "Save…"
msgstr "Guardar…" msgstr "Guardar…"
#: ../src/glade-window.c:2466 #: ../src/glade-window.c:2467
msgid "Close document" msgid "Close document"
msgstr "Cerrar el documento" msgstr "Cerrar el documento"
#: ../src/glade-window.c:2568 #: ../src/glade-window.c:2564
msgid "Could not create a new project." msgid "Could not create a new project."
msgstr "No se pudo crear un proyecto nuevo." msgstr "No se pudo crear un proyecto nuevo."
#: ../src/glade-window.c:2621 #: ../src/glade-window.c:2617
#, c-format #, c-format
msgid "The project %s has unsaved changes" msgid "The project %s has unsaved changes"
msgstr "El proyecto %s tiene cambios no guardados" msgstr "El proyecto %s tiene cambios no guardados"
#: ../src/glade-window.c:2626 #: ../src/glade-window.c:2622
msgid "If you reload it, all unsaved changes could be lost. Reload it anyway?" msgid "If you reload it, all unsaved changes could be lost. Reload it anyway?"
msgstr "" msgstr ""
"Si lo recarga, todos los cambios externos pueden perderse. ¿Recargarlo de " "Si lo recarga, todos los cambios externos pueden perderse. ¿Recargarlo de "
"todos modos?" "todos modos?"
#: ../src/glade-window.c:2636 #: ../src/glade-window.c:2632
#, c-format #, c-format
msgid "The project file %s has been externally modified" msgid "The project file %s has been externally modified"
msgstr "El archivo de proyecto «%s» ha sido modificado externamente" msgstr "El archivo de proyecto «%s» ha sido modificado externamente"
#: ../src/glade-window.c:2641 #: ../src/glade-window.c:2637
msgid "Do you want to reload the project?" msgid "Do you want to reload the project?"
msgstr "¿Quiere volver a cargar el proyecto?" msgstr "¿Quiere volver a cargar el proyecto?"
#: ../src/glade-window.c:2647 #: ../src/glade-window.c:2643
msgid "_Reload" msgid "_Reload"
msgstr "Re_cargar" msgstr "Re_cargar"
#: ../src/glade-window.c:3216 #: ../src/glade-window.c:3214
msgid "Palette" msgid "Palette"
msgstr "Paleta" msgstr "Paleta"
#: ../src/glade-window.c:3218 #: ../src/glade-window.c:3216
msgid "Inspector" msgid "Inspector"
msgstr "Inspector" msgstr "Inspector"
#: ../src/glade-window.c:3220 ../src/glade.glade.h:33 #: ../src/glade-window.c:3218 ../src/glade.glade.h:33
#: ../gladeui/glade-editor.c:320 ../gladeui/glade-widget.c:1385 #: ../gladeui/glade-editor.c:320 ../gladeui/glade-widget.c:1385
#: ../gladeui/glade-project-properties.ui.h:11 #: ../gladeui/glade-project-properties.ui.h:11
#: ../plugins/gtk+/glade-gtk-action-group.c:177 #: ../plugins/gtk+/glade-gtk-action-group.c:177
@ -281,6 +282,30 @@ msgstr "Inspector"
msgid "Properties" msgid "Properties"
msgstr "Propiedades" msgstr "Propiedades"
#. translators: Primary message of a dialog used to notify the user about the survey
#: ../src/glade-window.c:3479
msgid ""
"We are conducting a user survey\n"
" would you like to take it now?"
msgstr ""
"Estamos llevando a cabo una encuesta de usuarios\n"
"¿le gustaría tomarla en este momento?"
#. translators: Secondary text of a dialog used to notify the user about the survey
#: ../src/glade-window.c:3483
msgid "If not, you can always find it in the Help menu."
msgstr "Sino, siempre puede encontrarla en el menú Ayuda"
#: ../src/glade-window.c:3485
msgid "_Do not show this dialog again"
msgstr "_No mostrar este dialogo nuevamente"
#. translators: Text to show in the statusbar if the user did not completed the survey and choose not to show the notification dialog again
#: ../src/glade-window.c:3506
msgid "Go to Help -> Registration & User Survey and complete our survey!"
msgstr ""
"Ve a Ayuda -> Registro y encuesta de usuarios y completa nuestra encuesta!"
#: ../src/main.c:51 #: ../src/main.c:51
msgid "Output version information and exit" msgid "Output version information and exit"
msgstr "Despliega información de la versión y termina" msgstr "Despliega información de la versión y termina"
@ -784,48 +809,48 @@ msgstr "Rutas de catálogos adicionales"
msgid "Select a catalog search path" msgid "Select a catalog search path"
msgstr "Seleccionar una rutas de búsqueda de catálogos" msgstr "Seleccionar una rutas de búsqueda de catálogos"
#: ../src/glade-registration.c:282 #: ../src/glade-registration.c:290
#, c-format #, c-format
msgid "Connecting to %s" msgid "Connecting to %s"
msgstr "Conectando a %s" msgstr "Conectando a %s"
#: ../src/glade-registration.c:285 #: ../src/glade-registration.c:293
#, c-format #, c-format
msgid "Sending data to %s" msgid "Sending data to %s"
msgstr "Enviando datos a %s" msgstr "Enviando datos a %s"
#: ../src/glade-registration.c:288 #: ../src/glade-registration.c:296
#, c-format #, c-format
msgid "Waiting for %s" msgid "Waiting for %s"
msgstr "Esperando a %s" msgstr "Esperando a %s"
#: ../src/glade-registration.c:291 #: ../src/glade-registration.c:299
#, c-format #, c-format
msgid "Receiving data from %s" msgid "Receiving data from %s"
msgstr "Recibiendo datos de %s" msgstr "Recibiendo datos de %s"
#: ../src/glade-registration.c:323 #: ../src/glade-registration.c:331
msgid "Sorry, automatic subscription to Glade Users mailing list failed" msgid "Sorry, automatic subscription to Glade Users mailing list failed"
msgstr "" msgstr ""
"Falló la suscripción automática a la lista de correo de usuarios de Glade" "Falló la suscripción automática a la lista de correo de usuarios de Glade"
#: ../src/glade-registration.c:326 #: ../src/glade-registration.c:334
msgid "Open Glade Users Website" msgid "Open Glade Users Website"
msgstr "Abrir la página web de usuarios de Glade" msgstr "Abrir la página web de usuarios de Glade"
#: ../src/glade-registration.c:378 #: ../src/glade-registration.c:386
msgid "Internal server error" msgid "Internal server error"
msgstr "Error interno del servidor" msgstr "Error interno del servidor"
#: ../src/glade-registration.c:402 #: ../src/glade-registration.c:410
msgid "Thank you for taking the time to complete the survey, we appreciate it!" msgid "Thank you for taking the time to complete the survey, we appreciate it!"
msgstr "Gracias por completar la encuesta." msgstr "Gracias por completar la encuesta."
#: ../src/glade-registration.c:407 #: ../src/glade-registration.c:418
msgid "Name and Email fields are required" msgid "Name and Email fields are required"
msgstr "Los campos Nombre y Correo-e son obligatorios" msgstr "Los campos Nombre y Correo-e son obligatorios"
#: ../src/glade-registration.c:410 #: ../src/glade-registration.c:421
msgid "" msgid ""
"Ops! Email address is already in use!\n" "Ops! Email address is already in use!\n"
"To update information you need to provide the token that was sent to your " "To update information you need to provide the token that was sent to your "
@ -835,17 +860,17 @@ msgstr ""
"Para actualizar la información necesita proporcionar el testigo que se le ha " "Para actualizar la información necesita proporcionar el testigo que se le ha "
"enviado a su correo." "enviado a su correo."
#: ../src/glade-registration.c:413 #: ../src/glade-registration.c:424
#, c-format #, c-format
msgid "Ops! Error saving user information: %s" msgid "Ops! Error saving user information: %s"
msgstr "Error al guardar la información del usuario: %s" msgstr "Error al guardar la información del usuario: %s"
#: ../src/glade-registration.c:416 #: ../src/glade-registration.c:427
#, c-format #, c-format
msgid "Ops! Error saving survey data: %s" msgid "Ops! Error saving survey data: %s"
msgstr "Error al guardar los datos de la encuesta: %s" msgstr "Error al guardar los datos de la encuesta: %s"
#: ../src/glade-registration.c:419 #: ../src/glade-registration.c:430
#, c-format #, c-format
msgid "Ops! Error accessing DB: %s" msgid "Ops! Error accessing DB: %s"
msgstr "Error al acceder a la BB.DD: %s" msgstr "Error al acceder a la BB.DD: %s"
@ -1006,7 +1031,7 @@ msgstr "Perl"
#. GtkCellRendererAccelMode enumeration value #. GtkCellRendererAccelMode enumeration value
#: ../src/glade-registration.glade.h:39 #: ../src/glade-registration.glade.h:39
#: ../gladeui/glade-project-properties.ui.h:28 #: ../gladeui/glade-project-properties.ui.h:19
#: ../plugins/gtk+/gtk+.xml.in.h:685 #: ../plugins/gtk+/gtk+.xml.in.h:685
msgid "Other" msgid "Other"
msgstr "Otro" msgstr "Otro"
@ -1630,7 +1655,7 @@ msgstr "Estableciendo propiedades múltiples"
msgid "Setting %s of %s" msgid "Setting %s of %s"
msgstr "Estableciendo %s de %s" msgstr "Estableciendo %s de %s"
#: ../gladeui/glade-command.c:823 ../gladeui/glade-editor-property.c:3350 #: ../gladeui/glade-command.c:823 ../gladeui/glade-editor-property.c:3355
#, c-format #, c-format
msgid "Setting %s of %s to %s" msgid "Setting %s of %s to %s"
msgstr "Estableciendo %s de %s a %s" msgstr "Estableciendo %s de %s a %s"
@ -1919,41 +1944,41 @@ msgstr "Texto personalizado"
msgid "Custom Text to display in the property label" msgid "Custom Text to display in the property label"
msgstr "Testo personalizado que mostrar en la etiqueta de la propiedad" msgstr "Testo personalizado que mostrar en la etiqueta de la propiedad"
#: ../gladeui/glade-editor-property.c:1262 #: ../gladeui/glade-editor-property.c:1267
msgid "Select Fields" msgid "Select Fields"
msgstr "Seleccionar campos" msgstr "Seleccionar campos"
#: ../gladeui/glade-editor-property.c:1285 #: ../gladeui/glade-editor-property.c:1290
msgid "_Select individual fields:" msgid "_Select individual fields:"
msgstr "_Seleccionar campos individuales:" msgstr "_Seleccionar campos individuales:"
#: ../gladeui/glade-editor-property.c:1635 #: ../gladeui/glade-editor-property.c:1640
msgid "Select Named Icon" msgid "Select Named Icon"
msgstr "Seleccionar icono de nombre" msgstr "Seleccionar icono de nombre"
#: ../gladeui/glade-editor-property.c:1942 #: ../gladeui/glade-editor-property.c:1947
msgid "Edit Text" msgid "Edit Text"
msgstr "Editar texto" msgstr "Editar texto"
#. Text #. Text
#: ../gladeui/glade-editor-property.c:1972 #: ../gladeui/glade-editor-property.c:1977
msgid "_Text:" msgid "_Text:"
msgstr "_Texto:" msgstr "_Texto:"
#. Translatable #. Translatable
#: ../gladeui/glade-editor-property.c:2008 #: ../gladeui/glade-editor-property.c:2013
msgid "T_ranslatable" msgid "T_ranslatable"
msgstr "_Traducible" msgstr "_Traducible"
#: ../gladeui/glade-editor-property.c:2014 ../gladeui/glade-property.c:677 #: ../gladeui/glade-editor-property.c:2019 ../gladeui/glade-property.c:678
msgid "Whether this property is translatable" msgid "Whether this property is translatable"
msgstr "Indica si esta propiedad se puede traducir" msgstr "Indica si esta propiedad se puede traducir"
#: ../gladeui/glade-editor-property.c:2022 #: ../gladeui/glade-editor-property.c:2027
msgid "Conte_xt for translation:" msgid "Conte_xt for translation:"
msgstr "Conte_xto para traducción:" msgstr "Conte_xto para traducción:"
#: ../gladeui/glade-editor-property.c:2028 #: ../gladeui/glade-editor-property.c:2033
msgid "" msgid ""
"For short and ambiguous strings: type a word here to differentiate the " "For short and ambiguous strings: type a word here to differentiate the "
"meaning of this string from the meaning of other occurrences of the same " "meaning of this string from the meaning of other occurrences of the same "
@ -1963,63 +1988,63 @@ msgstr ""
"significado de esta cadena del significado de otras ocurrencias de la misma " "significado de esta cadena del significado de otras ocurrencias de la misma "
"cadena" "cadena"
#: ../gladeui/glade-editor-property.c:2060 #: ../gladeui/glade-editor-property.c:2065
msgid "Co_mments for translators:" msgid "Co_mments for translators:"
msgstr "_Comentarios para los traductores:" msgstr "_Comentarios para los traductores:"
#: ../gladeui/glade-editor-property.c:2150 #: ../gladeui/glade-editor-property.c:2155
msgid "Select a file from the project resource directory" msgid "Select a file from the project resource directory"
msgstr "Seleccionar un archivo desde la carpeta de recursos del proyecto" msgstr "Seleccionar un archivo desde la carpeta de recursos del proyecto"
#. GtkInputPurpose enumeration value #. GtkInputPurpose enumeration value
#: ../gladeui/glade-editor-property.c:3018 #: ../gladeui/glade-editor-property.c:3023
#: ../gladeui/glade-widget-adaptor.c:1392 ../gladeui/glade-widget.c:1349 #: ../gladeui/glade-widget-adaptor.c:1392 ../gladeui/glade-widget.c:1349
#: ../plugins/gtk+/gtk+.xml.in.h:499 #: ../plugins/gtk+/gtk+.xml.in.h:499
msgid "Name" msgid "Name"
msgstr "Nombre" msgstr "Nombre"
#: ../gladeui/glade-editor-property.c:3027 ../gladeui/glade-property.c:644 #: ../gladeui/glade-editor-property.c:3032 ../gladeui/glade-property.c:645
msgid "Class" msgid "Class"
msgstr "Clase" msgstr "Clase"
#: ../gladeui/glade-editor-property.c:3047 #: ../gladeui/glade-editor-property.c:3052
#, c-format #, c-format
msgid "Choose parentless %s type objects in this project" msgid "Choose parentless %s type objects in this project"
msgstr "Elegir tipos de objeto %s huérfanos en este proyecto" msgstr "Elegir tipos de objeto %s huérfanos en este proyecto"
#: ../gladeui/glade-editor-property.c:3049 #: ../gladeui/glade-editor-property.c:3054
#, c-format #, c-format
msgid "Choose %s type objects in this project" msgid "Choose %s type objects in this project"
msgstr "Elegir tipos de objeto %s en este proyecto" msgstr "Elegir tipos de objeto %s en este proyecto"
#: ../gladeui/glade-editor-property.c:3069 #: ../gladeui/glade-editor-property.c:3074
#, c-format #, c-format
msgid "Choose a parentless %s in this project" msgid "Choose a parentless %s in this project"
msgstr "Eligir un %s huérfano en este proyecto" msgstr "Eligir un %s huérfano en este proyecto"
#: ../gladeui/glade-editor-property.c:3071 #: ../gladeui/glade-editor-property.c:3076
#, c-format #, c-format
msgid "Choose a %s in this project" msgid "Choose a %s in this project"
msgstr "Elija un %s en este proyecto" msgstr "Elija un %s en este proyecto"
#. Checklist #. Checklist
#: ../gladeui/glade-editor-property.c:3128 #: ../gladeui/glade-editor-property.c:3133
#: ../gladeui/glade-editor-property.c:3269 #: ../gladeui/glade-editor-property.c:3274
msgid "O_bjects:" msgid "O_bjects:"
msgstr "O_bjetos:" msgstr "O_bjetos:"
#: ../gladeui/glade-editor-property.c:3221 #: ../gladeui/glade-editor-property.c:3226
msgid "_New" msgid "_New"
msgstr "_Nuevo" msgstr "_Nuevo"
#. translators: Creating 'a widget' for 'a property' of 'a widget' #. translators: Creating 'a widget' for 'a property' of 'a widget'
#: ../gladeui/glade-editor-property.c:3376 #: ../gladeui/glade-editor-property.c:3381
#, c-format #, c-format
msgid "Creating %s for %s of %s" msgid "Creating %s for %s of %s"
msgstr "Creando %s para %s de %s" msgstr "Creando %s para %s de %s"
#. Checklist #. Checklist
#: ../gladeui/glade-editor-property.c:3572 #: ../gladeui/glade-editor-property.c:3577
msgid "Objects:" msgid "Objects:"
msgstr "Objetos:" msgstr "Objetos:"
@ -2326,28 +2351,28 @@ msgstr "Ruta del proveedor de CSS"
msgid "Path to use as the custom CSS provider for this project." msgid "Path to use as the custom CSS provider for this project."
msgstr "Ruta que usar como proveedor de CSS personalizado para este proyecto." msgstr "Ruta que usar como proveedor de CSS personalizado para este proyecto."
#: ../gladeui/glade-project.c:1126 #: ../gladeui/glade-project.c:1129
#, c-format #, c-format
msgid "(internal %s)" msgid "(internal %s)"
msgstr "(interno %s)" msgstr "(interno %s)"
#: ../gladeui/glade-project.c:1131 #: ../gladeui/glade-project.c:1134
#, c-format #, c-format
msgid "(%s child)" msgid "(%s child)"
msgstr "(hijo de %s)" msgstr "(hijo de %s)"
#: ../gladeui/glade-project.c:1133 #: ../gladeui/glade-project.c:1136
#, c-format #, c-format
msgid "(template)" msgid "(template)"
msgstr "(plantilla)" msgstr "(plantilla)"
#. translators: refers to a property named '%s' of widget '%s' #. translators: refers to a property named '%s' of widget '%s'
#: ../gladeui/glade-project.c:1141 #: ../gladeui/glade-project.c:1144
#, c-format #, c-format
msgid "(%s of %s)" msgid "(%s of %s)"
msgstr "(%s de %s)" msgstr "(%s de %s)"
#: ../gladeui/glade-project.c:1499 #: ../gladeui/glade-project.c:1502
#, c-format #, c-format
msgid "" msgid ""
"Failed to load %s.\n" "Failed to load %s.\n"
@ -2357,17 +2382,17 @@ msgstr ""
"Los siguientes catálogos requeridos no están disponibles: %s" "Los siguientes catálogos requeridos no están disponibles: %s"
#. translators: refers to project name '%s' that targets gtk version '%d.%d' #. translators: refers to project name '%s' that targets gtk version '%d.%d'
#: ../gladeui/glade-project.c:1870 #: ../gladeui/glade-project.c:1873
#, c-format #, c-format
msgid "%s targets Gtk+ %d.%d" msgid "%s targets Gtk+ %d.%d"
msgstr "%s usa GTK+ %d.%d" msgstr "%s usa GTK+ %d.%d"
#: ../gladeui/glade-project.c:1909 #: ../gladeui/glade-project.c:1912
msgid "Specially because there is an object that can not be build with type " msgid "Specially because there is an object that can not be build with type "
msgstr "" msgstr ""
"Especialmente porque existe un objeto que no se puede construir con el tipo " "Especialmente porque existe un objeto que no se puede construir con el tipo "
#: ../gladeui/glade-project.c:1914 #: ../gladeui/glade-project.c:1917
#, c-format #, c-format
msgid "" msgid ""
"Specially because there are %d objects that can not be build with types " "Specially because there are %d objects that can not be build with types "
@ -2375,11 +2400,11 @@ msgstr ""
"Especialmente porque existen %d objetos que no se pueden construir con los " "Especialmente porque existen %d objetos que no se pueden construir con los "
"tipos " "tipos "
#: ../gladeui/glade-project.c:1921 #: ../gladeui/glade-project.c:1924
msgid " and " msgid " and "
msgstr " y " msgstr " y "
#: ../gladeui/glade-project.c:1939 #: ../gladeui/glade-project.c:1942
#, c-format #, c-format
msgid "" msgid ""
"But this version of Glade is for GTK+ 3 only.\n" "But this version of Glade is for GTK+ 3 only.\n"
@ -2392,7 +2417,7 @@ msgstr ""
"widgets obsoletos.\n" "widgets obsoletos.\n"
"%s" "%s"
#: ../gladeui/glade-project.c:2000 #: ../gladeui/glade-project.c:2003
#, c-format #, c-format
msgid "" msgid ""
"An automatically saved version of `%s' is more recent.\n" "An automatically saved version of `%s' is more recent.\n"
@ -2403,7 +2428,7 @@ msgstr ""
"\n" "\n"
"¿Quiere cargar la versión autoguardada en su lugar?" "¿Quiere cargar la versión autoguardada en su lugar?"
#: ../gladeui/glade-project.c:2140 #: ../gladeui/glade-project.c:2143
#, c-format #, c-format
msgid "%s document properties" msgid "%s document properties"
msgstr "Propiedades del documento %s" msgstr "Propiedades del documento %s"
@ -2416,7 +2441,7 @@ msgstr "Propiedades del documento %s"
#. * ugly messy code with comments in line breaks inside function calls). #. * ugly messy code with comments in line breaks inside function calls).
#. #.
#. translators: refers to a widget in toolkit version '%s %d.%d' and a project targeting toolkit version '%s %d.%d' #. translators: refers to a widget in toolkit version '%s %d.%d' and a project targeting toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2896 #: ../gladeui/glade-project.c:2905
#, c-format #, c-format
msgid "This widget was introduced in %s %d.%d while project targets %s %d.%d" msgid "This widget was introduced in %s %d.%d while project targets %s %d.%d"
msgstr "" msgstr ""
@ -2424,24 +2449,24 @@ msgstr ""
"%d.%d" "%d.%d"
#. translators: refers to a widget '[%s]' introduced in toolkit version '%s %d.%d' #. translators: refers to a widget '[%s]' introduced in toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2900 #: ../gladeui/glade-project.c:2909
#, c-format #, c-format
msgid "[%s] Object class '%s' was introduced in %s %d.%d\n" msgid "[%s] Object class '%s' was introduced in %s %d.%d\n"
msgstr "[%s] La clase del objeto «%s» se introdujo en %s %d.%d\n" msgstr "[%s] La clase del objeto «%s» se introdujo en %s %d.%d\n"
#: ../gladeui/glade-project.c:2902 #: ../gladeui/glade-project.c:2911
msgid "This widget is deprecated" msgid "This widget is deprecated"
msgstr "Este widget está obsoleto" msgstr "Este widget está obsoleto"
#. translators: refers to a widget '[%s]' loaded from toolkit version '%s %d.%d' #. translators: refers to a widget '[%s]' loaded from toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2905 #: ../gladeui/glade-project.c:2914
#, c-format #, c-format
msgid "[%s] Object class '%s' from %s %d.%d is deprecated\n" msgid "[%s] Object class '%s' from %s %d.%d is deprecated\n"
msgstr "[%s] La clase del objeto «%s» de %s %d.%d está obsoleta\n" msgstr "[%s] La clase del objeto «%s» de %s %d.%d está obsoleta\n"
#. translators: refers to a property in toolkit version '%s %d.%d' #. translators: refers to a property in toolkit version '%s %d.%d'
#. * and a project targeting toolkit version '%s %d.%d' #. * and a project targeting toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2910 #: ../gladeui/glade-project.c:2919
#, c-format #, c-format
msgid "This property was introduced in %s %d.%d while project targets %s %d.%d" msgid "This property was introduced in %s %d.%d while project targets %s %d.%d"
msgstr "" msgstr ""
@ -2449,14 +2474,14 @@ msgstr ""
"%s %d.%d" "%s %d.%d"
#. translators: refers to a property '%s' of widget '[%s]' in toolkit version '%s %d.%d' #. translators: refers to a property '%s' of widget '[%s]' in toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2914 #: ../gladeui/glade-project.c:2923
#, c-format #, c-format
msgid "[%s] Property '%s' of object class '%s' was introduced in %s %d.%d\n" msgid "[%s] Property '%s' of object class '%s' was introduced in %s %d.%d\n"
msgstr "" msgstr ""
"[%s] La propiedad «%s» de la clase de objeto«%s» se introdujo en %s %d.%d\n" "[%s] La propiedad «%s» de la clase de objeto«%s» se introdujo en %s %d.%d\n"
#. translators: refers to a property '%s' of widget '[%s]' in toolkit version '%s %d.%d' #. translators: refers to a property '%s' of widget '[%s]' in toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2918 #: ../gladeui/glade-project.c:2927
#, c-format #, c-format
msgid "" msgid ""
"[%s] Packing property '%s' of object class '%s' was introduced in %s %d.%d\n" "[%s] Packing property '%s' of object class '%s' was introduced in %s %d.%d\n"
@ -2464,19 +2489,19 @@ msgstr ""
"[%s] La propiedad de empaquetado «%s» de la clase del objeto «%s» se " "[%s] La propiedad de empaquetado «%s» de la clase del objeto «%s» se "
"introdujo en %s %d.%d\n" "introdujo en %s %d.%d\n"
#: ../gladeui/glade-project.c:2921 #: ../gladeui/glade-project.c:2930
msgid "This property is deprecated" msgid "This property is deprecated"
msgstr "Esta propiedad está obsoleta" msgstr "Esta propiedad está obsoleta"
#. translators: refers to a property '%s' of widget '[%s]' #. translators: refers to a property '%s' of widget '[%s]'
#: ../gladeui/glade-project.c:2924 #: ../gladeui/glade-project.c:2933
#, c-format #, c-format
msgid "[%s] Property '%s' of object class '%s' is deprecated" msgid "[%s] Property '%s' of object class '%s' is deprecated"
msgstr "[%s] La propiedad «%s» de la clase de objeto«%s» está obsoleta" msgstr "[%s] La propiedad «%s» de la clase de objeto«%s» está obsoleta"
#. translators: refers to a signal in toolkit version '%s %d.%d' #. translators: refers to a signal in toolkit version '%s %d.%d'
#. * and a project targeting toolkit version '%s %d.%d' #. * and a project targeting toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2928 #: ../gladeui/glade-project.c:2937
#, c-format #, c-format
msgid "This signal was introduced in %s %d.%d while project targets %s %d.%d" msgid "This signal was introduced in %s %d.%d while project targets %s %d.%d"
msgstr "" msgstr ""
@ -2484,78 +2509,78 @@ msgstr ""
"%d" "%d"
#. translators: refers to a signal '%s' of widget '[%s]' in toolkit version '%s %d.%d' #. translators: refers to a signal '%s' of widget '[%s]' in toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2932 #: ../gladeui/glade-project.c:2941
#, c-format #, c-format
msgid "[%s] Signal '%s' of object class '%s' was introduced in %s %d.%d\n" msgid "[%s] Signal '%s' of object class '%s' was introduced in %s %d.%d\n"
msgstr "" msgstr ""
"[%s] La señal «%s» de la clase de objeto «%s» se introdujo en %s %d.%d\n" "[%s] La señal «%s» de la clase de objeto «%s» se introdujo en %s %d.%d\n"
#: ../gladeui/glade-project.c:2935 #: ../gladeui/glade-project.c:2944
msgid "This signal is deprecated" msgid "This signal is deprecated"
msgstr "La señal está obsoleta" msgstr "La señal está obsoleta"
#. translators: refers to a signal '%s' of widget '[%s]' #. translators: refers to a signal '%s' of widget '[%s]'
#: ../gladeui/glade-project.c:2938 #: ../gladeui/glade-project.c:2947
#, c-format #, c-format
msgid "[%s] Signal '%s' of object class '%s' is deprecated" msgid "[%s] Signal '%s' of object class '%s' is deprecated"
msgstr "" msgstr ""
"[%s] La señal «%s» de la clase de objeto «%s» se introdujo está obsoleta" "[%s] La señal «%s» de la clase de objeto «%s» se introdujo está obsoleta"
#: ../gladeui/glade-project.c:3234 #: ../gladeui/glade-project.c:3243
msgid "Details" msgid "Details"
msgstr "Detalles" msgstr "Detalles"
#: ../gladeui/glade-project.c:3249 #: ../gladeui/glade-project.c:3258
#, c-format #, c-format
msgid "Project \"%s\" has errors. Save anyway?" msgid "Project \"%s\" has errors. Save anyway?"
msgstr "El proyecto «%s» tiene errores. ¿Guardarlo de todas formas?" msgstr "El proyecto «%s» tiene errores. ¿Guardarlo de todas formas?"
#: ../gladeui/glade-project.c:3250 #: ../gladeui/glade-project.c:3259
#, c-format #, c-format
msgid "Project \"%s\" has deprecated widgets and/or version mismatches." msgid "Project \"%s\" has deprecated widgets and/or version mismatches."
msgstr "" msgstr ""
"El proyecto «%s» tiene widgets obsoletos y/o inconsistencias entre versiones." "El proyecto «%s» tiene widgets obsoletos y/o inconsistencias entre versiones."
#: ../gladeui/glade-project.c:3277 #: ../gladeui/glade-project.c:3286
#, c-format #, c-format
msgid "Object %s has unrecognized type %s\n" msgid "Object %s has unrecognized type %s\n"
msgstr "El objeto %s tiene un tipo %s no reconocido\n" msgstr "El objeto %s tiene un tipo %s no reconocido\n"
#: ../gladeui/glade-project.c:4747 #: ../gladeui/glade-project.c:4756
#, c-format #, c-format
msgid "Unsaved %i" msgid "Unsaved %i"
msgstr "Sin guardar %i" msgstr "Sin guardar %i"
#: ../gladeui/glade-project.c:5046 ../gladeui/glade-project.c:5097 #: ../gladeui/glade-project.c:5055 ../gladeui/glade-project.c:5106
#: ../gladeui/glade-project.c:5254 #: ../gladeui/glade-project.c:5263
msgid "No widget selected." msgid "No widget selected."
msgstr "No hay ningún widget seleccionado." msgstr "No hay ningún widget seleccionado."
#: ../gladeui/glade-project.c:5062 #: ../gladeui/glade-project.c:5071
msgid "Unable to copy unrecognized widget type." msgid "Unable to copy unrecognized widget type."
msgstr "No se pudo copiar el tipo de widget no reconocido." msgstr "No se pudo copiar el tipo de widget no reconocido."
#: ../gladeui/glade-project.c:5094 #: ../gladeui/glade-project.c:5103
msgid "Unable to cut unrecognized widget type" msgid "Unable to cut unrecognized widget type"
msgstr "No se pudo cortar el tipo de widget no reconocido." msgstr "No se pudo cortar el tipo de widget no reconocido."
#: ../gladeui/glade-project.c:5146 #: ../gladeui/glade-project.c:5155
msgid "Unable to paste to the selected parent" msgid "Unable to paste to the selected parent"
msgstr "Imposible pegar al padre seleccionado" msgstr "Imposible pegar al padre seleccionado"
#: ../gladeui/glade-project.c:5157 #: ../gladeui/glade-project.c:5166
msgid "Unable to paste to multiple widgets" msgid "Unable to paste to multiple widgets"
msgstr "Imposible pegar múltiples widgets" msgstr "Imposible pegar múltiples widgets"
#: ../gladeui/glade-project.c:5167 #: ../gladeui/glade-project.c:5176
msgid "No widget on the clipboard" msgid "No widget on the clipboard"
msgstr "No hay ningún widget en el portapapeles" msgstr "No hay ningún widget en el portapapeles"
#: ../gladeui/glade-project.c:5212 #: ../gladeui/glade-project.c:5221
msgid "Only one widget can be pasted at a time to this container" msgid "Only one widget can be pasted at a time to this container"
msgstr "Sólo se puede pegar un widget cada vez en este contenedor" msgstr "Sólo se puede pegar un widget cada vez en este contenedor"
#: ../gladeui/glade-project.c:5224 #: ../gladeui/glade-project.c:5233
msgid "Insufficient amount of placeholders in target container" msgid "Insufficient amount of placeholders in target container"
msgstr "" msgstr ""
"Cantidad insuficiente de lugares de colocación en el contenedor destino" "Cantidad insuficiente de lugares de colocación en el contenedor destino"
@ -2570,54 +2595,54 @@ msgid "Project %s has no deprecated widgets or version mismatches."
msgstr "" msgstr ""
"El proyecto %s no tiene widgets obsoletos o inconsistencias entre versiones." "El proyecto %s no tiene widgets obsoletos o inconsistencias entre versiones."
#: ../gladeui/glade-property.c:645 #: ../gladeui/glade-property.c:646
msgid "The GladePropertyClass for this property" msgid "The GladePropertyClass for this property"
msgstr "La GladePropertyClass para esta propiedad" msgstr "La GladePropertyClass para esta propiedad"
#: ../gladeui/glade-property.c:650 #: ../gladeui/glade-property.c:651
msgid "Enabled" msgid "Enabled"
msgstr "Activado" msgstr "Activado"
#: ../gladeui/glade-property.c:651 #: ../gladeui/glade-property.c:652
msgid "If the property is optional, this is its enabled state" msgid "If the property is optional, this is its enabled state"
msgstr "Si la propiedad es opcional, esto está en su estado activado" msgstr "Si la propiedad es opcional, esto está en su estado activado"
#: ../gladeui/glade-property.c:656 ../gladeui/glade-widget-action.c:190 #: ../gladeui/glade-property.c:657 ../gladeui/glade-widget-action.c:190
msgid "Sensitive" msgid "Sensitive"
msgstr "Sensible" msgstr "Sensible"
#: ../gladeui/glade-property.c:657 #: ../gladeui/glade-property.c:658
msgid "This gives backends control to set property sensitivity" msgid "This gives backends control to set property sensitivity"
msgstr "" msgstr ""
"Esto proporciona a los backend el control para establecer la propiedad de " "Esto proporciona a los backend el control para establecer la propiedad de "
"sensibilidad" "sensibilidad"
#: ../gladeui/glade-property.c:662 #: ../gladeui/glade-property.c:663
msgid "Context" msgid "Context"
msgstr "Contexto" msgstr "Contexto"
#: ../gladeui/glade-property.c:663 #: ../gladeui/glade-property.c:664
msgid "Context for translation" msgid "Context for translation"
msgstr "Comentario para traducción" msgstr "Comentario para traducción"
#. AtkRole enumeration value #. AtkRole enumeration value
#: ../gladeui/glade-property.c:669 ../plugins/gtk+/gtk+.xml.in.h:269 #: ../gladeui/glade-property.c:670 ../plugins/gtk+/gtk+.xml.in.h:269
msgid "Comment" msgid "Comment"
msgstr "Comentario" msgstr "Comentario"
#: ../gladeui/glade-property.c:670 #: ../gladeui/glade-property.c:671
msgid "Comment for translators" msgid "Comment for translators"
msgstr "Comentario para los traductores" msgstr "Comentario para los traductores"
#: ../gladeui/glade-property.c:676 #: ../gladeui/glade-property.c:677
msgid "Translatable" msgid "Translatable"
msgstr "Traducible" msgstr "Traducible"
#: ../gladeui/glade-property.c:683 #: ../gladeui/glade-property.c:684
msgid "Visual State" msgid "Visual State"
msgstr "Estado visual" msgstr "Estado visual"
#: ../gladeui/glade-property.c:684 #: ../gladeui/glade-property.c:685
msgid "Priority information for the property editor to act on" msgid "Priority information for the property editor to act on"
msgstr "" msgstr ""
"Información de prioridad para que el editor de propiedades actúe sobre ella" "Información de prioridad para que el editor de propiedades actúe sobre ella"
@ -2663,7 +2688,7 @@ msgstr "Indica si la propiedad que cargar es una propiedad de empaquetado o no"
#: ../gladeui/glade-property-label.c:153 #: ../gladeui/glade-property-label.c:153
msgid "Custom text to override the property name" msgid "Custom text to override the property name"
msgstr "Testo personalizado para sobreescribir el nombre de la propiedad" msgstr "Testo personalizado para sobrescribir el nombre de la propiedad"
#: ../gladeui/glade-property-label.c:158 #: ../gladeui/glade-property-label.c:158
msgid "Custom Tooltip" msgid "Custom Tooltip"
@ -2672,7 +2697,7 @@ msgstr "Sugerencia personalizada"
#: ../gladeui/glade-property-label.c:159 #: ../gladeui/glade-property-label.c:159
msgid "Custom tooltip to override the property description" msgid "Custom tooltip to override the property description"
msgstr "" msgstr ""
"Sugerencia personalizada para sobreescribir la descripción de la propiedad" "Sugerencia personalizada para sobrescribir la descripción de la propiedad"
#: ../gladeui/glade-property-shell.c:125 #: ../gladeui/glade-property-shell.c:125
msgid "Whether to use the GladeCommand API when modifying properties" msgid "Whether to use the GladeCommand API when modifying properties"
@ -3176,39 +3201,39 @@ msgstr "Descripción:"
msgid "program or library short description" msgid "program or library short description"
msgstr "descripción corta del programa o la biblioteca" msgstr "descripción corta del programa o la biblioteca"
#: ../gladeui/glade-project-properties.ui.h:19 #: ../gladeui/glade-project-properties.ui.h:20
msgid "GNU GPL version 2" msgid "GNU GPL version 2"
msgstr "GNU GPL versión 2" msgstr "GNU GPL versión 2"
#: ../gladeui/glade-project-properties.ui.h:20 #: ../gladeui/glade-project-properties.ui.h:21
msgid "GNU GPL version 3" msgid "GNU GPL version 3"
msgstr "GNU GPL versión 3" msgstr "GNU GPL versión 3"
#: ../gladeui/glade-project-properties.ui.h:21 #: ../gladeui/glade-project-properties.ui.h:22
msgid "GNU LGPL version 2.1" msgid "GNU LGPL version 2.1"
msgstr "GNU LGPL versión 2.1" msgstr "GNU LGPL versión 2.1"
#: ../gladeui/glade-project-properties.ui.h:22 #: ../gladeui/glade-project-properties.ui.h:23
msgid "GNU LGPL version 3" msgid "GNU LGPL version 3"
msgstr "GNU LGPL versión 3" msgstr "GNU LGPL versión 3"
#: ../gladeui/glade-project-properties.ui.h:23 #: ../gladeui/glade-project-properties.ui.h:24
msgid "BSD 2-clause" msgid "BSD 2-clause"
msgstr "BSD 2-clause" msgstr "BSD 2-clause"
#: ../gladeui/glade-project-properties.ui.h:24 #: ../gladeui/glade-project-properties.ui.h:25
msgid "BSD 3-clause" msgid "BSD 3-clause"
msgstr "BSD 3-clause" msgstr "BSD 3-clause"
#: ../gladeui/glade-project-properties.ui.h:25 #: ../gladeui/glade-project-properties.ui.h:26
msgid "Apache 2" msgid "Apache 2"
msgstr "Apache 2" msgstr "Apache 2"
#: ../gladeui/glade-project-properties.ui.h:26 #: ../gladeui/glade-project-properties.ui.h:27
msgid "MIT" msgid "MIT"
msgstr "MIT" msgstr "MIT"
#: ../gladeui/glade-project-properties.ui.h:27 #: ../gladeui/glade-project-properties.ui.h:28
msgid "GNU All permissive" msgid "GNU All permissive"
msgstr "GNU Permitir todo" msgstr "GNU Permitir todo"

196
po/fr.po
View File

@ -28,8 +28,8 @@ msgstr ""
"Project-Id-Version: glade HEAD\n" "Project-Id-Version: glade HEAD\n"
"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?" "Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?"
"product=glade&keywords=I18N+L10N&component=general\n" "product=glade&keywords=I18N+L10N&component=general\n"
"POT-Creation-Date: 2014-03-15 12:07+0000\n" "POT-Creation-Date: 2014-03-31 08:50+0000\n"
"PO-Revision-Date: 2014-03-15 19:44+0100\n" "PO-Revision-Date: 2014-03-31 18:16+0200\n"
"Last-Translator: Julien Hardelin <jhardlin@orange.fr>\n" "Last-Translator: Julien Hardelin <jhardlin@orange.fr>\n"
"Language-Team: français <GNOME French Team <gnomefr@traduc.org>>\n" "Language-Team: français <GNOME French Team <gnomefr@traduc.org>>\n"
"Language: \n" "Language: \n"
@ -68,8 +68,8 @@ msgid ""
"interfaces for the GTK+ 3 toolkit and the GNOME desktop environment." "interfaces for the GTK+ 3 toolkit and the GNOME desktop environment."
msgstr "" msgstr ""
"Glade est un outil RAD (Rapid Application Development) qui permet le " "Glade est un outil RAD (Rapid Application Development) qui permet le "
"développement rapide et facile d'interfaces utilisateur pour la boîte à outils " "développement rapide et facile d'interfaces utilisateur pour la boîte à "
"GTK+ 3 et l'environnement de bureau GNOME." "outils GTK+ 3 et l'environnement de bureau GNOME."
#. To translators: AppData description second paragraph #. To translators: AppData description second paragraph
#: ../data/glade.appdata.xml.in.h:4 #: ../data/glade.appdata.xml.in.h:4
@ -82,8 +82,7 @@ msgstr ""
"Les interfaces utilisateur conçues dans Glade sont enregistrées en XML. Ces " "Les interfaces utilisateur conçues dans Glade sont enregistrées en XML. Ces "
"fichiers peuvent être chargés de façon dynamique selon les besoins grâce à " "fichiers peuvent être chargés de façon dynamique selon les besoins grâce à "
"GtkBuider, ou être utilisées directement pour définir une nouvelle classe " "GtkBuider, ou être utilisées directement pour définir une nouvelle classe "
"objet dérivée de GtkWidget grâce à la nouvelle fonctionnalité de modèle " "objet dérivée de GtkWidget grâce à la nouvelle fonctionnalité de modèle GTK+."
"GTK+."
#. To translators: AppData description third paragraph #. To translators: AppData description third paragraph
#: ../data/glade.appdata.xml.in.h:6 #: ../data/glade.appdata.xml.in.h:6
@ -99,194 +98,194 @@ msgstr ""
msgid "[Read Only]" msgid "[Read Only]"
msgstr "[Lecture seule]" msgstr "[Lecture seule]"
#: ../src/glade-window.c:322 #: ../src/glade-window.c:323
msgid "User Interface Designer" msgid "User Interface Designer"
msgstr "Concepteur d'interface utilisateur" msgstr "Concepteur d'interface utilisateur"
#. translators: referring to the action of activating a file named '%s'. #. translators: referring to the action of activating a file named '%s'.
#. * we also indicate to users that the file may be read-only with #. * we also indicate to users that the file may be read-only with
#. * the second '%s' #. * the second '%s'
#: ../src/glade-window.c:523 #: ../src/glade-window.c:524
#, c-format #, c-format
msgid "Activate '%s' %s" msgid "Activate '%s' %s"
msgstr "Activer « %s » %s" msgstr "Activer « %s » %s"
#. translators: referring to the action of activating a file named '%s' #. translators: referring to the action of activating a file named '%s'
#. FIXME add hint for translators #. FIXME add hint for translators
#: ../src/glade-window.c:529 ../src/glade-window.c:537 #: ../src/glade-window.c:530 ../src/glade-window.c:538
#, c-format #, c-format
msgid "Activate '%s'" msgid "Activate '%s'"
msgstr "Activer « %s »" msgstr "Activer « %s »"
#. Name #. Name
#: ../src/glade-window.c:585 ../src/glade-registration.glade.h:4 #: ../src/glade-window.c:586 ../src/glade-registration.glade.h:4
#: ../gladeui/glade-base-editor.c:2030 #: ../gladeui/glade-base-editor.c:2030
#: ../gladeui/glade-project-properties.ui.h:12 #: ../gladeui/glade-project-properties.ui.h:12
#: ../plugins/gtk+/glade-about-dialog-editor.ui.h:2 #: ../plugins/gtk+/glade-about-dialog-editor.ui.h:2
msgid "Name:" msgid "Name:"
msgstr "Nom :" msgstr "Nom :"
#: ../src/glade-window.c:588 #: ../src/glade-window.c:589
msgid "Requires:" msgid "Requires:"
msgstr "Nécessite :" msgstr "Nécessite :"
#: ../src/glade-window.c:647 #: ../src/glade-window.c:648
msgid "_Undo" msgid "_Undo"
msgstr "_Annuler" msgstr "_Annuler"
#: ../src/glade-window.c:650 #: ../src/glade-window.c:651
#, c-format #, c-format
msgid "Undo: %s" msgid "Undo: %s"
msgstr "Annule : %s" msgstr "Annule : %s"
#: ../src/glade-window.c:651 ../src/glade-window.c:662 #: ../src/glade-window.c:652 ../src/glade-window.c:663
msgid "the last action" msgid "the last action"
msgstr "la dernière action" msgstr "la dernière action"
#: ../src/glade-window.c:658 #: ../src/glade-window.c:659
msgid "_Redo" msgid "_Redo"
msgstr "_Rétablir" msgstr "_Rétablir"
#: ../src/glade-window.c:661 #: ../src/glade-window.c:662
#, c-format #, c-format
msgid "Redo: %s" msgid "Redo: %s"
msgstr "Rétablir : %s" msgstr "Rétablir : %s"
#: ../src/glade-window.c:693 #: ../src/glade-window.c:694
#, c-format #, c-format
msgid "Autosaving '%s'" msgid "Autosaving '%s'"
msgstr "Enregistrement automatique de « %s »" msgstr "Enregistrement automatique de « %s »"
#: ../src/glade-window.c:698 #: ../src/glade-window.c:699
#, c-format #, c-format
msgid "Error autosaving '%s'" msgid "Error autosaving '%s'"
msgstr "Erreur d'enregistrement automatique de « %s »" msgstr "Erreur d'enregistrement automatique de « %s »"
#: ../src/glade-window.c:1117 #: ../src/glade-window.c:1118
msgid "Open…" msgid "Open…"
msgstr "Ouvrir…" msgstr "Ouvrir…"
#: ../src/glade-window.c:1151 #: ../src/glade-window.c:1152
#, c-format #, c-format
msgid "Project %s is still loading." msgid "Project %s is still loading."
msgstr "Le projet %s est toujours en cours de chargement." msgstr "Le projet %s est toujours en cours de chargement."
#: ../src/glade-window.c:1170 #: ../src/glade-window.c:1171
msgid "Failed to backup existing file, continue saving?" msgid "Failed to backup existing file, continue saving?"
msgstr "" msgstr ""
"Impossible de sauvegarder le fichier existant, poursuivre l'enregistrement ?" "Impossible de sauvegarder le fichier existant, poursuivre l'enregistrement ?"
#: ../src/glade-window.c:1192 #: ../src/glade-window.c:1193
#, c-format #, c-format
msgid "Failed to save %s: %s" msgid "Failed to save %s: %s"
msgstr "Échec de l'enregistrement de %s : %s" msgstr "Échec de l'enregistrement de %s : %s"
#: ../src/glade-window.c:1231 #: ../src/glade-window.c:1232
#, c-format #, c-format
msgid "The file %s has been modified since reading it" msgid "The file %s has been modified since reading it"
msgstr "Le fichier %s a été modifié depuis sa lecture" msgstr "Le fichier %s a été modifié depuis sa lecture"
#: ../src/glade-window.c:1235 #: ../src/glade-window.c:1236
msgid "If you save it, all the external changes could be lost. Save it anyway?" msgid "If you save it, all the external changes could be lost. Save it anyway?"
msgstr "" msgstr ""
"Si vous l'enregistrez, toutes les modifications externes seront perdues. " "Si vous l'enregistrez, toutes les modifications externes seront perdues. "
"Enregistrer quand même ?" "Enregistrer quand même ?"
#: ../src/glade-window.c:1240 #: ../src/glade-window.c:1241
msgid "_Save Anyway" msgid "_Save Anyway"
msgstr "_Enregistrer quand même" msgstr "_Enregistrer quand même"
#: ../src/glade-window.c:1248 #: ../src/glade-window.c:1249
msgid "_Don't Save" msgid "_Don't Save"
msgstr "_Ne pas enregistrer" msgstr "_Ne pas enregistrer"
#: ../src/glade-window.c:1282 #: ../src/glade-window.c:1283
#, c-format #, c-format
msgid "Project '%s' saved" msgid "Project '%s' saved"
msgstr "Le projet « %s » a été enregistré" msgstr "Le projet « %s » a été enregistré"
#: ../src/glade-window.c:1313 #: ../src/glade-window.c:1314
msgid "Save As…" msgid "Save As…"
msgstr "Enregistrer sous…" msgstr "Enregistrer sous…"
#: ../src/glade-window.c:1377 #: ../src/glade-window.c:1378
#, c-format #, c-format
msgid "Could not save the file %s" msgid "Could not save the file %s"
msgstr "Impossible d'enregistrer le fichier %s" msgstr "Impossible d'enregistrer le fichier %s"
#: ../src/glade-window.c:1381 #: ../src/glade-window.c:1382
msgid "You do not have the permissions necessary to save the file." msgid "You do not have the permissions necessary to save the file."
msgstr "Vous n'avez pas les permissions requises pour enregistrer le fichier." msgstr "Vous n'avez pas les permissions requises pour enregistrer le fichier."
#: ../src/glade-window.c:1403 #: ../src/glade-window.c:1404
#, c-format #, c-format
msgid "Could not save file %s. Another project with that path is open." msgid "Could not save file %s. Another project with that path is open."
msgstr "" msgstr ""
"Impossible d'enregistrer le fichier %s. Un autre projet avec ce chemin est " "Impossible d'enregistrer le fichier %s. Un autre projet avec ce chemin est "
"ouvert." "ouvert."
#: ../src/glade-window.c:1428 #: ../src/glade-window.c:1429
msgid "No open projects to save" msgid "No open projects to save"
msgstr "Aucun projet ouvert à enregistrer" msgstr "Aucun projet ouvert à enregistrer"
#: ../src/glade-window.c:1458 #: ../src/glade-window.c:1459
#, c-format #, c-format
msgid "Save changes to project \"%s\" before closing?" msgid "Save changes to project \"%s\" before closing?"
msgstr "Enregistrer les modifications du projet « %s » avant de fermer ?" msgstr "Enregistrer les modifications du projet « %s » avant de fermer ?"
#: ../src/glade-window.c:1466 #: ../src/glade-window.c:1467
msgid "Your changes will be lost if you don't save them." msgid "Your changes will be lost if you don't save them."
msgstr "Vos modifications seront perdues si vous ne les enregistrez pas." msgstr "Vos modifications seront perdues si vous ne les enregistrez pas."
#: ../src/glade-window.c:1470 #: ../src/glade-window.c:1471
msgid "Close _without Saving" msgid "Close _without Saving"
msgstr "_Fermer sans enregistrer" msgstr "_Fermer sans enregistrer"
#: ../src/glade-window.c:1500 #: ../src/glade-window.c:1501
msgid "Save…" msgid "Save…"
msgstr "Enregistrer…" msgstr "Enregistrer…"
#: ../src/glade-window.c:2466 #: ../src/glade-window.c:2467
msgid "Close document" msgid "Close document"
msgstr "Ferme le document" msgstr "Ferme le document"
#: ../src/glade-window.c:2568 #: ../src/glade-window.c:2564
msgid "Could not create a new project." msgid "Could not create a new project."
msgstr "Impossible de créer un nouveau projet." msgstr "Impossible de créer un nouveau projet."
#: ../src/glade-window.c:2621 #: ../src/glade-window.c:2617
#, c-format #, c-format
msgid "The project %s has unsaved changes" msgid "The project %s has unsaved changes"
msgstr "Le projet %s a des modifications non enregistrées" msgstr "Le projet %s a des modifications non enregistrées"
#: ../src/glade-window.c:2626 #: ../src/glade-window.c:2622
msgid "If you reload it, all unsaved changes could be lost. Reload it anyway?" msgid "If you reload it, all unsaved changes could be lost. Reload it anyway?"
msgstr "" msgstr ""
"Si vous le rechargez, toutes les modifications non enregistrées seront " "Si vous le rechargez, toutes les modifications non enregistrées seront "
"perdues. Recharger quand même ?" "perdues. Recharger quand même ?"
#: ../src/glade-window.c:2636 #: ../src/glade-window.c:2632
#, c-format #, c-format
msgid "The project file %s has been externally modified" msgid "The project file %s has been externally modified"
msgstr "Le fichier du projet %s a été modifié extérieurement depuis sa lecture" msgstr "Le fichier du projet %s a été modifié extérieurement depuis sa lecture"
#: ../src/glade-window.c:2641 #: ../src/glade-window.c:2637
msgid "Do you want to reload the project?" msgid "Do you want to reload the project?"
msgstr "Voulez-vous recharger le projet ?" msgstr "Voulez-vous recharger le projet ?"
#: ../src/glade-window.c:2647 #: ../src/glade-window.c:2643
msgid "_Reload" msgid "_Reload"
msgstr "_Recharger" msgstr "_Recharger"
#: ../src/glade-window.c:3216 #: ../src/glade-window.c:3214
msgid "Palette" msgid "Palette"
msgstr "Palette" msgstr "Palette"
#: ../src/glade-window.c:3218 #: ../src/glade-window.c:3216
msgid "Inspector" msgid "Inspector"
msgstr "Inspecteur" msgstr "Inspecteur"
#: ../src/glade-window.c:3220 ../src/glade.glade.h:33 #: ../src/glade-window.c:3218 ../src/glade.glade.h:33
#: ../gladeui/glade-editor.c:320 ../gladeui/glade-widget.c:1385 #: ../gladeui/glade-editor.c:320 ../gladeui/glade-widget.c:1385
#: ../gladeui/glade-project-properties.ui.h:11 #: ../gladeui/glade-project-properties.ui.h:11
#: ../plugins/gtk+/glade-gtk-action-group.c:177 #: ../plugins/gtk+/glade-gtk-action-group.c:177
@ -299,6 +298,29 @@ msgstr "Inspecteur"
msgid "Properties" msgid "Properties"
msgstr "Propriétés" msgstr "Propriétés"
#. translators: Primary message of a dialog used to notify the user about the survey
#: ../src/glade-window.c:3479
msgid ""
"We are conducting a user survey\n"
" would you like to take it now?"
msgstr ""
"Nous menons une enquête sur nos utilisateurs\n"
" voulez-vous participer maintenant ?"
#. translators: Secondary text of a dialog used to notify the user about the survey
#: ../src/glade-window.c:3483
msgid "If not, you can always find it in the Help menu."
msgstr "Sinon, vous pourrez toujours la trouver dans le menu Aide."
#: ../src/glade-window.c:3485
msgid "_Do not show this dialog again"
msgstr "_Ne plus afficher cette fenêtre"
#. translators: Text to show in the statusbar if the user did not completed the survey and choose not to show the notification dialog again
#: ../src/glade-window.c:3506
msgid "Go to Help -> Registration & User Survey and complete our survey!"
msgstr "Rendez-vous dans Aide -> Inscription et enquête auprès des utilisateurs, et répondez à l'enquête !"
#: ../src/main.c:51 #: ../src/main.c:51
msgid "Output version information and exit" msgid "Output version information and exit"
msgstr "Affiche les informations de version et quitte" msgstr "Affiche les informations de version et quitte"
@ -679,7 +701,7 @@ msgstr "_Récemment ouverts"
#: ../src/glade.glade.h:88 #: ../src/glade.glade.h:88
msgid "Registration & User Survey" msgid "Registration & User Survey"
msgstr "Incription et enquête auprès des utilisateurs" msgstr "Inscription et enquête auprès des utilisateurs"
#: ../src/glade.glade.h:89 #: ../src/glade.glade.h:89
msgid "Help us improve Glade by registering and completing the user survey!" msgid "Help us improve Glade by registering and completing the user survey!"
@ -809,49 +831,49 @@ msgstr "Chemins supplémentaires du catalogue"
msgid "Select a catalog search path" msgid "Select a catalog search path"
msgstr "Sélectionner un chemin de recherche de catalogue" msgstr "Sélectionner un chemin de recherche de catalogue"
#: ../src/glade-registration.c:282 #: ../src/glade-registration.c:290
#, c-format #, c-format
msgid "Connecting to %s" msgid "Connecting to %s"
msgstr "Connexion à %s" msgstr "Connexion à %s"
#: ../src/glade-registration.c:285 #: ../src/glade-registration.c:293
#, c-format #, c-format
msgid "Sending data to %s" msgid "Sending data to %s"
msgstr "Envoi de données à %s" msgstr "Envoi de données à %s"
#: ../src/glade-registration.c:288 #: ../src/glade-registration.c:296
#, c-format #, c-format
msgid "Waiting for %s" msgid "Waiting for %s"
msgstr "En attente de %s" msgstr "En attente de %s"
#: ../src/glade-registration.c:291 #: ../src/glade-registration.c:299
#, c-format #, c-format
msgid "Receiving data from %s" msgid "Receiving data from %s"
msgstr "Réception de données de %s" msgstr "Réception de données de %s"
#: ../src/glade-registration.c:323 #: ../src/glade-registration.c:331
msgid "Sorry, automatic subscription to Glade Users mailing list failed" msgid "Sorry, automatic subscription to Glade Users mailing list failed"
msgstr "" msgstr ""
"Désolé, l'inscription automatique à la liste de diffusion des utilisateurs " "Désolé, l'inscription automatique à la liste de diffusion des utilisateurs "
"de Glade a échoué." "de Glade a échoué."
#: ../src/glade-registration.c:326 #: ../src/glade-registration.c:334
msgid "Open Glade Users Website" msgid "Open Glade Users Website"
msgstr "Ouvrir la page de la liste de diffusion des utilisateurs" msgstr "Ouvrir la page de la liste de diffusion des utilisateurs"
#: ../src/glade-registration.c:378 #: ../src/glade-registration.c:386
msgid "Internal server error" msgid "Internal server error"
msgstr "Erreur de serveur interne" msgstr "Erreur de serveur interne"
#: ../src/glade-registration.c:402 #: ../src/glade-registration.c:410
msgid "Thank you for taking the time to complete the survey, we appreciate it!" msgid "Thank you for taking the time to complete the survey, we appreciate it!"
msgstr "Merci de prendre le temps de remplir cette enquête. Nous apprécions !" msgstr "Merci de prendre le temps de remplir cette enquête. Nous apprécions !"
#: ../src/glade-registration.c:407 #: ../src/glade-registration.c:418
msgid "Name and Email fields are required" msgid "Name and Email fields are required"
msgstr "Les champs « Nom » et « Adresse électronique » sont obligatoires." msgstr "Les champs « Nom » et « Adresse électronique » sont obligatoires."
#: ../src/glade-registration.c:410 #: ../src/glade-registration.c:421
msgid "" msgid ""
"Ops! Email address is already in use!\n" "Ops! Email address is already in use!\n"
"To update information you need to provide the token that was sent to your " "To update information you need to provide the token that was sent to your "
@ -861,19 +883,19 @@ msgstr ""
"Pour mettre à jour vos informations, vous devez fournir la clé qui a été " "Pour mettre à jour vos informations, vous devez fournir la clé qui a été "
"envoyée dans votre boîte aux lettres." "envoyée dans votre boîte aux lettres."
#: ../src/glade-registration.c:413 #: ../src/glade-registration.c:424
#, c-format #, c-format
msgid "Ops! Error saving user information: %s" msgid "Ops! Error saving user information: %s"
msgstr "" msgstr ""
"Oups ! Erreur lors de l'enregistrement des informations concernant " "Oups ! Erreur lors de l'enregistrement des informations concernant "
"l'utilisateur : %s" "l'utilisateur : %s"
#: ../src/glade-registration.c:416 #: ../src/glade-registration.c:427
#, c-format #, c-format
msgid "Ops! Error saving survey data: %s" msgid "Ops! Error saving survey data: %s"
msgstr "Oups ! Erreur lors de l'enregistrement des données d'enquête :%s" msgstr "Oups ! Erreur lors de l'enregistrement des données d'enquête :%s"
#: ../src/glade-registration.c:419 #: ../src/glade-registration.c:430
#, c-format #, c-format
msgid "Ops! Error accessing DB: %s" msgid "Ops! Error accessing DB: %s"
msgstr "Oups ! Erreur lors de l'accession à la base de données : %s" msgstr "Oups ! Erreur lors de l'accession à la base de données : %s"
@ -1410,10 +1432,10 @@ msgid ""
"shared with the public or any other third party." "shared with the public or any other third party."
msgstr "" msgstr ""
"L'unique propos de cette enquête est de mieux connaître la base de nos " "L'unique propos de cette enquête est de mieux connaître la base de nos "
"utilisateurs. Votre adresse électronique n'est utilisée que pour vous identifier " "utilisateurs. Votre adresse électronique n'est utilisée que pour vous "
"en tant qu'utilisateur de Glade et pour vous envoyer une clé de modification " "identifier en tant qu'utilisateur de Glade et pour vous envoyer une clé de "
"au cas où vous souhaiteriez modifier quelque chose ou ajouter d'autres " "modification au cas où vous souhaiteriez modifier quelque chose ou ajouter "
"commentaires.\n" "d'autres commentaires.\n"
"Seules les statistiques tirées de l'ensemble de données seront partagées " "Seules les statistiques tirées de l'ensemble de données seront partagées "
"publiquement.\n" "publiquement.\n"
"Les données personnelles sont stockées dans une base de données privée, sans " "Les données personnelles sont stockées dans une base de données privée, sans "
@ -1665,7 +1687,7 @@ msgstr "Définition de plusieurs propriétés"
msgid "Setting %s of %s" msgid "Setting %s of %s"
msgstr "Configuration de %s pour %s" msgstr "Configuration de %s pour %s"
#: ../gladeui/glade-command.c:823 ../gladeui/glade-editor-property.c:3350 #: ../gladeui/glade-command.c:823 ../gladeui/glade-editor-property.c:3355
#, c-format #, c-format
msgid "Setting %s of %s to %s" msgid "Setting %s of %s to %s"
msgstr "Configuration de %s pour %s à %s" msgstr "Configuration de %s pour %s à %s"
@ -1959,41 +1981,41 @@ msgstr "Texte personnalisé"
msgid "Custom Text to display in the property label" msgid "Custom Text to display in the property label"
msgstr "Personnalise le texte à afficher dans l'étiquette de la propriété" msgstr "Personnalise le texte à afficher dans l'étiquette de la propriété"
#: ../gladeui/glade-editor-property.c:1262 #: ../gladeui/glade-editor-property.c:1267
msgid "Select Fields" msgid "Select Fields"
msgstr "Sélectionner les champs" msgstr "Sélectionner les champs"
#: ../gladeui/glade-editor-property.c:1285 #: ../gladeui/glade-editor-property.c:1290
msgid "_Select individual fields:" msgid "_Select individual fields:"
msgstr "_Sélectionner les champs individuels :" msgstr "_Sélectionner les champs individuels :"
#: ../gladeui/glade-editor-property.c:1635 #: ../gladeui/glade-editor-property.c:1640
msgid "Select Named Icon" msgid "Select Named Icon"
msgstr "Sélectionner une icône nommée" msgstr "Sélectionner une icône nommée"
#: ../gladeui/glade-editor-property.c:1942 #: ../gladeui/glade-editor-property.c:1947
msgid "Edit Text" msgid "Edit Text"
msgstr "Éditer le texte" msgstr "Éditer le texte"
#. Text #. Text
#: ../gladeui/glade-editor-property.c:1972 #: ../gladeui/glade-editor-property.c:1977
msgid "_Text:" msgid "_Text:"
msgstr "_Texte :" msgstr "_Texte :"
#. Translatable #. Translatable
#: ../gladeui/glade-editor-property.c:2008 #: ../gladeui/glade-editor-property.c:2013
msgid "T_ranslatable" msgid "T_ranslatable"
msgstr "T_raduisible" msgstr "T_raduisible"
#: ../gladeui/glade-editor-property.c:2014 ../gladeui/glade-property.c:677 #: ../gladeui/glade-editor-property.c:2019 ../gladeui/glade-property.c:677
msgid "Whether this property is translatable" msgid "Whether this property is translatable"
msgstr "Indique si la propriété peut être traduite" msgstr "Indique si la propriété peut être traduite"
#: ../gladeui/glade-editor-property.c:2022 #: ../gladeui/glade-editor-property.c:2027
msgid "Conte_xt for translation:" msgid "Conte_xt for translation:"
msgstr "Conte_xte pour la traduction :" msgstr "Conte_xte pour la traduction :"
#: ../gladeui/glade-editor-property.c:2028 #: ../gladeui/glade-editor-property.c:2033
msgid "" msgid ""
"For short and ambiguous strings: type a word here to differentiate the " "For short and ambiguous strings: type a word here to differentiate the "
"meaning of this string from the meaning of other occurrences of the same " "meaning of this string from the meaning of other occurrences of the same "
@ -2003,64 +2025,64 @@ msgstr ""
"signification de cette chaîne par rapport à d'autres occurrences de la même " "signification de cette chaîne par rapport à d'autres occurrences de la même "
"chaîne" "chaîne"
#: ../gladeui/glade-editor-property.c:2060 #: ../gladeui/glade-editor-property.c:2065
msgid "Co_mments for translators:" msgid "Co_mments for translators:"
msgstr "Co_mmentaires pour les traducteurs :" msgstr "Co_mmentaires pour les traducteurs :"
#: ../gladeui/glade-editor-property.c:2150 #: ../gladeui/glade-editor-property.c:2155
msgid "Select a file from the project resource directory" msgid "Select a file from the project resource directory"
msgstr "" msgstr ""
"Sélectionnez un fichier à partir du répertoire des ressources du projet" "Sélectionnez un fichier à partir du répertoire des ressources du projet"
#. GtkInputPurpose enumeration value #. GtkInputPurpose enumeration value
#: ../gladeui/glade-editor-property.c:3018 #: ../gladeui/glade-editor-property.c:3023
#: ../gladeui/glade-widget-adaptor.c:1392 ../gladeui/glade-widget.c:1349 #: ../gladeui/glade-widget-adaptor.c:1392 ../gladeui/glade-widget.c:1349
#: ../plugins/gtk+/gtk+.xml.in.h:499 #: ../plugins/gtk+/gtk+.xml.in.h:499
msgid "Name" msgid "Name"
msgstr "Nom" msgstr "Nom"
#: ../gladeui/glade-editor-property.c:3027 ../gladeui/glade-property.c:644 #: ../gladeui/glade-editor-property.c:3032 ../gladeui/glade-property.c:644
msgid "Class" msgid "Class"
msgstr "Classe" msgstr "Classe"
#: ../gladeui/glade-editor-property.c:3047 #: ../gladeui/glade-editor-property.c:3052
#, c-format #, c-format
msgid "Choose parentless %s type objects in this project" msgid "Choose parentless %s type objects in this project"
msgstr "Choisir des objects de type %s sans parent dans ce projet" msgstr "Choisir des objects de type %s sans parent dans ce projet"
#: ../gladeui/glade-editor-property.c:3049 #: ../gladeui/glade-editor-property.c:3054
#, c-format #, c-format
msgid "Choose %s type objects in this project" msgid "Choose %s type objects in this project"
msgstr "Choisir des objets de type %s dans ce projet" msgstr "Choisir des objets de type %s dans ce projet"
#: ../gladeui/glade-editor-property.c:3069 #: ../gladeui/glade-editor-property.c:3074
#, c-format #, c-format
msgid "Choose a parentless %s in this project" msgid "Choose a parentless %s in this project"
msgstr "Choisir un %s sans parent dans ce projet" msgstr "Choisir un %s sans parent dans ce projet"
#: ../gladeui/glade-editor-property.c:3071 #: ../gladeui/glade-editor-property.c:3076
#, c-format #, c-format
msgid "Choose a %s in this project" msgid "Choose a %s in this project"
msgstr "Choisir un %s pour ce projet" msgstr "Choisir un %s pour ce projet"
#. Checklist #. Checklist
#: ../gladeui/glade-editor-property.c:3128 #: ../gladeui/glade-editor-property.c:3133
#: ../gladeui/glade-editor-property.c:3269 #: ../gladeui/glade-editor-property.c:3274
msgid "O_bjects:" msgid "O_bjects:"
msgstr "O_bjets :" msgstr "O_bjets :"
#: ../gladeui/glade-editor-property.c:3221 #: ../gladeui/glade-editor-property.c:3226
msgid "_New" msgid "_New"
msgstr "_Nouveau" msgstr "_Nouveau"
#. translators: Creating 'a widget' for 'a property' of 'a widget' #. translators: Creating 'a widget' for 'a property' of 'a widget'
#: ../gladeui/glade-editor-property.c:3376 #: ../gladeui/glade-editor-property.c:3381
#, c-format #, c-format
msgid "Creating %s for %s of %s" msgid "Creating %s for %s of %s"
msgstr "Création de %s pour %s de %s" msgstr "Création de %s pour %s de %s"
#. Checklist #. Checklist
#: ../gladeui/glade-editor-property.c:3572 #: ../gladeui/glade-editor-property.c:3577
msgid "Objects:" msgid "Objects:"
msgstr "Objets :" msgstr "Objets :"

258
po/gl.po
View File

@ -15,8 +15,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: glade3-master-po-gl-27110\n" "Project-Id-Version: glade3-master-po-gl-27110\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-03-14 18:58+0100\n" "POT-Creation-Date: 2014-03-31 23:37+0200\n"
"PO-Revision-Date: 2014-03-14 19:01+0200\n" "PO-Revision-Date: 2014-03-31 23:38+0200\n"
"Last-Translator: Fran Dieguez <frandieguez@gnome.org>\n" "Last-Translator: Fran Dieguez <frandieguez@gnome.org>\n"
"Language-Team: gnome-l10n-gl@gnome.org\n" "Language-Team: gnome-l10n-gl@gnome.org\n"
"Language: gl\n" "Language: gl\n"
@ -82,195 +82,195 @@ msgstr ""
msgid "[Read Only]" msgid "[Read Only]"
msgstr "[Só de lectura]" msgstr "[Só de lectura]"
#: ../src/glade-window.c:322 #: ../src/glade-window.c:323
msgid "User Interface Designer" msgid "User Interface Designer"
msgstr "Deseñador de interfaces de usuario" msgstr "Deseñador de interfaces de usuario"
#. translators: referring to the action of activating a file named '%s'. #. translators: referring to the action of activating a file named '%s'.
#. * we also indicate to users that the file may be read-only with #. * we also indicate to users that the file may be read-only with
#. * the second '%s' #. * the second '%s'
#: ../src/glade-window.c:523 #: ../src/glade-window.c:524
#, c-format #, c-format
msgid "Activate '%s' %s" msgid "Activate '%s' %s"
msgstr "Activar '%s' %s" msgstr "Activar '%s' %s"
#. translators: referring to the action of activating a file named '%s' #. translators: referring to the action of activating a file named '%s'
#. FIXME add hint for translators #. FIXME add hint for translators
#: ../src/glade-window.c:529 ../src/glade-window.c:537 #: ../src/glade-window.c:530 ../src/glade-window.c:538
#, c-format #, c-format
msgid "Activate '%s'" msgid "Activate '%s'"
msgstr "Activar '%s'" msgstr "Activar '%s'"
#. Name #. Name
#: ../src/glade-window.c:585 ../src/glade-registration.glade.h:4 #: ../src/glade-window.c:586 ../src/glade-registration.glade.h:4
#: ../gladeui/glade-base-editor.c:2030 #: ../gladeui/glade-base-editor.c:2030
#: ../gladeui/glade-project-properties.ui.h:12 #: ../gladeui/glade-project-properties.ui.h:12
#: ../plugins/gtk+/glade-about-dialog-editor.ui.h:2 #: ../plugins/gtk+/glade-about-dialog-editor.ui.h:2
msgid "Name:" msgid "Name:"
msgstr "Nome:" msgstr "Nome:"
#: ../src/glade-window.c:588 #: ../src/glade-window.c:589
msgid "Requires:" msgid "Requires:"
msgstr "Require:" msgstr "Require:"
#: ../src/glade-window.c:647 #: ../src/glade-window.c:648
msgid "_Undo" msgid "_Undo"
msgstr "_Desfacer" msgstr "_Desfacer"
#: ../src/glade-window.c:650 #: ../src/glade-window.c:651
#, c-format #, c-format
msgid "Undo: %s" msgid "Undo: %s"
msgstr "Desfacer: %s" msgstr "Desfacer: %s"
#: ../src/glade-window.c:651 ../src/glade-window.c:662 #: ../src/glade-window.c:652 ../src/glade-window.c:663
msgid "the last action" msgid "the last action"
msgstr "a última acción" msgstr "a última acción"
#: ../src/glade-window.c:658 #: ../src/glade-window.c:659
msgid "_Redo" msgid "_Redo"
msgstr "_Refacer" msgstr "_Refacer"
#: ../src/glade-window.c:661 #: ../src/glade-window.c:662
#, c-format #, c-format
msgid "Redo: %s" msgid "Redo: %s"
msgstr "Refacer: %s" msgstr "Refacer: %s"
#: ../src/glade-window.c:693 #: ../src/glade-window.c:694
#, c-format #, c-format
msgid "Autosaving '%s'" msgid "Autosaving '%s'"
msgstr "Autogardando «%s»" msgstr "Autogardando «%s»"
#: ../src/glade-window.c:698 #: ../src/glade-window.c:699
#, c-format #, c-format
msgid "Error autosaving '%s'" msgid "Error autosaving '%s'"
msgstr "Erro ao autogardar «%s»" msgstr "Erro ao autogardar «%s»"
#: ../src/glade-window.c:1117 #: ../src/glade-window.c:1118
msgid "Open…" msgid "Open…"
msgstr "Abrir…" msgstr "Abrir…"
#: ../src/glade-window.c:1151 #: ../src/glade-window.c:1152
#, c-format #, c-format
msgid "Project %s is still loading." msgid "Project %s is still loading."
msgstr "Aínda se está cargando o proxecto «%s»." msgstr "Aínda se está cargando o proxecto «%s»."
#: ../src/glade-window.c:1170 #: ../src/glade-window.c:1171
msgid "Failed to backup existing file, continue saving?" msgid "Failed to backup existing file, continue saving?"
msgstr "" msgstr ""
"Produciuse un fallo ao facer un respaldo do ficheiro existente, continuar o " "Produciuse un fallo ao facer un respaldo do ficheiro existente, continuar o "
"gardado?" "gardado?"
#: ../src/glade-window.c:1192 #: ../src/glade-window.c:1193
#, c-format #, c-format
msgid "Failed to save %s: %s" msgid "Failed to save %s: %s"
msgstr "Produciuse un erro ao gardar %s: %s" msgstr "Produciuse un erro ao gardar %s: %s"
#: ../src/glade-window.c:1231 #: ../src/glade-window.c:1232
#, c-format #, c-format
msgid "The file %s has been modified since reading it" msgid "The file %s has been modified since reading it"
msgstr "O ficheiro %s modificouse desde que se leu" msgstr "O ficheiro %s modificouse desde que se leu"
#: ../src/glade-window.c:1235 #: ../src/glade-window.c:1236
msgid "If you save it, all the external changes could be lost. Save it anyway?" msgid "If you save it, all the external changes could be lost. Save it anyway?"
msgstr "" msgstr ""
"Se o garda, todos os cambios externos poderían perderse. Quere gardalo de " "Se o garda, todos os cambios externos poderían perderse. Quere gardalo de "
"todos os modos?" "todos os modos?"
#: ../src/glade-window.c:1240 #: ../src/glade-window.c:1241
msgid "_Save Anyway" msgid "_Save Anyway"
msgstr "_Gardar de todos os modos" msgstr "_Gardar de todos os modos"
#: ../src/glade-window.c:1248 #: ../src/glade-window.c:1249
msgid "_Don't Save" msgid "_Don't Save"
msgstr "_Non gardar" msgstr "_Non gardar"
#: ../src/glade-window.c:1282 #: ../src/glade-window.c:1283
#, c-format #, c-format
msgid "Project '%s' saved" msgid "Project '%s' saved"
msgstr "Gardouse o proxecto '%s'" msgstr "Gardouse o proxecto '%s'"
#: ../src/glade-window.c:1313 #: ../src/glade-window.c:1314
msgid "Save As…" msgid "Save As…"
msgstr "Gardar como…" msgstr "Gardar como…"
#: ../src/glade-window.c:1377 #: ../src/glade-window.c:1378
#, c-format #, c-format
msgid "Could not save the file %s" msgid "Could not save the file %s"
msgstr "Non foi posíbel gardar o ficheiro %s" msgstr "Non foi posíbel gardar o ficheiro %s"
#: ../src/glade-window.c:1381 #: ../src/glade-window.c:1382
msgid "You do not have the permissions necessary to save the file." msgid "You do not have the permissions necessary to save the file."
msgstr "Non ten os permisos necesarios para gardar o ficheiro." msgstr "Non ten os permisos necesarios para gardar o ficheiro."
#: ../src/glade-window.c:1403 #: ../src/glade-window.c:1404
#, c-format #, c-format
msgid "Could not save file %s. Another project with that path is open." msgid "Could not save file %s. Another project with that path is open."
msgstr "" msgstr ""
"Non foi posíbel gardar o ficheiro %s. Está aberto outro proxecto con esa " "Non foi posíbel gardar o ficheiro %s. Está aberto outro proxecto con esa "
"ruta." "ruta."
#: ../src/glade-window.c:1428 #: ../src/glade-window.c:1429
msgid "No open projects to save" msgid "No open projects to save"
msgstr "Non hai proxectos abertos que gardar" msgstr "Non hai proxectos abertos que gardar"
#: ../src/glade-window.c:1458 #: ../src/glade-window.c:1459
#, c-format #, c-format
msgid "Save changes to project \"%s\" before closing?" msgid "Save changes to project \"%s\" before closing?"
msgstr "Quere gardar os cambios no proxecto «%s» antes de pechar?" msgstr "Quere gardar os cambios no proxecto «%s» antes de pechar?"
#: ../src/glade-window.c:1466 #: ../src/glade-window.c:1467
msgid "Your changes will be lost if you don't save them." msgid "Your changes will be lost if you don't save them."
msgstr "Os seus cambios perderanse se non os garda." msgstr "Os seus cambios perderanse se non os garda."
#: ../src/glade-window.c:1470 #: ../src/glade-window.c:1471
msgid "Close _without Saving" msgid "Close _without Saving"
msgstr "_Pechar sen gardar" msgstr "_Pechar sen gardar"
#: ../src/glade-window.c:1500 #: ../src/glade-window.c:1501
msgid "Save…" msgid "Save…"
msgstr "Gardar…" msgstr "Gardar…"
#: ../src/glade-window.c:2466 #: ../src/glade-window.c:2467
msgid "Close document" msgid "Close document"
msgstr "Pechar o documento" msgstr "Pechar o documento"
#: ../src/glade-window.c:2568 #: ../src/glade-window.c:2564
msgid "Could not create a new project." msgid "Could not create a new project."
msgstr "Non foi posíbel crear un proxecto novo." msgstr "Non foi posíbel crear un proxecto novo."
#: ../src/glade-window.c:2621 #: ../src/glade-window.c:2617
#, c-format #, c-format
msgid "The project %s has unsaved changes" msgid "The project %s has unsaved changes"
msgstr "O proxecto %s ten cambios sen gardar" msgstr "O proxecto %s ten cambios sen gardar"
#: ../src/glade-window.c:2626 #: ../src/glade-window.c:2622
msgid "If you reload it, all unsaved changes could be lost. Reload it anyway?" msgid "If you reload it, all unsaved changes could be lost. Reload it anyway?"
msgstr "" msgstr ""
"Se o recarga, podería perder todos os cambios sen gardar. Quere recargalo de " "Se o recarga, podería perder todos os cambios sen gardar. Quere recargalo de "
"todos modos?" "todos modos?"
#: ../src/glade-window.c:2636 #: ../src/glade-window.c:2632
#, c-format #, c-format
msgid "The project file %s has been externally modified" msgid "The project file %s has been externally modified"
msgstr "O ficheiro de proxecto %s modificouse externamente" msgstr "O ficheiro de proxecto %s modificouse externamente"
#: ../src/glade-window.c:2641 #: ../src/glade-window.c:2637
msgid "Do you want to reload the project?" msgid "Do you want to reload the project?"
msgstr "Quere recargar o proxecto?" msgstr "Quere recargar o proxecto?"
#: ../src/glade-window.c:2647 #: ../src/glade-window.c:2643
msgid "_Reload" msgid "_Reload"
msgstr "_Recargar" msgstr "_Recargar"
#: ../src/glade-window.c:3216 #: ../src/glade-window.c:3214
msgid "Palette" msgid "Palette"
msgstr "Paleta" msgstr "Paleta"
#: ../src/glade-window.c:3218 #: ../src/glade-window.c:3216
msgid "Inspector" msgid "Inspector"
msgstr "Inspector" msgstr "Inspector"
#: ../src/glade-window.c:3220 ../src/glade.glade.h:33 #: ../src/glade-window.c:3218 ../src/glade.glade.h:33
#: ../gladeui/glade-editor.c:320 ../gladeui/glade-widget.c:1385 #: ../gladeui/glade-editor.c:320 ../gladeui/glade-widget.c:1385
#: ../gladeui/glade-project-properties.ui.h:11 #: ../gladeui/glade-project-properties.ui.h:11
#: ../plugins/gtk+/glade-gtk-action-group.c:177 #: ../plugins/gtk+/glade-gtk-action-group.c:177
@ -283,6 +283,30 @@ msgstr "Inspector"
msgid "Properties" msgid "Properties"
msgstr "Propiedades" msgstr "Propiedades"
#. translators: Primary message of a dialog used to notify the user about the survey
#: ../src/glade-window.c:3479
msgid ""
"We are conducting a user survey\n"
" would you like to take it now?"
msgstr ""
"Estamos levando a cabo unha enquisa de usuarios\n"
" desexa tomar parte?"
#. translators: Secondary text of a dialog used to notify the user about the survey
#: ../src/glade-window.c:3483
msgid "If not, you can always find it in the Help menu."
msgstr "Se non, sempre pode atopala desde o menú Axuda."
#: ../src/glade-window.c:3485
msgid "_Do not show this dialog again"
msgstr "_Non mostrar este diálogo de novo"
#. translators: Text to show in the statusbar if the user did not completed the survey and choose not to show the notification dialog again
#: ../src/glade-window.c:3506
msgid "Go to Help -> Registration & User Survey and complete our survey!"
msgstr ""
"Vaia a Axuda -> Rexistro e Enquisa de usuarios e complete a nosa enquisa!"
#: ../src/main.c:51 #: ../src/main.c:51
msgid "Output version information and exit" msgid "Output version information and exit"
msgstr "Mostrar a información de versión e saír" msgstr "Mostrar a información de versión e saír"
@ -791,47 +815,47 @@ msgstr "Rutas de catálogos adicionais"
msgid "Select a catalog search path" msgid "Select a catalog search path"
msgstr "Seleccione unha ruta de busca de catálogos" msgstr "Seleccione unha ruta de busca de catálogos"
#: ../src/glade-registration.c:282 #: ../src/glade-registration.c:290
#, c-format #, c-format
msgid "Connecting to %s" msgid "Connecting to %s"
msgstr "Conectándose a %s" msgstr "Conectándose a %s"
#: ../src/glade-registration.c:285 #: ../src/glade-registration.c:293
#, c-format #, c-format
msgid "Sending data to %s" msgid "Sending data to %s"
msgstr "Enviando datos a %s" msgstr "Enviando datos a %s"
#: ../src/glade-registration.c:288 #: ../src/glade-registration.c:296
#, c-format #, c-format
msgid "Waiting for %s" msgid "Waiting for %s"
msgstr "Agardando por %s" msgstr "Agardando por %s"
#: ../src/glade-registration.c:291 #: ../src/glade-registration.c:299
#, c-format #, c-format
msgid "Receiving data from %s" msgid "Receiving data from %s"
msgstr "Recibindo datos desde %s" msgstr "Recibindo datos desde %s"
#: ../src/glade-registration.c:323 #: ../src/glade-registration.c:331
msgid "Sorry, automatic subscription to Glade Users mailing list failed" msgid "Sorry, automatic subscription to Glade Users mailing list failed"
msgstr "Desculpe, fallou a subscrición automática á lista de usuarios de Glade" msgstr "Desculpe, fallou a subscrición automática á lista de usuarios de Glade"
#: ../src/glade-registration.c:326 #: ../src/glade-registration.c:334
msgid "Open Glade Users Website" msgid "Open Glade Users Website"
msgstr "Abrir o sitio web de usuarios de Glade" msgstr "Abrir o sitio web de usuarios de Glade"
#: ../src/glade-registration.c:378 #: ../src/glade-registration.c:386
msgid "Internal server error" msgid "Internal server error"
msgstr "Erro interno do servidor" msgstr "Erro interno do servidor"
#: ../src/glade-registration.c:402 #: ../src/glade-registration.c:410
msgid "Thank you for taking the time to complete the survey, we appreciate it!" msgid "Thank you for taking the time to complete the survey, we appreciate it!"
msgstr "Grazas polo tempo de completar a nosa enquisa, agradecémosllo!" msgstr "Grazas polo tempo de completar a nosa enquisa, agradecémosllo!"
#: ../src/glade-registration.c:407 #: ../src/glade-registration.c:418
msgid "Name and Email fields are required" msgid "Name and Email fields are required"
msgstr "Requírense os campos do nome e correo electrónico" msgstr "Requírense os campos do nome e correo electrónico"
#: ../src/glade-registration.c:410 #: ../src/glade-registration.c:421
msgid "" msgid ""
"Ops! Email address is already in use!\n" "Ops! Email address is already in use!\n"
"To update information you need to provide the token that was sent to your " "To update information you need to provide the token that was sent to your "
@ -841,17 +865,17 @@ msgstr ""
"Para actualizar a información debe fornecer o token que lle enviamos ao seu " "Para actualizar a información debe fornecer o token que lle enviamos ao seu "
"correo." "correo."
#: ../src/glade-registration.c:413 #: ../src/glade-registration.c:424
#, c-format #, c-format
msgid "Ops! Error saving user information: %s" msgid "Ops! Error saving user information: %s"
msgstr "Recoiro! Produciuse un erro ao gardar a información do usuario: %s" msgstr "Recoiro! Produciuse un erro ao gardar a información do usuario: %s"
#: ../src/glade-registration.c:416 #: ../src/glade-registration.c:427
#, c-format #, c-format
msgid "Ops! Error saving survey data: %s" msgid "Ops! Error saving survey data: %s"
msgstr "Recoiro! Produciuse un erro ao gardar os datos da enquisa: %s" msgstr "Recoiro! Produciuse un erro ao gardar os datos da enquisa: %s"
#: ../src/glade-registration.c:419 #: ../src/glade-registration.c:430
#, c-format #, c-format
msgid "Ops! Error accessing DB: %s" msgid "Ops! Error accessing DB: %s"
msgstr "Recoiro! Produciuse un erro ao acceder á base de datos: %s" msgstr "Recoiro! Produciuse un erro ao acceder á base de datos: %s"
@ -1635,7 +1659,7 @@ msgstr "Definindo múltiples propiedades"
msgid "Setting %s of %s" msgid "Setting %s of %s"
msgstr "Definindo %s de %s" msgstr "Definindo %s de %s"
#: ../gladeui/glade-command.c:823 ../gladeui/glade-editor-property.c:3350 #: ../gladeui/glade-command.c:823 ../gladeui/glade-editor-property.c:3355
#, c-format #, c-format
msgid "Setting %s of %s to %s" msgid "Setting %s of %s to %s"
msgstr "Definindo %s de %s a %s" msgstr "Definindo %s de %s a %s"
@ -1923,41 +1947,41 @@ msgstr "Texto personalizado"
msgid "Custom Text to display in the property label" msgid "Custom Text to display in the property label"
msgstr "Texto personalizado que mostrar na etiqueta da propiedade" msgstr "Texto personalizado que mostrar na etiqueta da propiedade"
#: ../gladeui/glade-editor-property.c:1262 #: ../gladeui/glade-editor-property.c:1267
msgid "Select Fields" msgid "Select Fields"
msgstr "Seleccionar campos" msgstr "Seleccionar campos"
#: ../gladeui/glade-editor-property.c:1285 #: ../gladeui/glade-editor-property.c:1290
msgid "_Select individual fields:" msgid "_Select individual fields:"
msgstr "_Seleccionar campos individuais:" msgstr "_Seleccionar campos individuais:"
#: ../gladeui/glade-editor-property.c:1635 #: ../gladeui/glade-editor-property.c:1640
msgid "Select Named Icon" msgid "Select Named Icon"
msgstr "Seleccione unha icona con nome" msgstr "Seleccione unha icona con nome"
#: ../gladeui/glade-editor-property.c:1942 #: ../gladeui/glade-editor-property.c:1947
msgid "Edit Text" msgid "Edit Text"
msgstr "Editar texto" msgstr "Editar texto"
#. Text #. Text
#: ../gladeui/glade-editor-property.c:1972 #: ../gladeui/glade-editor-property.c:1977
msgid "_Text:" msgid "_Text:"
msgstr "_Texto:" msgstr "_Texto:"
#. Translatable #. Translatable
#: ../gladeui/glade-editor-property.c:2008 #: ../gladeui/glade-editor-property.c:2013
msgid "T_ranslatable" msgid "T_ranslatable"
msgstr "T_raducíbel" msgstr "T_raducíbel"
#: ../gladeui/glade-editor-property.c:2014 ../gladeui/glade-property.c:677 #: ../gladeui/glade-editor-property.c:2019 ../gladeui/glade-property.c:677
msgid "Whether this property is translatable" msgid "Whether this property is translatable"
msgstr "Indica se esta propiedade é traducíbel ou non" msgstr "Indica se esta propiedade é traducíbel ou non"
#: ../gladeui/glade-editor-property.c:2022 #: ../gladeui/glade-editor-property.c:2027
msgid "Conte_xt for translation:" msgid "Conte_xt for translation:"
msgstr "Conte_xto para a tradución:" msgstr "Conte_xto para a tradución:"
#: ../gladeui/glade-editor-property.c:2028 #: ../gladeui/glade-editor-property.c:2033
msgid "" msgid ""
"For short and ambiguous strings: type a word here to differentiate the " "For short and ambiguous strings: type a word here to differentiate the "
"meaning of this string from the meaning of other occurrences of the same " "meaning of this string from the meaning of other occurrences of the same "
@ -1966,63 +1990,63 @@ msgstr ""
"Para cadeas curtas ou ambiguas: escriba aquí unha palabra para diferenciar o " "Para cadeas curtas ou ambiguas: escriba aquí unha palabra para diferenciar o "
"significado desta cadea de significado de outras ocorrencias da mesma cadea." "significado desta cadea de significado de outras ocorrencias da mesma cadea."
#: ../gladeui/glade-editor-property.c:2060 #: ../gladeui/glade-editor-property.c:2065
msgid "Co_mments for translators:" msgid "Co_mments for translators:"
msgstr "Co_mentarios para os tradutores:" msgstr "Co_mentarios para os tradutores:"
#: ../gladeui/glade-editor-property.c:2150 #: ../gladeui/glade-editor-property.c:2155
msgid "Select a file from the project resource directory" msgid "Select a file from the project resource directory"
msgstr "Seleccione un ficheiro do directorio de recursos do proxecto" msgstr "Seleccione un ficheiro do directorio de recursos do proxecto"
#. GtkInputPurpose enumeration value #. GtkInputPurpose enumeration value
#: ../gladeui/glade-editor-property.c:3018 #: ../gladeui/glade-editor-property.c:3023
#: ../gladeui/glade-widget-adaptor.c:1392 ../gladeui/glade-widget.c:1349 #: ../gladeui/glade-widget-adaptor.c:1392 ../gladeui/glade-widget.c:1349
#: ../plugins/gtk+/gtk+.xml.in.h:499 #: ../plugins/gtk+/gtk+.xml.in.h:499
msgid "Name" msgid "Name"
msgstr "Nome" msgstr "Nome"
#: ../gladeui/glade-editor-property.c:3027 ../gladeui/glade-property.c:644 #: ../gladeui/glade-editor-property.c:3032 ../gladeui/glade-property.c:644
msgid "Class" msgid "Class"
msgstr "Clase" msgstr "Clase"
#: ../gladeui/glade-editor-property.c:3047 #: ../gladeui/glade-editor-property.c:3052
#, c-format #, c-format
msgid "Choose parentless %s type objects in this project" msgid "Choose parentless %s type objects in this project"
msgstr "Seleccione os obxectos de tipo %s sen parénteses neste proxecto" msgstr "Seleccione os obxectos de tipo %s sen parénteses neste proxecto"
#: ../gladeui/glade-editor-property.c:3049 #: ../gladeui/glade-editor-property.c:3054
#, c-format #, c-format
msgid "Choose %s type objects in this project" msgid "Choose %s type objects in this project"
msgstr "Seleccione os obxectos de tipo %s neste proxecto" msgstr "Seleccione os obxectos de tipo %s neste proxecto"
#: ../gladeui/glade-editor-property.c:3069 #: ../gladeui/glade-editor-property.c:3074
#, c-format #, c-format
msgid "Choose a parentless %s in this project" msgid "Choose a parentless %s in this project"
msgstr "Seleccione un %s sen parénteses neste proxecto" msgstr "Seleccione un %s sen parénteses neste proxecto"
#: ../gladeui/glade-editor-property.c:3071 #: ../gladeui/glade-editor-property.c:3076
#, c-format #, c-format
msgid "Choose a %s in this project" msgid "Choose a %s in this project"
msgstr "Seleccionar un %s neste proxecto" msgstr "Seleccionar un %s neste proxecto"
#. Checklist #. Checklist
#: ../gladeui/glade-editor-property.c:3128 #: ../gladeui/glade-editor-property.c:3133
#: ../gladeui/glade-editor-property.c:3269 #: ../gladeui/glade-editor-property.c:3274
msgid "O_bjects:" msgid "O_bjects:"
msgstr "O_bxectos:" msgstr "O_bxectos:"
#: ../gladeui/glade-editor-property.c:3221 #: ../gladeui/glade-editor-property.c:3226
msgid "_New" msgid "_New"
msgstr "_Novo" msgstr "_Novo"
#. translators: Creating 'a widget' for 'a property' of 'a widget' #. translators: Creating 'a widget' for 'a property' of 'a widget'
#: ../gladeui/glade-editor-property.c:3376 #: ../gladeui/glade-editor-property.c:3381
#, c-format #, c-format
msgid "Creating %s for %s of %s" msgid "Creating %s for %s of %s"
msgstr "Creando %s para %s dun %s" msgstr "Creando %s para %s dun %s"
#. Checklist #. Checklist
#: ../gladeui/glade-editor-property.c:3572 #: ../gladeui/glade-editor-property.c:3577
msgid "Objects:" msgid "Objects:"
msgstr "Obxectos:" msgstr "Obxectos:"
@ -2325,28 +2349,28 @@ msgstr "Ruta do fornecedor CSS"
msgid "Path to use as the custom CSS provider for this project." msgid "Path to use as the custom CSS provider for this project."
msgstr "Ruta a usar para o fornecedor CSS personalizado para este proxecto." msgstr "Ruta a usar para o fornecedor CSS personalizado para este proxecto."
#: ../gladeui/glade-project.c:1126 #: ../gladeui/glade-project.c:1129
#, c-format #, c-format
msgid "(internal %s)" msgid "(internal %s)"
msgstr "(interno %s)" msgstr "(interno %s)"
#: ../gladeui/glade-project.c:1131 #: ../gladeui/glade-project.c:1134
#, c-format #, c-format
msgid "(%s child)" msgid "(%s child)"
msgstr "(fillo de %s)" msgstr "(fillo de %s)"
#: ../gladeui/glade-project.c:1133 #: ../gladeui/glade-project.c:1136
#, c-format #, c-format
msgid "(template)" msgid "(template)"
msgstr "(modelo)" msgstr "(modelo)"
#. translators: refers to a property named '%s' of widget '%s' #. translators: refers to a property named '%s' of widget '%s'
#: ../gladeui/glade-project.c:1141 #: ../gladeui/glade-project.c:1144
#, c-format #, c-format
msgid "(%s of %s)" msgid "(%s of %s)"
msgstr "(%s de %s)" msgstr "(%s de %s)"
#: ../gladeui/glade-project.c:1499 #: ../gladeui/glade-project.c:1502
#, c-format #, c-format
msgid "" msgid ""
"Failed to load %s.\n" "Failed to load %s.\n"
@ -2356,28 +2380,28 @@ msgstr ""
"Os seguintes catálogos requiridos non están dispoñíbeis: %s" "Os seguintes catálogos requiridos non están dispoñíbeis: %s"
#. translators: refers to project name '%s' that targets gtk version '%d.%d' #. translators: refers to project name '%s' that targets gtk version '%d.%d'
#: ../gladeui/glade-project.c:1870 #: ../gladeui/glade-project.c:1873
#, c-format #, c-format
msgid "%s targets Gtk+ %d.%d" msgid "%s targets Gtk+ %d.%d"
msgstr "%s con obxectivo Gtk+ %d.%d" msgstr "%s con obxectivo Gtk+ %d.%d"
#: ../gladeui/glade-project.c:1909 #: ../gladeui/glade-project.c:1912
msgid "Specially because there is an object that can not be build with type " msgid "Specially because there is an object that can not be build with type "
msgstr "" msgstr ""
"Especialmente porque existe un obxecto que non poden construírse co tipo " "Especialmente porque existe un obxecto que non poden construírse co tipo "
#: ../gladeui/glade-project.c:1914 #: ../gladeui/glade-project.c:1917
#, c-format #, c-format
msgid "" msgid ""
"Specially because there are %d objects that can not be build with types " "Specially because there are %d objects that can not be build with types "
msgstr "" msgstr ""
"Especialmente porque existen %d obxectos que non poden construírse cos tipos " "Especialmente porque existen %d obxectos que non poden construírse cos tipos "
#: ../gladeui/glade-project.c:1921 #: ../gladeui/glade-project.c:1924
msgid " and " msgid " and "
msgstr " e " msgstr " e "
#: ../gladeui/glade-project.c:1939 #: ../gladeui/glade-project.c:1942
#, c-format #, c-format
msgid "" msgid ""
"But this version of Glade is for GTK+ 3 only.\n" "But this version of Glade is for GTK+ 3 only.\n"
@ -2390,7 +2414,7 @@ msgstr ""
"widgets obsoletos.\n" "widgets obsoletos.\n"
"%s" "%s"
#: ../gladeui/glade-project.c:2000 #: ../gladeui/glade-project.c:2003
#, c-format #, c-format
msgid "" msgid ""
"An automatically saved version of `%s' is more recent.\n" "An automatically saved version of `%s' is more recent.\n"
@ -2401,7 +2425,7 @@ msgstr ""
"\n" "\n"
"Desexa cargar a versión gardada?" "Desexa cargar a versión gardada?"
#: ../gladeui/glade-project.c:2140 #: ../gladeui/glade-project.c:2143
#, c-format #, c-format
msgid "%s document properties" msgid "%s document properties"
msgstr "Propiedades do documento %s" msgstr "Propiedades do documento %s"
@ -2414,7 +2438,7 @@ msgstr "Propiedades do documento %s"
#. * ugly messy code with comments in line breaks inside function calls). #. * ugly messy code with comments in line breaks inside function calls).
#. #.
#. translators: refers to a widget in toolkit version '%s %d.%d' and a project targeting toolkit version '%s %d.%d' #. translators: refers to a widget in toolkit version '%s %d.%d' and a project targeting toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2896 #: ../gladeui/glade-project.c:2899
#, c-format #, c-format
msgid "This widget was introduced in %s %d.%d while project targets %s %d.%d" msgid "This widget was introduced in %s %d.%d while project targets %s %d.%d"
msgstr "" msgstr ""
@ -2422,24 +2446,24 @@ msgstr ""
"%d.%d" "%d.%d"
#. translators: refers to a widget '[%s]' introduced in toolkit version '%s %d.%d' #. translators: refers to a widget '[%s]' introduced in toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2900 #: ../gladeui/glade-project.c:2903
#, c-format #, c-format
msgid "[%s] Object class '%s' was introduced in %s %d.%d\n" msgid "[%s] Object class '%s' was introduced in %s %d.%d\n"
msgstr "[%s] A clase de obxecto '%s' foi introducida en %s %d.%d\n" msgstr "[%s] A clase de obxecto '%s' foi introducida en %s %d.%d\n"
#: ../gladeui/glade-project.c:2902 #: ../gladeui/glade-project.c:2905
msgid "This widget is deprecated" msgid "This widget is deprecated"
msgstr "Este widget está obsoleto" msgstr "Este widget está obsoleto"
#. translators: refers to a widget '[%s]' loaded from toolkit version '%s %d.%d' #. translators: refers to a widget '[%s]' loaded from toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2905 #: ../gladeui/glade-project.c:2908
#, c-format #, c-format
msgid "[%s] Object class '%s' from %s %d.%d is deprecated\n" msgid "[%s] Object class '%s' from %s %d.%d is deprecated\n"
msgstr "[%s] A clase de obxecto '%s' de %s %d.%d está obsoleta\n" msgstr "[%s] A clase de obxecto '%s' de %s %d.%d está obsoleta\n"
#. translators: refers to a property in toolkit version '%s %d.%d' #. translators: refers to a property in toolkit version '%s %d.%d'
#. * and a project targeting toolkit version '%s %d.%d' #. * and a project targeting toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2910 #: ../gladeui/glade-project.c:2913
#, c-format #, c-format
msgid "This property was introduced in %s %d.%d while project targets %s %d.%d" msgid "This property was introduced in %s %d.%d while project targets %s %d.%d"
msgstr "" msgstr ""
@ -2447,14 +2471,14 @@ msgstr ""
"%s %d.%d" "%s %d.%d"
#. translators: refers to a property '%s' of widget '[%s]' in toolkit version '%s %d.%d' #. translators: refers to a property '%s' of widget '[%s]' in toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2914 #: ../gladeui/glade-project.c:2917
#, c-format #, c-format
msgid "[%s] Property '%s' of object class '%s' was introduced in %s %d.%d\n" msgid "[%s] Property '%s' of object class '%s' was introduced in %s %d.%d\n"
msgstr "" msgstr ""
"[%s] A propiedade '%s' da clase de obxecto '%s' foi introducida en %s %d.%d\n" "[%s] A propiedade '%s' da clase de obxecto '%s' foi introducida en %s %d.%d\n"
#. translators: refers to a property '%s' of widget '[%s]' in toolkit version '%s %d.%d' #. translators: refers to a property '%s' of widget '[%s]' in toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2918 #: ../gladeui/glade-project.c:2921
#, c-format #, c-format
msgid "" msgid ""
"[%s] Packing property '%s' of object class '%s' was introduced in %s %d.%d\n" "[%s] Packing property '%s' of object class '%s' was introduced in %s %d.%d\n"
@ -2462,19 +2486,19 @@ msgstr ""
"[%s] A propiedade de empaquetado '%s' da clase de obxecto '%s' foi " "[%s] A propiedade de empaquetado '%s' da clase de obxecto '%s' foi "
"introducida en %s %d.%d\n" "introducida en %s %d.%d\n"
#: ../gladeui/glade-project.c:2921 #: ../gladeui/glade-project.c:2924
msgid "This property is deprecated" msgid "This property is deprecated"
msgstr "Esta propiedade é obsoleta" msgstr "Esta propiedade é obsoleta"
#. translators: refers to a property '%s' of widget '[%s]' #. translators: refers to a property '%s' of widget '[%s]'
#: ../gladeui/glade-project.c:2924 #: ../gladeui/glade-project.c:2927
#, c-format #, c-format
msgid "[%s] Property '%s' of object class '%s' is deprecated" msgid "[%s] Property '%s' of object class '%s' is deprecated"
msgstr "[%s] A propiedade '%s' da clase de obxecto '%s' é obsoleta" msgstr "[%s] A propiedade '%s' da clase de obxecto '%s' é obsoleta"
#. translators: refers to a signal in toolkit version '%s %d.%d' #. translators: refers to a signal in toolkit version '%s %d.%d'
#. * and a project targeting toolkit version '%s %d.%d' #. * and a project targeting toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2928 #: ../gladeui/glade-project.c:2931
#, c-format #, c-format
msgid "This signal was introduced in %s %d.%d while project targets %s %d.%d" msgid "This signal was introduced in %s %d.%d while project targets %s %d.%d"
msgstr "" msgstr ""
@ -2482,78 +2506,78 @@ msgstr ""
"%d" "%d"
#. translators: refers to a signal '%s' of widget '[%s]' in toolkit version '%s %d.%d' #. translators: refers to a signal '%s' of widget '[%s]' in toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2932 #: ../gladeui/glade-project.c:2935
#, c-format #, c-format
msgid "[%s] Signal '%s' of object class '%s' was introduced in %s %d.%d\n" msgid "[%s] Signal '%s' of object class '%s' was introduced in %s %d.%d\n"
msgstr "" msgstr ""
"[%s] O sinal '%s' da clase de obxecto '%s' foi introducida en %s %d.%d\n" "[%s] O sinal '%s' da clase de obxecto '%s' foi introducida en %s %d.%d\n"
#: ../gladeui/glade-project.c:2935 #: ../gladeui/glade-project.c:2938
msgid "This signal is deprecated" msgid "This signal is deprecated"
msgstr "Este sinal é obsoleto" msgstr "Este sinal é obsoleto"
#. translators: refers to a signal '%s' of widget '[%s]' #. translators: refers to a signal '%s' of widget '[%s]'
#: ../gladeui/glade-project.c:2938 #: ../gladeui/glade-project.c:2941
#, c-format #, c-format
msgid "[%s] Signal '%s' of object class '%s' is deprecated" msgid "[%s] Signal '%s' of object class '%s' is deprecated"
msgstr "[%s] O sinal '%s' da clase de obxecto '%s' é obsoleto" msgstr "[%s] O sinal '%s' da clase de obxecto '%s' é obsoleto"
#: ../gladeui/glade-project.c:3234 #: ../gladeui/glade-project.c:3237
msgid "Details" msgid "Details"
msgstr "Detalles" msgstr "Detalles"
#: ../gladeui/glade-project.c:3249 #: ../gladeui/glade-project.c:3252
#, c-format #, c-format
msgid "Project \"%s\" has errors. Save anyway?" msgid "Project \"%s\" has errors. Save anyway?"
msgstr "O proxecto ten «%s» erros. Quere gardalo de todos os modos?" msgstr "O proxecto ten «%s» erros. Quere gardalo de todos os modos?"
#: ../gladeui/glade-project.c:3250 #: ../gladeui/glade-project.c:3253
#, c-format #, c-format
msgid "Project \"%s\" has deprecated widgets and/or version mismatches." msgid "Project \"%s\" has deprecated widgets and/or version mismatches."
msgstr "" msgstr ""
"O proxecto «%s» ten widgets obsoletos e/ou erros de coincidencia entre " "O proxecto «%s» ten widgets obsoletos e/ou erros de coincidencia entre "
"versións." "versións."
#: ../gladeui/glade-project.c:3277 #: ../gladeui/glade-project.c:3280
#, c-format #, c-format
msgid "Object %s has unrecognized type %s\n" msgid "Object %s has unrecognized type %s\n"
msgstr "O obxecto %s ten un tipo %s non recoñecido\n" msgstr "O obxecto %s ten un tipo %s non recoñecido\n"
#: ../gladeui/glade-project.c:4747 #: ../gladeui/glade-project.c:4750
#, c-format #, c-format
msgid "Unsaved %i" msgid "Unsaved %i"
msgstr "Non gardados %i" msgstr "Non gardados %i"
#: ../gladeui/glade-project.c:5046 ../gladeui/glade-project.c:5097 #: ../gladeui/glade-project.c:5049 ../gladeui/glade-project.c:5100
#: ../gladeui/glade-project.c:5254 #: ../gladeui/glade-project.c:5257
msgid "No widget selected." msgid "No widget selected."
msgstr "Non hai ningún widget seleccionado." msgstr "Non hai ningún widget seleccionado."
#: ../gladeui/glade-project.c:5062 #: ../gladeui/glade-project.c:5065
msgid "Unable to copy unrecognized widget type." msgid "Unable to copy unrecognized widget type."
msgstr "Non foi posíbel copiar o tipo de widget non recoñecido." msgstr "Non foi posíbel copiar o tipo de widget non recoñecido."
#: ../gladeui/glade-project.c:5094 #: ../gladeui/glade-project.c:5097
msgid "Unable to cut unrecognized widget type" msgid "Unable to cut unrecognized widget type"
msgstr "Non foi posíbel cortar o tipo de widget non recoñecido." msgstr "Non foi posíbel cortar o tipo de widget non recoñecido."
#: ../gladeui/glade-project.c:5146 #: ../gladeui/glade-project.c:5149
msgid "Unable to paste to the selected parent" msgid "Unable to paste to the selected parent"
msgstr "Non é posíbel pegar no pai seleccionado" msgstr "Non é posíbel pegar no pai seleccionado"
#: ../gladeui/glade-project.c:5157 #: ../gladeui/glade-project.c:5160
msgid "Unable to paste to multiple widgets" msgid "Unable to paste to multiple widgets"
msgstr "Non é posíbel pegar en múltiples widgets" msgstr "Non é posíbel pegar en múltiples widgets"
#: ../gladeui/glade-project.c:5167 #: ../gladeui/glade-project.c:5170
msgid "No widget on the clipboard" msgid "No widget on the clipboard"
msgstr "Non hai ningún widget no portaretallos." msgstr "Non hai ningún widget no portaretallos."
#: ../gladeui/glade-project.c:5212 #: ../gladeui/glade-project.c:5215
msgid "Only one widget can be pasted at a time to this container" msgid "Only one widget can be pasted at a time to this container"
msgstr "Só se pode pegar un widget á vez neste contedor" msgstr "Só se pode pegar un widget á vez neste contedor"
#: ../gladeui/glade-project.c:5224 #: ../gladeui/glade-project.c:5227
msgid "Insufficient amount of placeholders in target container" msgid "Insufficient amount of placeholders in target container"
msgstr "O número de marcadores de posición no contedor de destino" msgstr "O número de marcadores de posición no contedor de destino"

374
po/hu.po

File diff suppressed because it is too large Load Diff

1174
po/id.po

File diff suppressed because it is too large Load Diff

3696
po/it.po

File diff suppressed because it is too large Load Diff

255
po/lt.po
View File

@ -13,8 +13,8 @@ msgstr ""
"Project-Id-Version: lt\n" "Project-Id-Version: lt\n"
"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?" "Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?"
"product=glade&keywords=I18N+L10N&component=general\n" "product=glade&keywords=I18N+L10N&component=general\n"
"POT-Creation-Date: 2014-03-13 20:12+0000\n" "POT-Creation-Date: 2014-03-30 17:59+0000\n"
"PO-Revision-Date: 2014-03-13 22:52+0200\n" "PO-Revision-Date: 2014-03-30 23:05+0300\n"
"Last-Translator: Aurimas Černius <aurisc4@gmail.com>\n" "Last-Translator: Aurimas Černius <aurisc4@gmail.com>\n"
"Language-Team: Lietuvių <gnome-lt@lists.akl.lt>\n" "Language-Team: Lietuvių <gnome-lt@lists.akl.lt>\n"
"Language: lt\n" "Language: lt\n"
@ -80,191 +80,191 @@ msgstr ""
msgid "[Read Only]" msgid "[Read Only]"
msgstr "[Tik skaitomas]" msgstr "[Tik skaitomas]"
#: ../src/glade-window.c:322 #: ../src/glade-window.c:323
msgid "User Interface Designer" msgid "User Interface Designer"
msgstr "Naudotojo sąsajos projektavimo įrankis" msgstr "Naudotojo sąsajos projektavimo įrankis"
#. translators: referring to the action of activating a file named '%s'. #. translators: referring to the action of activating a file named '%s'.
#. * we also indicate to users that the file may be read-only with #. * we also indicate to users that the file may be read-only with
#. * the second '%s' #. * the second '%s'
#: ../src/glade-window.c:523 #: ../src/glade-window.c:524
#, c-format #, c-format
msgid "Activate '%s' %s" msgid "Activate '%s' %s"
msgstr "Aktyvuoti „%s“ %s" msgstr "Aktyvuoti „%s“ %s"
#. translators: referring to the action of activating a file named '%s' #. translators: referring to the action of activating a file named '%s'
#. FIXME add hint for translators #. FIXME add hint for translators
#: ../src/glade-window.c:529 ../src/glade-window.c:537 #: ../src/glade-window.c:530 ../src/glade-window.c:538
#, c-format #, c-format
msgid "Activate '%s'" msgid "Activate '%s'"
msgstr "Aktyvuoti „%s“" msgstr "Aktyvuoti „%s“"
#. Name #. Name
#: ../src/glade-window.c:585 ../src/glade-registration.glade.h:4 #: ../src/glade-window.c:586 ../src/glade-registration.glade.h:4
#: ../gladeui/glade-base-editor.c:2030 #: ../gladeui/glade-base-editor.c:2030
#: ../gladeui/glade-project-properties.ui.h:12 #: ../gladeui/glade-project-properties.ui.h:12
#: ../plugins/gtk+/glade-about-dialog-editor.ui.h:2 #: ../plugins/gtk+/glade-about-dialog-editor.ui.h:2
msgid "Name:" msgid "Name:"
msgstr "Vardas:" msgstr "Vardas:"
#: ../src/glade-window.c:588 #: ../src/glade-window.c:589
msgid "Requires:" msgid "Requires:"
msgstr "Reikalauja:" msgstr "Reikalauja:"
#: ../src/glade-window.c:647 #: ../src/glade-window.c:648
msgid "_Undo" msgid "_Undo"
msgstr "_Atšaukti" msgstr "_Atšaukti"
#: ../src/glade-window.c:650 #: ../src/glade-window.c:651
#, c-format #, c-format
msgid "Undo: %s" msgid "Undo: %s"
msgstr "Atšaukti: %s" msgstr "Atšaukti: %s"
#: ../src/glade-window.c:651 ../src/glade-window.c:662 #: ../src/glade-window.c:652 ../src/glade-window.c:663
msgid "the last action" msgid "the last action"
msgstr "paskutinis veiksmas" msgstr "paskutinis veiksmas"
#: ../src/glade-window.c:658 #: ../src/glade-window.c:659
msgid "_Redo" msgid "_Redo"
msgstr "Paka_rtoti" msgstr "Paka_rtoti"
#: ../src/glade-window.c:661 #: ../src/glade-window.c:662
#, c-format #, c-format
msgid "Redo: %s" msgid "Redo: %s"
msgstr "Pakartoti %s" msgstr "Pakartoti %s"
#: ../src/glade-window.c:693 #: ../src/glade-window.c:694
#, c-format #, c-format
msgid "Autosaving '%s'" msgid "Autosaving '%s'"
msgstr "Automatiškai įrašoma „%s“" msgstr "Automatiškai įrašoma „%s“"
#: ../src/glade-window.c:698 #: ../src/glade-window.c:699
#, c-format #, c-format
msgid "Error autosaving '%s'" msgid "Error autosaving '%s'"
msgstr "Klaida automatiškai įrašant „%s“" msgstr "Klaida automatiškai įrašant „%s“"
#: ../src/glade-window.c:1117 #: ../src/glade-window.c:1118
msgid "Open…" msgid "Open…"
msgstr "Atverti…" msgstr "Atverti…"
#: ../src/glade-window.c:1151 #: ../src/glade-window.c:1152
#, c-format #, c-format
msgid "Project %s is still loading." msgid "Project %s is still loading."
msgstr "Projektas %s vis dar įkeliamas." msgstr "Projektas %s vis dar įkeliamas."
#: ../src/glade-window.c:1170 #: ../src/glade-window.c:1171
msgid "Failed to backup existing file, continue saving?" msgid "Failed to backup existing file, continue saving?"
msgstr "Nepavyko padaryti failo atsarginės kopijos, tęsti įrašymą?" msgstr "Nepavyko padaryti failo atsarginės kopijos, tęsti įrašymą?"
#: ../src/glade-window.c:1192 #: ../src/glade-window.c:1193
#, c-format #, c-format
msgid "Failed to save %s: %s" msgid "Failed to save %s: %s"
msgstr "Nepavyko išsaugoti %s: %s" msgstr "Nepavyko išsaugoti %s: %s"
#: ../src/glade-window.c:1231 #: ../src/glade-window.c:1232
#, c-format #, c-format
msgid "The file %s has been modified since reading it" msgid "The file %s has been modified since reading it"
msgstr "Failas %s nuo jo perskaitymo buvo pakeistas" msgstr "Failas %s nuo jo perskaitymo buvo pakeistas"
#: ../src/glade-window.c:1235 #: ../src/glade-window.c:1236
msgid "If you save it, all the external changes could be lost. Save it anyway?" msgid "If you save it, all the external changes could be lost. Save it anyway?"
msgstr "" msgstr ""
"Jei išsaugosite, visi išoriniai pakeitimai bus prarasti. Vis tiek išsaugoti?" "Jei išsaugosite, visi išoriniai pakeitimai bus prarasti. Vis tiek išsaugoti?"
#: ../src/glade-window.c:1240 #: ../src/glade-window.c:1241
msgid "_Save Anyway" msgid "_Save Anyway"
msgstr "Vis tiek iš_saugoti" msgstr "Vis tiek iš_saugoti"
#: ../src/glade-window.c:1248 #: ../src/glade-window.c:1249
msgid "_Don't Save" msgid "_Don't Save"
msgstr "_Nesaugoti" msgstr "_Nesaugoti"
#: ../src/glade-window.c:1282 #: ../src/glade-window.c:1283
#, c-format #, c-format
msgid "Project '%s' saved" msgid "Project '%s' saved"
msgstr "Projektas „%s“ išsaugotas" msgstr "Projektas „%s“ išsaugotas"
#: ../src/glade-window.c:1313 #: ../src/glade-window.c:1314
msgid "Save As…" msgid "Save As…"
msgstr "Išsaugoti kaip…" msgstr "Išsaugoti kaip…"
#: ../src/glade-window.c:1377 #: ../src/glade-window.c:1378
#, c-format #, c-format
msgid "Could not save the file %s" msgid "Could not save the file %s"
msgstr "Nepavyko išsaugoti failo %s" msgstr "Nepavyko išsaugoti failo %s"
#: ../src/glade-window.c:1381 #: ../src/glade-window.c:1382
msgid "You do not have the permissions necessary to save the file." msgid "You do not have the permissions necessary to save the file."
msgstr "Neturite reikiamų teisių šiam failui išsaugoti." msgstr "Neturite reikiamų teisių šiam failui išsaugoti."
#: ../src/glade-window.c:1403 #: ../src/glade-window.c:1404
#, c-format #, c-format
msgid "Could not save file %s. Another project with that path is open." msgid "Could not save file %s. Another project with that path is open."
msgstr "" msgstr ""
"Nepavyko išsaugoti failo %s. Kitas projektas atvertas tame pačiame aplanke." "Nepavyko išsaugoti failo %s. Kitas projektas atvertas tame pačiame aplanke."
#: ../src/glade-window.c:1428 #: ../src/glade-window.c:1429
msgid "No open projects to save" msgid "No open projects to save"
msgstr "Nėra atvertų projektų, kuriuos būtų galima išsaugoti" msgstr "Nėra atvertų projektų, kuriuos būtų galima išsaugoti"
#: ../src/glade-window.c:1458 #: ../src/glade-window.c:1459
#, c-format #, c-format
msgid "Save changes to project \"%s\" before closing?" msgid "Save changes to project \"%s\" before closing?"
msgstr "Išsaugoti projekto „%s“ pakeitimus prieš uždarant?" msgstr "Išsaugoti projekto „%s“ pakeitimus prieš uždarant?"
#: ../src/glade-window.c:1466 #: ../src/glade-window.c:1467
msgid "Your changes will be lost if you don't save them." msgid "Your changes will be lost if you don't save them."
msgstr "Jūsų pakeitimai bus prarasti, jei jų neišsaugosite." msgstr "Jūsų pakeitimai bus prarasti, jei jų neišsaugosite."
#: ../src/glade-window.c:1470 #: ../src/glade-window.c:1471
msgid "Close _without Saving" msgid "Close _without Saving"
msgstr "_Užverti neišsaugant" msgstr "_Užverti neišsaugant"
#: ../src/glade-window.c:1500 #: ../src/glade-window.c:1501
msgid "Save…" msgid "Save…"
msgstr "Išsaugoti…" msgstr "Išsaugoti…"
#: ../src/glade-window.c:2466 #: ../src/glade-window.c:2467
msgid "Close document" msgid "Close document"
msgstr "Užverti dokumentą" msgstr "Užverti dokumentą"
#: ../src/glade-window.c:2568 #: ../src/glade-window.c:2564
msgid "Could not create a new project." msgid "Could not create a new project."
msgstr "Nepavyko sukurti naujo projekto." msgstr "Nepavyko sukurti naujo projekto."
#: ../src/glade-window.c:2621 #: ../src/glade-window.c:2617
#, c-format #, c-format
msgid "The project %s has unsaved changes" msgid "The project %s has unsaved changes"
msgstr "Projekte %s yra neišsaugotų pakeitimų" msgstr "Projekte %s yra neišsaugotų pakeitimų"
#: ../src/glade-window.c:2626 #: ../src/glade-window.c:2622
msgid "If you reload it, all unsaved changes could be lost. Reload it anyway?" msgid "If you reload it, all unsaved changes could be lost. Reload it anyway?"
msgstr "" msgstr ""
"Jei įkelsite iš naujo, visi neišsaugoti pakeitimai bus prarasti. Vis tiek " "Jei įkelsite iš naujo, visi neišsaugoti pakeitimai bus prarasti. Vis tiek "
"įkelti iš naujo?" "įkelti iš naujo?"
#: ../src/glade-window.c:2636 #: ../src/glade-window.c:2632
#, c-format #, c-format
msgid "The project file %s has been externally modified" msgid "The project file %s has been externally modified"
msgstr "Projekto failas %s buvo pakeistas kita programa" msgstr "Projekto failas %s buvo pakeistas kita programa"
#: ../src/glade-window.c:2641 #: ../src/glade-window.c:2637
msgid "Do you want to reload the project?" msgid "Do you want to reload the project?"
msgstr "Ar norite įkelti projektą iš naujo?" msgstr "Ar norite įkelti projektą iš naujo?"
#: ../src/glade-window.c:2647 #: ../src/glade-window.c:2643
msgid "_Reload" msgid "_Reload"
msgstr "Į_kelti iš naujo" msgstr "Į_kelti iš naujo"
#: ../src/glade-window.c:3216 #: ../src/glade-window.c:3214
msgid "Palette" msgid "Palette"
msgstr "Paletė" msgstr "Paletė"
#: ../src/glade-window.c:3218 #: ../src/glade-window.c:3216
msgid "Inspector" msgid "Inspector"
msgstr "Valdymo elementai" msgstr "Valdymo elementai"
#: ../src/glade-window.c:3220 ../src/glade.glade.h:33 #: ../src/glade-window.c:3218 ../src/glade.glade.h:33
#: ../gladeui/glade-editor.c:320 ../gladeui/glade-widget.c:1385 #: ../gladeui/glade-editor.c:320 ../gladeui/glade-widget.c:1385
#: ../gladeui/glade-project-properties.ui.h:11 #: ../gladeui/glade-project-properties.ui.h:11
#: ../plugins/gtk+/glade-gtk-action-group.c:177 #: ../plugins/gtk+/glade-gtk-action-group.c:177
@ -277,6 +277,27 @@ msgstr "Valdymo elementai"
msgid "Properties" msgid "Properties"
msgstr "Savybės" msgstr "Savybės"
#: ../src/glade-window.c:3478
msgid ""
"We are conducting a user survey\n"
" would you like to take it now?"
msgstr ""
"Šiuo metu darome naudotojų apklausą\n"
" ar norite dabar ją atlikti?"
#: ../src/glade-window.c:3481
msgid "If not, you can always find it in the Help menu."
msgstr "Jei nenorite, visada galite ją rasti Žinyno meniu."
#: ../src/glade-window.c:3483
msgid "_Do not show this dialog again"
msgstr "_Daugiau šio dialogo neberodyti"
#: ../src/glade-window.c:3503
msgid "Go to Help -> Registration & User Survey and complete our survey!"
msgstr ""
"Eikite Žinynas -> Registracija ir naudotojo apklausa ir užpildykite apklausą!"
#: ../src/main.c:51 #: ../src/main.c:51
msgid "Output version information and exit" msgid "Output version information and exit"
msgstr "Išvesties versijos informacija" msgstr "Išvesties versijos informacija"
@ -768,50 +789,50 @@ msgstr "Papildomi katalogų keliai"
msgid "Select a catalog search path" msgid "Select a catalog search path"
msgstr "Pasirinkite katalogo paieškos kelią" msgstr "Pasirinkite katalogo paieškos kelią"
#: ../src/glade-registration.c:282 #: ../src/glade-registration.c:290
#, c-format #, c-format
msgid "Connecting to %s" msgid "Connecting to %s"
msgstr "Jungiamasi prie %s" msgstr "Jungiamasi prie %s"
#: ../src/glade-registration.c:285 #: ../src/glade-registration.c:293
#, c-format #, c-format
msgid "Sending data to %s" msgid "Sending data to %s"
msgstr "Siunčiami duomenys į %s" msgstr "Siunčiami duomenys į %s"
#: ../src/glade-registration.c:288 #: ../src/glade-registration.c:296
#, c-format #, c-format
msgid "Waiting for %s" msgid "Waiting for %s"
msgstr "Laukiama %s" msgstr "Laukiama %s"
#: ../src/glade-registration.c:291 #: ../src/glade-registration.c:299
#, c-format #, c-format
msgid "Receiving data from %s" msgid "Receiving data from %s"
msgstr "Gaunami duomenys iš %s" msgstr "Gaunami duomenys iš %s"
#: ../src/glade-registration.c:323 #: ../src/glade-registration.c:331
msgid "Sorry, automatic subscription to Glade Users mailing list failed" msgid "Sorry, automatic subscription to Glade Users mailing list failed"
msgstr "" msgstr ""
"Atleiskite, nepavyko automatiškai užregistruoti į Glade naudotojų pašto " "Atleiskite, nepavyko automatiškai užregistruoti į Glade naudotojų pašto "
"konferenciją" "konferenciją"
#: ../src/glade-registration.c:326 #: ../src/glade-registration.c:334
msgid "Open Glade Users Website" msgid "Open Glade Users Website"
msgstr "Atverti Glade naudotojų tinklapį" msgstr "Atverti Glade naudotojų tinklapį"
#: ../src/glade-registration.c:377 #: ../src/glade-registration.c:386
msgid "Internal server error" msgid "Internal server error"
msgstr "Vidinė serverio klaida" msgstr "Vidinė serverio klaida"
#: ../src/glade-registration.c:401 #: ../src/glade-registration.c:410
msgid "Thank you for taking the time to complete the survey, we appreciate it!" msgid "Thank you for taking the time to complete the survey, we appreciate it!"
msgstr "" msgstr ""
"Dėkojame, kad sugaišote laiko ir užpildėte apklausą, labai tai vertiname!" "Dėkojame, kad sugaišote laiko ir užpildėte apklausą, labai tai vertiname!"
#: ../src/glade-registration.c:406 #: ../src/glade-registration.c:418
msgid "Name and Email fields are required" msgid "Name and Email fields are required"
msgstr "Vardo ir el. pašto laukai yra privalomi" msgstr "Vardo ir el. pašto laukai yra privalomi"
#: ../src/glade-registration.c:409 #: ../src/glade-registration.c:421
msgid "" msgid ""
"Ops! Email address is already in use!\n" "Ops! Email address is already in use!\n"
"To update information you need to provide the token that was sent to your " "To update information you need to provide the token that was sent to your "
@ -820,17 +841,17 @@ msgstr ""
"Oi! El. pašto adresas jau naudojamas!\n" "Oi! El. pašto adresas jau naudojamas!\n"
"Informacijai atnaujinti reikia pateikti leksemą, kuri buvo atsiųsta jums." "Informacijai atnaujinti reikia pateikti leksemą, kuri buvo atsiųsta jums."
#: ../src/glade-registration.c:412 #: ../src/glade-registration.c:424
#, c-format #, c-format
msgid "Ops! Error saving user information: %s" msgid "Ops! Error saving user information: %s"
msgstr "Oi! Klaida įrašant naudotojo informaciją: %s" msgstr "Oi! Klaida įrašant naudotojo informaciją: %s"
#: ../src/glade-registration.c:415 #: ../src/glade-registration.c:427
#, c-format #, c-format
msgid "Ops! Error saving survey data: %s" msgid "Ops! Error saving survey data: %s"
msgstr "Oi! Klaida įrašant apklausos duomenis: %s" msgstr "Oi! Klaida įrašant apklausos duomenis: %s"
#: ../src/glade-registration.c:418 #: ../src/glade-registration.c:430
#, c-format #, c-format
msgid "Ops! Error accessing DB: %s" msgid "Ops! Error accessing DB: %s"
msgstr "Oi! Klaida pasiekiant DB: %s" msgstr "Oi! Klaida pasiekiant DB: %s"
@ -1614,7 +1635,7 @@ msgstr "Nustatomos kelios savybės"
msgid "Setting %s of %s" msgid "Setting %s of %s"
msgstr "Nustatoma(s) %s objektui %s" msgstr "Nustatoma(s) %s objektui %s"
#: ../gladeui/glade-command.c:823 ../gladeui/glade-editor-property.c:3350 #: ../gladeui/glade-command.c:823 ../gladeui/glade-editor-property.c:3355
#, c-format #, c-format
msgid "Setting %s of %s to %s" msgid "Setting %s of %s to %s"
msgstr "Nustatoma %s (iš %s) į %s" msgstr "Nustatoma %s (iš %s) į %s"
@ -1901,41 +1922,41 @@ msgstr "Pasirinktinis tekstas"
msgid "Custom Text to display in the property label" msgid "Custom Text to display in the property label"
msgstr "Pasirinktinis tekstas savybės etiketei" msgstr "Pasirinktinis tekstas savybės etiketei"
#: ../gladeui/glade-editor-property.c:1262 #: ../gladeui/glade-editor-property.c:1267
msgid "Select Fields" msgid "Select Fields"
msgstr "Pasirinkite laukus" msgstr "Pasirinkite laukus"
#: ../gladeui/glade-editor-property.c:1285 #: ../gladeui/glade-editor-property.c:1290
msgid "_Select individual fields:" msgid "_Select individual fields:"
msgstr "Pasirinkite individualius laukus" msgstr "Pasirinkite individualius laukus"
#: ../gladeui/glade-editor-property.c:1635 #: ../gladeui/glade-editor-property.c:1640
msgid "Select Named Icon" msgid "Select Named Icon"
msgstr "Pažymėkite piktogramą" msgstr "Pažymėkite piktogramą"
#: ../gladeui/glade-editor-property.c:1942 #: ../gladeui/glade-editor-property.c:1947
msgid "Edit Text" msgid "Edit Text"
msgstr "Redaguoti tekstą" msgstr "Redaguoti tekstą"
#. Text #. Text
#: ../gladeui/glade-editor-property.c:1972 #: ../gladeui/glade-editor-property.c:1977
msgid "_Text:" msgid "_Text:"
msgstr "_Tekstas:" msgstr "_Tekstas:"
#. Translatable #. Translatable
#: ../gladeui/glade-editor-property.c:2008 #: ../gladeui/glade-editor-property.c:2013
msgid "T_ranslatable" msgid "T_ranslatable"
msgstr "Verčiamas" msgstr "Verčiamas"
#: ../gladeui/glade-editor-property.c:2014 ../gladeui/glade-property.c:677 #: ../gladeui/glade-editor-property.c:2019 ../gladeui/glade-property.c:677
msgid "Whether this property is translatable" msgid "Whether this property is translatable"
msgstr "Ar pasirinkta savybė gali būti verčiama į kitas kalbas" msgstr "Ar pasirinkta savybė gali būti verčiama į kitas kalbas"
#: ../gladeui/glade-editor-property.c:2022 #: ../gladeui/glade-editor-property.c:2027
msgid "Conte_xt for translation:" msgid "Conte_xt for translation:"
msgstr "_Kontekstas vertėjams" msgstr "_Kontekstas vertėjams"
#: ../gladeui/glade-editor-property.c:2028 #: ../gladeui/glade-editor-property.c:2033
msgid "" msgid ""
"For short and ambiguous strings: type a word here to differentiate the " "For short and ambiguous strings: type a word here to differentiate the "
"meaning of this string from the meaning of other occurrences of the same " "meaning of this string from the meaning of other occurrences of the same "
@ -1944,63 +1965,63 @@ msgstr ""
"Trumpoms ir neaiškioms eilutėms: įveskite čia žodį eilutės prasmės " "Trumpoms ir neaiškioms eilutėms: įveskite čia žodį eilutės prasmės "
"atskyrimui nuo kitų tos pačios eilutės pasikartojimų prasmių" "atskyrimui nuo kitų tos pačios eilutės pasikartojimų prasmių"
#: ../gladeui/glade-editor-property.c:2060 #: ../gladeui/glade-editor-property.c:2065
msgid "Co_mments for translators:" msgid "Co_mments for translators:"
msgstr "Komentarai vertėjams:" msgstr "Komentarai vertėjams:"
#: ../gladeui/glade-editor-property.c:2150 #: ../gladeui/glade-editor-property.c:2155
msgid "Select a file from the project resource directory" msgid "Select a file from the project resource directory"
msgstr "Pasirinkite failą iš projekto resursų katalogo" msgstr "Pasirinkite failą iš projekto resursų katalogo"
#. GtkInputPurpose enumeration value #. GtkInputPurpose enumeration value
#: ../gladeui/glade-editor-property.c:3018 #: ../gladeui/glade-editor-property.c:3023
#: ../gladeui/glade-widget-adaptor.c:1392 ../gladeui/glade-widget.c:1349 #: ../gladeui/glade-widget-adaptor.c:1392 ../gladeui/glade-widget.c:1349
#: ../plugins/gtk+/gtk+.xml.in.h:499 #: ../plugins/gtk+/gtk+.xml.in.h:499
msgid "Name" msgid "Name"
msgstr "Vardas" msgstr "Vardas"
#: ../gladeui/glade-editor-property.c:3027 ../gladeui/glade-property.c:644 #: ../gladeui/glade-editor-property.c:3032 ../gladeui/glade-property.c:644
msgid "Class" msgid "Class"
msgstr "Klasė" msgstr "Klasė"
#: ../gladeui/glade-editor-property.c:3047 #: ../gladeui/glade-editor-property.c:3052
#, c-format #, c-format
msgid "Choose parentless %s type objects in this project" msgid "Choose parentless %s type objects in this project"
msgstr "Pasirinkite betėvius %s tipo objektus šiame projekte" msgstr "Pasirinkite betėvius %s tipo objektus šiame projekte"
#: ../gladeui/glade-editor-property.c:3049 #: ../gladeui/glade-editor-property.c:3054
#, c-format #, c-format
msgid "Choose %s type objects in this project" msgid "Choose %s type objects in this project"
msgstr "Pasirinkite %s tipo objektus šiame projekte" msgstr "Pasirinkite %s tipo objektus šiame projekte"
#: ../gladeui/glade-editor-property.c:3069 #: ../gladeui/glade-editor-property.c:3074
#, c-format #, c-format
msgid "Choose a parentless %s in this project" msgid "Choose a parentless %s in this project"
msgstr "Pasirinkite betėvius %s šiame projekte" msgstr "Pasirinkite betėvius %s šiame projekte"
#: ../gladeui/glade-editor-property.c:3071 #: ../gladeui/glade-editor-property.c:3076
#, c-format #, c-format
msgid "Choose a %s in this project" msgid "Choose a %s in this project"
msgstr "Pasirinkite %s šiam projektui" msgstr "Pasirinkite %s šiam projektui"
#. Checklist #. Checklist
#: ../gladeui/glade-editor-property.c:3128 #: ../gladeui/glade-editor-property.c:3133
#: ../gladeui/glade-editor-property.c:3269 #: ../gladeui/glade-editor-property.c:3274
msgid "O_bjects:" msgid "O_bjects:"
msgstr "O_bjektai:" msgstr "O_bjektai:"
#: ../gladeui/glade-editor-property.c:3221 #: ../gladeui/glade-editor-property.c:3226
msgid "_New" msgid "_New"
msgstr "_Naujas" msgstr "_Naujas"
#. translators: Creating 'a widget' for 'a property' of 'a widget' #. translators: Creating 'a widget' for 'a property' of 'a widget'
#: ../gladeui/glade-editor-property.c:3376 #: ../gladeui/glade-editor-property.c:3381
#, c-format #, c-format
msgid "Creating %s for %s of %s" msgid "Creating %s for %s of %s"
msgstr "Kuriamas %s savybei %s elementui %s" msgstr "Kuriamas %s savybei %s elementui %s"
#. Checklist #. Checklist
#: ../gladeui/glade-editor-property.c:3572 #: ../gladeui/glade-editor-property.c:3577
msgid "Objects:" msgid "Objects:"
msgstr "Objektai:" msgstr "Objektai:"
@ -2303,28 +2324,28 @@ msgstr "CSS tiekėjo kelias"
msgid "Path to use as the custom CSS provider for this project." msgid "Path to use as the custom CSS provider for this project."
msgstr "Kelias, kurį naudoti kaip pasirinktinio CSS tiekėją šiam projektui." msgstr "Kelias, kurį naudoti kaip pasirinktinio CSS tiekėją šiam projektui."
#: ../gladeui/glade-project.c:1126 #: ../gladeui/glade-project.c:1129
#, c-format #, c-format
msgid "(internal %s)" msgid "(internal %s)"
msgstr "(vidinis %s)" msgstr "(vidinis %s)"
#: ../gladeui/glade-project.c:1131 #: ../gladeui/glade-project.c:1134
#, c-format #, c-format
msgid "(%s child)" msgid "(%s child)"
msgstr "(%s antrinis objektas)" msgstr "(%s antrinis objektas)"
#: ../gladeui/glade-project.c:1133 #: ../gladeui/glade-project.c:1136
#, c-format #, c-format
msgid "(template)" msgid "(template)"
msgstr "(šablonas)" msgstr "(šablonas)"
#. translators: refers to a property named '%s' of widget '%s' #. translators: refers to a property named '%s' of widget '%s'
#: ../gladeui/glade-project.c:1141 #: ../gladeui/glade-project.c:1144
#, c-format #, c-format
msgid "(%s of %s)" msgid "(%s of %s)"
msgstr "(%s iš %s)" msgstr "(%s iš %s)"
#: ../gladeui/glade-project.c:1499 #: ../gladeui/glade-project.c:1502
#, c-format #, c-format
msgid "" msgid ""
"Failed to load %s.\n" "Failed to load %s.\n"
@ -2334,26 +2355,26 @@ msgstr ""
"Šie katalogai yra neprieinami: %s" "Šie katalogai yra neprieinami: %s"
#. translators: refers to project name '%s' that targets gtk version '%d.%d' #. translators: refers to project name '%s' that targets gtk version '%d.%d'
#: ../gladeui/glade-project.c:1870 #: ../gladeui/glade-project.c:1873
#, c-format #, c-format
msgid "%s targets Gtk+ %d.%d" msgid "%s targets Gtk+ %d.%d"
msgstr "%s skirtas Gtk+ %d.%d" msgstr "%s skirtas Gtk+ %d.%d"
#: ../gladeui/glade-project.c:1909 #: ../gladeui/glade-project.c:1912
msgid "Specially because there is an object that can not be build with type " msgid "Specially because there is an object that can not be build with type "
msgstr "Specialiai, kadangi yra objektas, kurio negalima sukurti su tipu" msgstr "Specialiai, kadangi yra objektas, kurio negalima sukurti su tipu"
#: ../gladeui/glade-project.c:1914 #: ../gladeui/glade-project.c:1917
#, c-format #, c-format
msgid "" msgid ""
"Specially because there are %d objects that can not be build with types " "Specially because there are %d objects that can not be build with types "
msgstr "Specialiai, kadangi yra %d objektai, kurių negalima sukurti su tipais" msgstr "Specialiai, kadangi yra %d objektai, kurių negalima sukurti su tipais"
#: ../gladeui/glade-project.c:1921 #: ../gladeui/glade-project.c:1924
msgid " and " msgid " and "
msgstr " ir " msgstr " ir "
#: ../gladeui/glade-project.c:1939 #: ../gladeui/glade-project.c:1942
#, c-format #, c-format
msgid "" msgid ""
"But this version of Glade is for GTK+ 3 only.\n" "But this version of Glade is for GTK+ 3 only.\n"
@ -2366,7 +2387,7 @@ msgstr ""
"jokių pasenusių elementų.\n" "jokių pasenusių elementų.\n"
"%s" "%s"
#: ../gladeui/glade-project.c:2000 #: ../gladeui/glade-project.c:2003
#, c-format #, c-format
msgid "" msgid ""
"An automatically saved version of `%s' is more recent.\n" "An automatically saved version of `%s' is more recent.\n"
@ -2377,7 +2398,7 @@ msgstr ""
"\n" "\n"
"Ar norite vietoj to įkelti automatiškai įrašytą versiją?" "Ar norite vietoj to įkelti automatiškai įrašytą versiją?"
#: ../gladeui/glade-project.c:2140 #: ../gladeui/glade-project.c:2143
#, c-format #, c-format
msgid "%s document properties" msgid "%s document properties"
msgstr "%s dokumento savybės" msgstr "%s dokumento savybės"
@ -2390,136 +2411,136 @@ msgstr "%s dokumento savybės"
#. * ugly messy code with comments in line breaks inside function calls). #. * ugly messy code with comments in line breaks inside function calls).
#. #.
#. translators: refers to a widget in toolkit version '%s %d.%d' and a project targeting toolkit version '%s %d.%d' #. translators: refers to a widget in toolkit version '%s %d.%d' and a project targeting toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2896 #: ../gladeui/glade-project.c:2899
#, c-format #, c-format
msgid "This widget was introduced in %s %d.%d while project targets %s %d.%d" msgid "This widget was introduced in %s %d.%d while project targets %s %d.%d"
msgstr "Elementas buvo įtrauktas į %s %d.%d, o projektas naudoja %s %d.%d" msgstr "Elementas buvo įtrauktas į %s %d.%d, o projektas naudoja %s %d.%d"
#. translators: refers to a widget '[%s]' introduced in toolkit version '%s %d.%d' #. translators: refers to a widget '[%s]' introduced in toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2900 #: ../gladeui/glade-project.c:2903
#, c-format #, c-format
msgid "[%s] Object class '%s' was introduced in %s %d.%d\n" msgid "[%s] Object class '%s' was introduced in %s %d.%d\n"
msgstr "[%s] Objekto klasė '%s' buvo įtraukta į %s %d.%d\n" msgstr "[%s] Objekto klasė '%s' buvo įtraukta į %s %d.%d\n"
#: ../gladeui/glade-project.c:2902 #: ../gladeui/glade-project.c:2905
msgid "This widget is deprecated" msgid "This widget is deprecated"
msgstr "Šis valdymo elementas pasenęs" msgstr "Šis valdymo elementas pasenęs"
#. translators: refers to a widget '[%s]' loaded from toolkit version '%s %d.%d' #. translators: refers to a widget '[%s]' loaded from toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2905 #: ../gladeui/glade-project.c:2908
#, c-format #, c-format
msgid "[%s] Object class '%s' from %s %d.%d is deprecated\n" msgid "[%s] Object class '%s' from %s %d.%d is deprecated\n"
msgstr "[%s] Objekto klasė '%s' nuo %s %d.%d yra pasenusi\n" msgstr "[%s] Objekto klasė '%s' nuo %s %d.%d yra pasenusi\n"
#. translators: refers to a property in toolkit version '%s %d.%d' #. translators: refers to a property in toolkit version '%s %d.%d'
#. * and a project targeting toolkit version '%s %d.%d' #. * and a project targeting toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2910 #: ../gladeui/glade-project.c:2913
#, c-format #, c-format
msgid "This property was introduced in %s %d.%d while project targets %s %d.%d" msgid "This property was introduced in %s %d.%d while project targets %s %d.%d"
msgstr "Ši savybė buvo įtraukta į %s %d.%d, o projektas naudoja %s %d.%d" msgstr "Ši savybė buvo įtraukta į %s %d.%d, o projektas naudoja %s %d.%d"
#. translators: refers to a property '%s' of widget '[%s]' in toolkit version '%s %d.%d' #. translators: refers to a property '%s' of widget '[%s]' in toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2914 #: ../gladeui/glade-project.c:2917
#, c-format #, c-format
msgid "[%s] Property '%s' of object class '%s' was introduced in %s %d.%d\n" msgid "[%s] Property '%s' of object class '%s' was introduced in %s %d.%d\n"
msgstr "[%s] savybė '%s' objekto klasei '%s' buvo įtraukta į %s %d.%d\n" msgstr "[%s] savybė '%s' objekto klasei '%s' buvo įtraukta į %s %d.%d\n"
#. translators: refers to a property '%s' of widget '[%s]' in toolkit version '%s %d.%d' #. translators: refers to a property '%s' of widget '[%s]' in toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2918 #: ../gladeui/glade-project.c:2921
#, c-format #, c-format
msgid "" msgid ""
"[%s] Packing property '%s' of object class '%s' was introduced in %s %d.%d\n" "[%s] Packing property '%s' of object class '%s' was introduced in %s %d.%d\n"
msgstr "" msgstr ""
"[%s] pakavimo savybė '%s' objekto klasei '%s' buvo įtraukta į %s %d.%d\n" "[%s] pakavimo savybė '%s' objekto klasei '%s' buvo įtraukta į %s %d.%d\n"
#: ../gladeui/glade-project.c:2921 #: ../gladeui/glade-project.c:2924
msgid "This property is deprecated" msgid "This property is deprecated"
msgstr "Ši savybė yra pasenusi" msgstr "Ši savybė yra pasenusi"
#. translators: refers to a property '%s' of widget '[%s]' #. translators: refers to a property '%s' of widget '[%s]'
#: ../gladeui/glade-project.c:2924 #: ../gladeui/glade-project.c:2927
#, c-format #, c-format
msgid "[%s] Property '%s' of object class '%s' is deprecated" msgid "[%s] Property '%s' of object class '%s' is deprecated"
msgstr "[%s] savybė „%s“ objekto klasei „%s“ yra pasenusi" msgstr "[%s] savybė „%s“ objekto klasei „%s“ yra pasenusi"
#. translators: refers to a signal in toolkit version '%s %d.%d' #. translators: refers to a signal in toolkit version '%s %d.%d'
#. * and a project targeting toolkit version '%s %d.%d' #. * and a project targeting toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2928 #: ../gladeui/glade-project.c:2931
#, c-format #, c-format
msgid "This signal was introduced in %s %d.%d while project targets %s %d.%d" msgid "This signal was introduced in %s %d.%d while project targets %s %d.%d"
msgstr "Signalas buvo įtrauktas į %s %d.%d, o projektas naudoja %s %d.%d" msgstr "Signalas buvo įtrauktas į %s %d.%d, o projektas naudoja %s %d.%d"
#. translators: refers to a signal '%s' of widget '[%s]' in toolkit version '%s %d.%d' #. translators: refers to a signal '%s' of widget '[%s]' in toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2932 #: ../gladeui/glade-project.c:2935
#, c-format #, c-format
msgid "[%s] Signal '%s' of object class '%s' was introduced in %s %d.%d\n" msgid "[%s] Signal '%s' of object class '%s' was introduced in %s %d.%d\n"
msgstr "[%s] signalas '%s' objekto klasei '%s' palaikomas nuo %s %d.%d\n" msgstr "[%s] signalas '%s' objekto klasei '%s' palaikomas nuo %s %d.%d\n"
#: ../gladeui/glade-project.c:2935 #: ../gladeui/glade-project.c:2938
msgid "This signal is deprecated" msgid "This signal is deprecated"
msgstr "Signalas yra pasenęs" msgstr "Signalas yra pasenęs"
#. translators: refers to a signal '%s' of widget '[%s]' #. translators: refers to a signal '%s' of widget '[%s]'
#: ../gladeui/glade-project.c:2938 #: ../gladeui/glade-project.c:2941
#, c-format #, c-format
msgid "[%s] Signal '%s' of object class '%s' is deprecated" msgid "[%s] Signal '%s' of object class '%s' is deprecated"
msgstr "[%s] signalas „%s“ objekto klasei „%s“ yra pasenęs" msgstr "[%s] signalas „%s“ objekto klasei „%s“ yra pasenęs"
#: ../gladeui/glade-project.c:3234 #: ../gladeui/glade-project.c:3237
msgid "Details" msgid "Details"
msgstr "Plačiau" msgstr "Plačiau"
#: ../gladeui/glade-project.c:3249 #: ../gladeui/glade-project.c:3252
#, c-format #, c-format
msgid "Project \"%s\" has errors. Save anyway?" msgid "Project \"%s\" has errors. Save anyway?"
msgstr "Projektas „%s“ turi klaidų. Vistiek išsaugoti?" msgstr "Projektas „%s“ turi klaidų. Vistiek išsaugoti?"
#: ../gladeui/glade-project.c:3250 #: ../gladeui/glade-project.c:3253
#, c-format #, c-format
msgid "Project \"%s\" has deprecated widgets and/or version mismatches." msgid "Project \"%s\" has deprecated widgets and/or version mismatches."
msgstr "" msgstr ""
"Projektas „%s“ turi pasenusių valdymo elementų ir (arba) versijų nesutapimų." "Projektas „%s“ turi pasenusių valdymo elementų ir (arba) versijų nesutapimų."
#: ../gladeui/glade-project.c:3277 #: ../gladeui/glade-project.c:3280
#, c-format #, c-format
msgid "Object %s has unrecognized type %s\n" msgid "Object %s has unrecognized type %s\n"
msgstr "Objektas %s yra neatpažinto tipo %s\n" msgstr "Objektas %s yra neatpažinto tipo %s\n"
#: ../gladeui/glade-project.c:4747 #: ../gladeui/glade-project.c:4750
#, c-format #, c-format
msgid "Unsaved %i" msgid "Unsaved %i"
msgstr "Neišsaugota %i" msgstr "Neišsaugota %i"
#: ../gladeui/glade-project.c:5046 ../gladeui/glade-project.c:5097 #: ../gladeui/glade-project.c:5049 ../gladeui/glade-project.c:5100
#: ../gladeui/glade-project.c:5254 #: ../gladeui/glade-project.c:5257
msgid "No widget selected." msgid "No widget selected."
msgstr "Nepasirinktas joks valdymo elementas" msgstr "Nepasirinktas joks valdymo elementas"
#: ../gladeui/glade-project.c:5062 #: ../gladeui/glade-project.c:5065
msgid "Unable to copy unrecognized widget type." msgid "Unable to copy unrecognized widget type."
msgstr "Negalima kopijuoti neatpažinto tipo elemento." msgstr "Negalima kopijuoti neatpažinto tipo elemento."
#: ../gladeui/glade-project.c:5094 #: ../gladeui/glade-project.c:5097
msgid "Unable to cut unrecognized widget type" msgid "Unable to cut unrecognized widget type"
msgstr "Negalima iškirpti neatpažinto tipo elemento." msgstr "Negalima iškirpti neatpažinto tipo elemento."
#: ../gladeui/glade-project.c:5146 #: ../gladeui/glade-project.c:5149
msgid "Unable to paste to the selected parent" msgid "Unable to paste to the selected parent"
msgstr "Nepavyko įdėti į pasirinktą pirminį objektą" msgstr "Nepavyko įdėti į pasirinktą pirminį objektą"
#: ../gladeui/glade-project.c:5157 #: ../gladeui/glade-project.c:5160
msgid "Unable to paste to multiple widgets" msgid "Unable to paste to multiple widgets"
msgstr "Nepavyko įdėti kelių valdymo elementų iškart" msgstr "Nepavyko įdėti kelių valdymo elementų iškart"
#: ../gladeui/glade-project.c:5167 #: ../gladeui/glade-project.c:5170
msgid "No widget on the clipboard" msgid "No widget on the clipboard"
msgstr "Iškarpinėje nėra valdymo elementų" msgstr "Iškarpinėje nėra valdymo elementų"
#: ../gladeui/glade-project.c:5212 #: ../gladeui/glade-project.c:5215
msgid "Only one widget can be pasted at a time to this container" msgid "Only one widget can be pasted at a time to this container"
msgstr "Tik vienas valdymo elementas gali būti įdėtas į šį konteinerį" msgstr "Tik vienas valdymo elementas gali būti įdėtas į šį konteinerį"
#: ../gladeui/glade-project.c:5224 #: ../gladeui/glade-project.c:5227
msgid "Insufficient amount of placeholders in target container" msgid "Insufficient amount of placeholders in target container"
msgstr "Nepakankamas vietų skaičius taikinio konteineryje" msgstr "Nepakankamas vietų skaičius taikinio konteineryje"

348
po/lv.po

File diff suppressed because it is too large Load Diff

View File

@ -14,8 +14,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: glade\n" "Project-Id-Version: glade\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-03-18 00:52+0100\n" "POT-Creation-Date: 2014-03-28 15:04+0100\n"
"PO-Revision-Date: 2014-03-18 00:53+0100\n" "PO-Revision-Date: 2014-03-28 15:05+0100\n"
"Last-Translator: Piotr Drąg <piotrdrag@gmail.com>\n" "Last-Translator: Piotr Drąg <piotrdrag@gmail.com>\n"
"Language-Team: Polish <gnomepl@aviary.pl>\n" "Language-Team: Polish <gnomepl@aviary.pl>\n"
"Language: pl\n" "Language: pl\n"
@ -298,10 +298,10 @@ msgid "If not, you can always find it in the Help menu."
msgstr "Jeśli nie, to zawsze można ją znaleźć w menu Pomocy." msgstr "Jeśli nie, to zawsze można ją znaleźć w menu Pomocy."
#: ../src/glade-window.c:3483 #: ../src/glade-window.c:3483
msgid "Do not show this dialog again" msgid "_Do not show this dialog again"
msgstr "Bez wyświetlania tego okna ponownie" msgstr "_Bez wyświetlania tego okna ponownie"
#: ../src/glade-window.c:3502 #: ../src/glade-window.c:3503
msgid "Go to Help -> Registration & User Survey and complete our survey!" msgid "Go to Help -> Registration & User Survey and complete our survey!"
msgstr "" msgstr ""
"Prosimy kliknąć Pomoc -> Rejestracja i ankieta użytkownika i wypełnić naszą " "Prosimy kliknąć Pomoc -> Rejestracja i ankieta użytkownika i wypełnić naszą "
@ -1661,7 +1661,7 @@ msgstr "Ustawienie wielu właściwości"
msgid "Setting %s of %s" msgid "Setting %s of %s"
msgstr "Ustawienie %s dla %s" msgstr "Ustawienie %s dla %s"
#: ../gladeui/glade-command.c:823 ../gladeui/glade-editor-property.c:3350 #: ../gladeui/glade-command.c:823 ../gladeui/glade-editor-property.c:3355
#, c-format #, c-format
msgid "Setting %s of %s to %s" msgid "Setting %s of %s to %s"
msgstr "Ustawienie %s dla %s na %s" msgstr "Ustawienie %s dla %s na %s"
@ -1945,41 +1945,41 @@ msgstr "Niestandardowy tekst"
msgid "Custom Text to display in the property label" msgid "Custom Text to display in the property label"
msgstr "Niestandardowy tekst wyświetlany na etykiecie właściwości" msgstr "Niestandardowy tekst wyświetlany na etykiecie właściwości"
#: ../gladeui/glade-editor-property.c:1262 #: ../gladeui/glade-editor-property.c:1267
msgid "Select Fields" msgid "Select Fields"
msgstr "Wybór pól" msgstr "Wybór pól"
#: ../gladeui/glade-editor-property.c:1285 #: ../gladeui/glade-editor-property.c:1290
msgid "_Select individual fields:" msgid "_Select individual fields:"
msgstr "Pro_szę wybrać poszczególne pola:" msgstr "Pro_szę wybrać poszczególne pola:"
#: ../gladeui/glade-editor-property.c:1635 #: ../gladeui/glade-editor-property.c:1640
msgid "Select Named Icon" msgid "Select Named Icon"
msgstr "Wybór nazwanej ikony" msgstr "Wybór nazwanej ikony"
#: ../gladeui/glade-editor-property.c:1942 #: ../gladeui/glade-editor-property.c:1947
msgid "Edit Text" msgid "Edit Text"
msgstr "Modyfikowanie tekstu" msgstr "Modyfikowanie tekstu"
#. Text #. Text
#: ../gladeui/glade-editor-property.c:1972 #: ../gladeui/glade-editor-property.c:1977
msgid "_Text:" msgid "_Text:"
msgstr "_Tekst:" msgstr "_Tekst:"
#. Translatable #. Translatable
#: ../gladeui/glade-editor-property.c:2008 #: ../gladeui/glade-editor-property.c:2013
msgid "T_ranslatable" msgid "T_ranslatable"
msgstr "_Możliwość tłumaczenia" msgstr "_Możliwość tłumaczenia"
#: ../gladeui/glade-editor-property.c:2014 ../gladeui/glade-property.c:677 #: ../gladeui/glade-editor-property.c:2019 ../gladeui/glade-property.c:677
msgid "Whether this property is translatable" msgid "Whether this property is translatable"
msgstr "Określa, czy właściwość może być tłumaczona" msgstr "Określa, czy właściwość może być tłumaczona"
#: ../gladeui/glade-editor-property.c:2022 #: ../gladeui/glade-editor-property.c:2027
msgid "Conte_xt for translation:" msgid "Conte_xt for translation:"
msgstr "_Kontekst dla tłumaczenia:" msgstr "_Kontekst dla tłumaczenia:"
#: ../gladeui/glade-editor-property.c:2028 #: ../gladeui/glade-editor-property.c:2033
msgid "" msgid ""
"For short and ambiguous strings: type a word here to differentiate the " "For short and ambiguous strings: type a word here to differentiate the "
"meaning of this string from the meaning of other occurrences of the same " "meaning of this string from the meaning of other occurrences of the same "
@ -1988,63 +1988,63 @@ msgstr ""
"Dla krótkich i niejednoznacznych ciągów: należy tu wpisać słowo, aby " "Dla krótkich i niejednoznacznych ciągów: należy tu wpisać słowo, aby "
"rozróżnić znaczenie tego ciągu od znaczeń innych wystąpień tego samego ciągu" "rozróżnić znaczenie tego ciągu od znaczeń innych wystąpień tego samego ciągu"
#: ../gladeui/glade-editor-property.c:2060 #: ../gladeui/glade-editor-property.c:2065
msgid "Co_mments for translators:" msgid "Co_mments for translators:"
msgstr "Ko_mentarze dla tłumaczy:" msgstr "Ko_mentarze dla tłumaczy:"
#: ../gladeui/glade-editor-property.c:2150 #: ../gladeui/glade-editor-property.c:2155
msgid "Select a file from the project resource directory" msgid "Select a file from the project resource directory"
msgstr "Wybór pliku z katalogu zasobów projektu" msgstr "Wybór pliku z katalogu zasobów projektu"
#. GtkInputPurpose enumeration value #. GtkInputPurpose enumeration value
#: ../gladeui/glade-editor-property.c:3018 #: ../gladeui/glade-editor-property.c:3023
#: ../gladeui/glade-widget-adaptor.c:1392 ../gladeui/glade-widget.c:1349 #: ../gladeui/glade-widget-adaptor.c:1392 ../gladeui/glade-widget.c:1349
#: ../plugins/gtk+/gtk+.xml.in.h:499 #: ../plugins/gtk+/gtk+.xml.in.h:499
msgid "Name" msgid "Name"
msgstr "Nazwa" msgstr "Nazwa"
#: ../gladeui/glade-editor-property.c:3027 ../gladeui/glade-property.c:644 #: ../gladeui/glade-editor-property.c:3032 ../gladeui/glade-property.c:644
msgid "Class" msgid "Class"
msgstr "Klasa" msgstr "Klasa"
#: ../gladeui/glade-editor-property.c:3047 #: ../gladeui/glade-editor-property.c:3052
#, c-format #, c-format
msgid "Choose parentless %s type objects in this project" msgid "Choose parentless %s type objects in this project"
msgstr "Wybór braku nadrzędności obiektów typu %s w tym projekcie" msgstr "Wybór braku nadrzędności obiektów typu %s w tym projekcie"
#: ../gladeui/glade-editor-property.c:3049 #: ../gladeui/glade-editor-property.c:3054
#, c-format #, c-format
msgid "Choose %s type objects in this project" msgid "Choose %s type objects in this project"
msgstr "Wybór obiektów typu %s w tym projekcie" msgstr "Wybór obiektów typu %s w tym projekcie"
#: ../gladeui/glade-editor-property.c:3069 #: ../gladeui/glade-editor-property.c:3074
#, c-format #, c-format
msgid "Choose a parentless %s in this project" msgid "Choose a parentless %s in this project"
msgstr "Wybór braku nadrzędności %s w tym projekcie" msgstr "Wybór braku nadrzędności %s w tym projekcie"
#: ../gladeui/glade-editor-property.c:3071 #: ../gladeui/glade-editor-property.c:3076
#, c-format #, c-format
msgid "Choose a %s in this project" msgid "Choose a %s in this project"
msgstr "Wybór %s w tym projekcie" msgstr "Wybór %s w tym projekcie"
#. Checklist #. Checklist
#: ../gladeui/glade-editor-property.c:3128 #: ../gladeui/glade-editor-property.c:3133
#: ../gladeui/glade-editor-property.c:3269 #: ../gladeui/glade-editor-property.c:3274
msgid "O_bjects:" msgid "O_bjects:"
msgstr "_Obiekty:" msgstr "_Obiekty:"
#: ../gladeui/glade-editor-property.c:3221 #: ../gladeui/glade-editor-property.c:3226
msgid "_New" msgid "_New"
msgstr "_Nowy" msgstr "_Nowy"
#. translators: Creating 'a widget' for 'a property' of 'a widget' #. translators: Creating 'a widget' for 'a property' of 'a widget'
#: ../gladeui/glade-editor-property.c:3376 #: ../gladeui/glade-editor-property.c:3381
#, c-format #, c-format
msgid "Creating %s for %s of %s" msgid "Creating %s for %s of %s"
msgstr "Tworzenie %s dla %s na %s" msgstr "Tworzenie %s dla %s na %s"
#. Checklist #. Checklist
#: ../gladeui/glade-editor-property.c:3572 #: ../gladeui/glade-editor-property.c:3577
msgid "Objects:" msgid "Objects:"
msgstr "Obiekty:" msgstr "Obiekty:"

View File

@ -11,7 +11,7 @@
# Krix Apolinário <krixapolinario@gmail.com>, 2011 # Krix Apolinário <krixapolinario@gmail.com>, 2011
# Djavan Fagundes <djavan@comum.org>, 2011. # Djavan Fagundes <djavan@comum.org>, 2011.
# Og Maciel <ogmaciel@gnome.org>, 2011. # Og Maciel <ogmaciel@gnome.org>, 2011.
# Enrico Nicoletto <liverig@gmail.com>, 2013. # Enrico Nicoletto <liverig@gmail.com>, 2013, 2014.
# Edson Silva <edsonlead@gmail.com>, 2013. # Edson Silva <edsonlead@gmail.com>, 2013.
# Rafael Ferreira <rafael.f.f1@gmail.com>, 2012, 2013, 2014. # Rafael Ferreira <rafael.f.f1@gmail.com>, 2012, 2013, 2014.
# #
@ -20,16 +20,16 @@ msgstr ""
"Project-Id-Version: glade\n" "Project-Id-Version: glade\n"
"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?" "Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?"
"product=glade&keywords=I18N+L10N&component=general\n" "product=glade&keywords=I18N+L10N&component=general\n"
"POT-Creation-Date: 2014-03-14 14:52+0000\n" "POT-Creation-Date: 2014-03-28 14:51+0000\n"
"PO-Revision-Date: 2014-03-14 11:52-0300\n" "PO-Revision-Date: 2014-03-29 15:03-0300\n"
"Last-Translator: Rafael Ferreira <rafael.f.f1@gmail.com>\n" "Last-Translator: Enrico Nicoletto <liverig@gmail.com>\n"
"Language-Team: Brazilian Portuguese <gnome-pt_br-list@gnome.org>\n" "Language-Team: Brazilian Portuguese <gnome-pt_br-list@gnome.org>\n"
"Language: pt_BR\n" "Language: pt_BR\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: Poedit 1.6.4\n" "X-Generator: Poedit 1.6.3\n"
#: ../data/glade.desktop.in.in.h:1 ../src/main.c:42 #: ../data/glade.desktop.in.in.h:1 ../src/main.c:42
msgid "Glade" msgid "Glade"
@ -91,194 +91,194 @@ msgstr ""
msgid "[Read Only]" msgid "[Read Only]"
msgstr "[Somente leitura]" msgstr "[Somente leitura]"
#: ../src/glade-window.c:322 #: ../src/glade-window.c:323
msgid "User Interface Designer" msgid "User Interface Designer"
msgstr "Construtor de interfaces de usuário" msgstr "Construtor de interfaces de usuário"
#. translators: referring to the action of activating a file named '%s'. #. translators: referring to the action of activating a file named '%s'.
#. * we also indicate to users that the file may be read-only with #. * we also indicate to users that the file may be read-only with
#. * the second '%s' #. * the second '%s'
#: ../src/glade-window.c:523 #: ../src/glade-window.c:524
#, c-format #, c-format
msgid "Activate '%s' %s" msgid "Activate '%s' %s"
msgstr "Ativar \"%s\" %s" msgstr "Ativar \"%s\" %s"
#. translators: referring to the action of activating a file named '%s' #. translators: referring to the action of activating a file named '%s'
#. FIXME add hint for translators #. FIXME add hint for translators
#: ../src/glade-window.c:529 ../src/glade-window.c:537 #: ../src/glade-window.c:530 ../src/glade-window.c:538
#, c-format #, c-format
msgid "Activate '%s'" msgid "Activate '%s'"
msgstr "Ativar \"%s\"" msgstr "Ativar \"%s\""
#. Name #. Name
#: ../src/glade-window.c:585 ../src/glade-registration.glade.h:4 #: ../src/glade-window.c:586 ../src/glade-registration.glade.h:4
#: ../gladeui/glade-base-editor.c:2030 #: ../gladeui/glade-base-editor.c:2030
#: ../gladeui/glade-project-properties.ui.h:12 #: ../gladeui/glade-project-properties.ui.h:12
#: ../plugins/gtk+/glade-about-dialog-editor.ui.h:2 #: ../plugins/gtk+/glade-about-dialog-editor.ui.h:2
msgid "Name:" msgid "Name:"
msgstr "Nome:" msgstr "Nome:"
#: ../src/glade-window.c:588 #: ../src/glade-window.c:589
msgid "Requires:" msgid "Requires:"
msgstr "Requerimento:" msgstr "Requerimento:"
#: ../src/glade-window.c:647 #: ../src/glade-window.c:648
msgid "_Undo" msgid "_Undo"
msgstr "_Desfazer" msgstr "_Desfazer"
#: ../src/glade-window.c:650 #: ../src/glade-window.c:651
#, c-format #, c-format
msgid "Undo: %s" msgid "Undo: %s"
msgstr "Desfazer: %s" msgstr "Desfazer: %s"
#: ../src/glade-window.c:651 ../src/glade-window.c:662 #: ../src/glade-window.c:652 ../src/glade-window.c:663
msgid "the last action" msgid "the last action"
msgstr "a última ação" msgstr "a última ação"
#: ../src/glade-window.c:658 #: ../src/glade-window.c:659
msgid "_Redo" msgid "_Redo"
msgstr "_Refazer" msgstr "_Refazer"
#: ../src/glade-window.c:661 #: ../src/glade-window.c:662
#, c-format #, c-format
msgid "Redo: %s" msgid "Redo: %s"
msgstr "Refazer: %s" msgstr "Refazer: %s"
#: ../src/glade-window.c:693 #: ../src/glade-window.c:694
#, c-format #, c-format
msgid "Autosaving '%s'" msgid "Autosaving '%s'"
msgstr "Salvar automaticamente \"%s\"" msgstr "Salvar automaticamente \"%s\""
#: ../src/glade-window.c:698 #: ../src/glade-window.c:699
#, c-format #, c-format
msgid "Error autosaving '%s'" msgid "Error autosaving '%s'"
msgstr "Erro ao salvar automaticamente \"%s\"" msgstr "Erro ao salvar automaticamente \"%s\""
#: ../src/glade-window.c:1117 #: ../src/glade-window.c:1118
msgid "Open…" msgid "Open…"
msgstr "Abrir…" msgstr "Abrir…"
#: ../src/glade-window.c:1151 #: ../src/glade-window.c:1152
#, c-format #, c-format
msgid "Project %s is still loading." msgid "Project %s is still loading."
msgstr "Projeto %s ainda está carregando." msgstr "Projeto %s ainda está carregando."
#: ../src/glade-window.c:1170 #: ../src/glade-window.c:1171
msgid "Failed to backup existing file, continue saving?" msgid "Failed to backup existing file, continue saving?"
msgstr "" msgstr ""
"Ocorreu falha ao efetuar backup do arquivo existente, continuar salvando?" "Ocorreu falha ao efetuar backup do arquivo existente, continuar salvando?"
#: ../src/glade-window.c:1192 #: ../src/glade-window.c:1193
#, c-format #, c-format
msgid "Failed to save %s: %s" msgid "Failed to save %s: %s"
msgstr "Falha ao salvar %s: %s" msgstr "Falha ao salvar %s: %s"
#: ../src/glade-window.c:1231 #: ../src/glade-window.c:1232
#, c-format #, c-format
msgid "The file %s has been modified since reading it" msgid "The file %s has been modified since reading it"
msgstr "O arquivo %s foi modificado desde que foi lido" msgstr "O arquivo %s foi modificado desde que foi lido"
#: ../src/glade-window.c:1235 #: ../src/glade-window.c:1236
msgid "If you save it, all the external changes could be lost. Save it anyway?" msgid "If you save it, all the external changes could be lost. Save it anyway?"
msgstr "" msgstr ""
"Se você salvá-lo, todas as mudanças externas poderão ser perdidas. Você " "Se você salvá-lo, todas as mudanças externas poderão ser perdidas. Você "
"deseja salvar mesmo assim?" "deseja salvar mesmo assim?"
#: ../src/glade-window.c:1240 #: ../src/glade-window.c:1241
msgid "_Save Anyway" msgid "_Save Anyway"
msgstr "_Salvar mesmo assim" msgstr "_Salvar mesmo assim"
#: ../src/glade-window.c:1248 #: ../src/glade-window.c:1249
msgid "_Don't Save" msgid "_Don't Save"
msgstr "_Não salvar" msgstr "_Não salvar"
#: ../src/glade-window.c:1282 #: ../src/glade-window.c:1283
#, c-format #, c-format
msgid "Project '%s' saved" msgid "Project '%s' saved"
msgstr "Projeto \"%s\" salvo" msgstr "Projeto \"%s\" salvo"
#: ../src/glade-window.c:1313 #: ../src/glade-window.c:1314
msgid "Save As…" msgid "Save As…"
msgstr "Salvar como…" msgstr "Salvar como…"
#: ../src/glade-window.c:1377 #: ../src/glade-window.c:1378
#, c-format #, c-format
msgid "Could not save the file %s" msgid "Could not save the file %s"
msgstr "Não foi possível salvar o arquivo %s" msgstr "Não foi possível salvar o arquivo %s"
#: ../src/glade-window.c:1381 #: ../src/glade-window.c:1382
msgid "You do not have the permissions necessary to save the file." msgid "You do not have the permissions necessary to save the file."
msgstr "Você não tem as permissões necessárias para salvar o arquivo." msgstr "Você não tem as permissões necessárias para salvar o arquivo."
#: ../src/glade-window.c:1403 #: ../src/glade-window.c:1404
#, c-format #, c-format
msgid "Could not save file %s. Another project with that path is open." msgid "Could not save file %s. Another project with that path is open."
msgstr "" msgstr ""
"Não foi possível salvar o arquivo %s. Outro projeto com este caminho está " "Não foi possível salvar o arquivo %s. Outro projeto com este caminho está "
"aberto." "aberto."
#: ../src/glade-window.c:1428 #: ../src/glade-window.c:1429
msgid "No open projects to save" msgid "No open projects to save"
msgstr "Nenhum projeto aberto para salvar" msgstr "Nenhum projeto aberto para salvar"
#: ../src/glade-window.c:1458 #: ../src/glade-window.c:1459
#, c-format #, c-format
msgid "Save changes to project \"%s\" before closing?" msgid "Save changes to project \"%s\" before closing?"
msgstr "Salvar alterações no projeto \"%s\" antes de fechar?" msgstr "Salvar alterações no projeto \"%s\" antes de fechar?"
#: ../src/glade-window.c:1466 #: ../src/glade-window.c:1467
msgid "Your changes will be lost if you don't save them." msgid "Your changes will be lost if you don't save them."
msgstr "As suas alterações serão perdidas se você não salvá-las." msgstr "As suas alterações serão perdidas se você não salvá-las."
#: ../src/glade-window.c:1470 #: ../src/glade-window.c:1471
msgid "Close _without Saving" msgid "Close _without Saving"
msgstr "Fechar _sem salvar" msgstr "Fechar _sem salvar"
#: ../src/glade-window.c:1500 #: ../src/glade-window.c:1501
msgid "Save…" msgid "Save…"
msgstr "Salvar…" msgstr "Salvar…"
#: ../src/glade-window.c:2466 #: ../src/glade-window.c:2467
msgid "Close document" msgid "Close document"
msgstr "Fechar documento" msgstr "Fechar documento"
#: ../src/glade-window.c:2568 #: ../src/glade-window.c:2564
msgid "Could not create a new project." msgid "Could not create a new project."
msgstr "Não foi possível criar um novo projeto." msgstr "Não foi possível criar um novo projeto."
#: ../src/glade-window.c:2621 #: ../src/glade-window.c:2617
#, c-format #, c-format
msgid "The project %s has unsaved changes" msgid "The project %s has unsaved changes"
msgstr "O projeto %s tem alterações que não foram salvas" msgstr "O projeto %s tem alterações que não foram salvas"
#: ../src/glade-window.c:2626 #: ../src/glade-window.c:2622
msgid "If you reload it, all unsaved changes could be lost. Reload it anyway?" msgid "If you reload it, all unsaved changes could be lost. Reload it anyway?"
msgstr "" msgstr ""
"Se você recarregá-lo todas as mudanças poderão ser perdidas. Você deseja " "Se você recarregá-lo todas as mudanças poderão ser perdidas. Você deseja "
"recarregá-lo mesmo assim?" "recarregá-lo mesmo assim?"
#: ../src/glade-window.c:2636 #: ../src/glade-window.c:2632
#, c-format #, c-format
msgid "The project file %s has been externally modified" msgid "The project file %s has been externally modified"
msgstr "O arquivo %s do projeto foi modificado externamente" msgstr "O arquivo %s do projeto foi modificado externamente"
#: ../src/glade-window.c:2641 #: ../src/glade-window.c:2637
msgid "Do you want to reload the project?" msgid "Do you want to reload the project?"
msgstr "Você deseja recarregar o projeto?" msgstr "Você deseja recarregar o projeto?"
#: ../src/glade-window.c:2647 #: ../src/glade-window.c:2643
msgid "_Reload" msgid "_Reload"
msgstr "_Recarregar" msgstr "_Recarregar"
#: ../src/glade-window.c:3216 #: ../src/glade-window.c:3214
msgid "Palette" msgid "Palette"
msgstr "Paleta" msgstr "Paleta"
#: ../src/glade-window.c:3218 #: ../src/glade-window.c:3216
msgid "Inspector" msgid "Inspector"
msgstr "Inspetor" msgstr "Inspetor"
#: ../src/glade-window.c:3220 ../src/glade.glade.h:33 #: ../src/glade-window.c:3218 ../src/glade.glade.h:33
#: ../gladeui/glade-editor.c:320 ../gladeui/glade-widget.c:1385 #: ../gladeui/glade-editor.c:320 ../gladeui/glade-widget.c:1385
#: ../gladeui/glade-project-properties.ui.h:11 #: ../gladeui/glade-project-properties.ui.h:11
#: ../plugins/gtk+/glade-gtk-action-group.c:177 #: ../plugins/gtk+/glade-gtk-action-group.c:177
@ -291,6 +291,27 @@ msgstr "Inspetor"
msgid "Properties" msgid "Properties"
msgstr "Propriedades" msgstr "Propriedades"
#: ../src/glade-window.c:3478
msgid ""
"We are conducting a user survey\n"
" would you like to take it now?"
msgstr ""
"Nós estamos realizando uma pesquisa de usuários\n"
" você gostaria de participar dela agora?"
#: ../src/glade-window.c:3481
msgid "If not, you can always find it in the Help menu."
msgstr "Caso não, você sempre pode encontrá-la no menu Ajuda."
#: ../src/glade-window.c:3483
msgid "_Do not show this dialog again"
msgstr "_Não mostrar esse diálogo novamente"
#: ../src/glade-window.c:3503
msgid "Go to Help -> Registration & User Survey and complete our survey!"
msgstr ""
"Acesse Ajuda -> Registro & pesquisa de usuários e complete nossa pesquisa!"
#: ../src/main.c:51 #: ../src/main.c:51
msgid "Output version information and exit" msgid "Output version information and exit"
msgstr "Exibe informações de versão e sai" msgstr "Exibe informações de versão e sai"
@ -798,56 +819,50 @@ msgstr "Caminhos de catálogos extra"
msgid "Select a catalog search path" msgid "Select a catalog search path"
msgstr "Selecione um caminho de pesquisa de catálogos" msgstr "Selecione um caminho de pesquisa de catálogos"
#: ../src/glade-registration.c:282 #: ../src/glade-registration.c:290
#, c-format #, c-format
msgid "Connecting to %s" msgid "Connecting to %s"
msgstr "Conectando a %s" msgstr "Conectando a %s"
#: ../src/glade-registration.c:285 #: ../src/glade-registration.c:293
#, c-format #, c-format
msgid "Sending data to %s" msgid "Sending data to %s"
msgstr "Enviando dados para %s" msgstr "Enviando dados para %s"
#: ../src/glade-registration.c:288 #: ../src/glade-registration.c:296
#, c-format #, c-format
msgid "Waiting for %s" msgid "Waiting for %s"
msgstr "Esperando por %s" msgstr "Esperando por %s"
#: ../src/glade-registration.c:291 #: ../src/glade-registration.c:299
#, c-format #, c-format
msgid "Receiving data from %s" msgid "Receiving data from %s"
msgstr "Recebendo dados de %s" msgstr "Recebendo dados de %s"
#: ../src/glade-registration.c:323 #: ../src/glade-registration.c:331
#| msgid "Sorry, Automatic subscription to Glade-users mailing list failed"
msgid "Sorry, automatic subscription to Glade Users mailing list failed" msgid "Sorry, automatic subscription to Glade Users mailing list failed"
msgstr "" msgstr ""
"Desculpe, a assinatura automática na lista de e-mails dos usuários do Glade " "Desculpe, a assinatura automática na lista de e-mails dos usuários do Glade "
"falhou" "falhou"
#: ../src/glade-registration.c:326 #: ../src/glade-registration.c:334
#| msgid "Open Glade-users website"
msgid "Open Glade Users Website" msgid "Open Glade Users Website"
msgstr "Visitar o site de usuários do Glade" msgstr "Visitar o site de usuários do Glade"
#: ../src/glade-registration.c:378 #: ../src/glade-registration.c:386
msgid "Internal server error" msgid "Internal server error"
msgstr "Erro interno do servidor" msgstr "Erro interno do servidor"
#: ../src/glade-registration.c:402 #: ../src/glade-registration.c:410
msgid "Thank you for taking the time to complete the survey, we appreciate it!" msgid "Thank you for taking the time to complete the survey, we appreciate it!"
msgstr "" msgstr ""
"Obrigado por tomar o tempo para concluir a pesquisa, nós apreciamos isto!" "Obrigado por tomar o tempo para concluir a pesquisa, nós apreciamos isto!"
#: ../src/glade-registration.c:407 #: ../src/glade-registration.c:418
msgid "Name and Email fields are required" msgid "Name and Email fields are required"
msgstr "Os campos Nome e E-mail são obrigatórios" msgstr "Os campos Nome e E-mail são obrigatórios"
#: ../src/glade-registration.c:410 #: ../src/glade-registration.c:421
#| msgid ""
#| "Ops! email address is already in use!\n"
#| "To update information you need to provide the token that was sent to your "
#| "inbox."
msgid "" msgid ""
"Ops! Email address is already in use!\n" "Ops! Email address is already in use!\n"
"To update information you need to provide the token that was sent to your " "To update information you need to provide the token that was sent to your "
@ -857,17 +872,17 @@ msgstr ""
"Para atualizar a informação você precisa fornecer o token que foi enviado " "Para atualizar a informação você precisa fornecer o token que foi enviado "
"para sua caixa de entrada." "para sua caixa de entrada."
#: ../src/glade-registration.c:413 #: ../src/glade-registration.c:424
#, c-format #, c-format
msgid "Ops! Error saving user information: %s" msgid "Ops! Error saving user information: %s"
msgstr "Ops! Erro ao salvar informação do usuário: %s" msgstr "Ops! Erro ao salvar informação do usuário: %s"
#: ../src/glade-registration.c:416 #: ../src/glade-registration.c:427
#, c-format #, c-format
msgid "Ops! Error saving survey data: %s" msgid "Ops! Error saving survey data: %s"
msgstr "Ops! Erro ao salvar pesquisa de dados: %s" msgstr "Ops! Erro ao salvar pesquisa de dados: %s"
#: ../src/glade-registration.c:419 #: ../src/glade-registration.c:430
#, c-format #, c-format
msgid "Ops! Error accessing DB: %s" msgid "Ops! Error accessing DB: %s"
msgstr "Ops! Erro ao acessar DB: %s" msgstr "Ops! Erro ao acessar DB: %s"
@ -1653,7 +1668,7 @@ msgstr "Definindo múltiplas propriedades"
msgid "Setting %s of %s" msgid "Setting %s of %s"
msgstr "Definindo %s de %s" msgstr "Definindo %s de %s"
#: ../gladeui/glade-command.c:823 ../gladeui/glade-editor-property.c:3350 #: ../gladeui/glade-command.c:823 ../gladeui/glade-editor-property.c:3355
#, c-format #, c-format
msgid "Setting %s of %s to %s" msgid "Setting %s of %s to %s"
msgstr "Definindo %s de %s para %s" msgstr "Definindo %s de %s para %s"
@ -1939,41 +1954,41 @@ msgstr "Texto personalizado"
msgid "Custom Text to display in the property label" msgid "Custom Text to display in the property label"
msgstr "Texto personalizado para exibir no rótulo da propriedade" msgstr "Texto personalizado para exibir no rótulo da propriedade"
#: ../gladeui/glade-editor-property.c:1262 #: ../gladeui/glade-editor-property.c:1267
msgid "Select Fields" msgid "Select Fields"
msgstr "Selecionar campos" msgstr "Selecionar campos"
#: ../gladeui/glade-editor-property.c:1285 #: ../gladeui/glade-editor-property.c:1290
msgid "_Select individual fields:" msgid "_Select individual fields:"
msgstr "_Selecionar campos individuais:" msgstr "_Selecionar campos individuais:"
#: ../gladeui/glade-editor-property.c:1635 #: ../gladeui/glade-editor-property.c:1640
msgid "Select Named Icon" msgid "Select Named Icon"
msgstr "Selecione ícone com nome" msgstr "Selecione ícone com nome"
#: ../gladeui/glade-editor-property.c:1942 #: ../gladeui/glade-editor-property.c:1947
msgid "Edit Text" msgid "Edit Text"
msgstr "Editar texto" msgstr "Editar texto"
#. Text #. Text
#: ../gladeui/glade-editor-property.c:1972 #: ../gladeui/glade-editor-property.c:1977
msgid "_Text:" msgid "_Text:"
msgstr "_Texto:" msgstr "_Texto:"
#. Translatable #. Translatable
#: ../gladeui/glade-editor-property.c:2008 #: ../gladeui/glade-editor-property.c:2013
msgid "T_ranslatable" msgid "T_ranslatable"
msgstr "T_raduzível" msgstr "T_raduzível"
#: ../gladeui/glade-editor-property.c:2014 ../gladeui/glade-property.c:677 #: ../gladeui/glade-editor-property.c:2019 ../gladeui/glade-property.c:677
msgid "Whether this property is translatable" msgid "Whether this property is translatable"
msgstr "Se essa propriedade pode ser traduzida ou não" msgstr "Se essa propriedade pode ser traduzida ou não"
#: ../gladeui/glade-editor-property.c:2022 #: ../gladeui/glade-editor-property.c:2027
msgid "Conte_xt for translation:" msgid "Conte_xt for translation:"
msgstr "Conte_xto para tradução:" msgstr "Conte_xto para tradução:"
#: ../gladeui/glade-editor-property.c:2028 #: ../gladeui/glade-editor-property.c:2033
msgid "" msgid ""
"For short and ambiguous strings: type a word here to differentiate the " "For short and ambiguous strings: type a word here to differentiate the "
"meaning of this string from the meaning of other occurrences of the same " "meaning of this string from the meaning of other occurrences of the same "
@ -1983,63 +1998,63 @@ msgstr ""
"o significado desta expressão do sentido de outras ocorrências da mesma " "o significado desta expressão do sentido de outras ocorrências da mesma "
"existente" "existente"
#: ../gladeui/glade-editor-property.c:2060 #: ../gladeui/glade-editor-property.c:2065
msgid "Co_mments for translators:" msgid "Co_mments for translators:"
msgstr "Co_mentário para os tradutores:" msgstr "Co_mentário para os tradutores:"
#: ../gladeui/glade-editor-property.c:2150 #: ../gladeui/glade-editor-property.c:2155
msgid "Select a file from the project resource directory" msgid "Select a file from the project resource directory"
msgstr "Escolha um arquivo do diretório de recursos do projeto" msgstr "Escolha um arquivo do diretório de recursos do projeto"
#. GtkInputPurpose enumeration value #. GtkInputPurpose enumeration value
#: ../gladeui/glade-editor-property.c:3018 #: ../gladeui/glade-editor-property.c:3023
#: ../gladeui/glade-widget-adaptor.c:1392 ../gladeui/glade-widget.c:1349 #: ../gladeui/glade-widget-adaptor.c:1392 ../gladeui/glade-widget.c:1349
#: ../plugins/gtk+/gtk+.xml.in.h:499 #: ../plugins/gtk+/gtk+.xml.in.h:499
msgid "Name" msgid "Name"
msgstr "Nome" msgstr "Nome"
#: ../gladeui/glade-editor-property.c:3027 ../gladeui/glade-property.c:644 #: ../gladeui/glade-editor-property.c:3032 ../gladeui/glade-property.c:644
msgid "Class" msgid "Class"
msgstr "Classe" msgstr "Classe"
#: ../gladeui/glade-editor-property.c:3047 #: ../gladeui/glade-editor-property.c:3052
#, c-format #, c-format
msgid "Choose parentless %s type objects in this project" msgid "Choose parentless %s type objects in this project"
msgstr "Escolher tipos de objetos %s órfãos neste projeto" msgstr "Escolher tipos de objetos %s órfãos neste projeto"
#: ../gladeui/glade-editor-property.c:3049 #: ../gladeui/glade-editor-property.c:3054
#, c-format #, c-format
msgid "Choose %s type objects in this project" msgid "Choose %s type objects in this project"
msgstr "Escolher tipos de objetos %s neste projeto" msgstr "Escolher tipos de objetos %s neste projeto"
#: ../gladeui/glade-editor-property.c:3069 #: ../gladeui/glade-editor-property.c:3074
#, c-format #, c-format
msgid "Choose a parentless %s in this project" msgid "Choose a parentless %s in this project"
msgstr "Escolher um %s órfão neste projeto" msgstr "Escolher um %s órfão neste projeto"
#: ../gladeui/glade-editor-property.c:3071 #: ../gladeui/glade-editor-property.c:3076
#, c-format #, c-format
msgid "Choose a %s in this project" msgid "Choose a %s in this project"
msgstr "Escolher um %s neste projeto" msgstr "Escolher um %s neste projeto"
#. Checklist #. Checklist
#: ../gladeui/glade-editor-property.c:3128 #: ../gladeui/glade-editor-property.c:3133
#: ../gladeui/glade-editor-property.c:3269 #: ../gladeui/glade-editor-property.c:3274
msgid "O_bjects:" msgid "O_bjects:"
msgstr "O_bjetos:" msgstr "O_bjetos:"
#: ../gladeui/glade-editor-property.c:3221 #: ../gladeui/glade-editor-property.c:3226
msgid "_New" msgid "_New"
msgstr "_Novo" msgstr "_Novo"
#. translators: Creating 'a widget' for 'a property' of 'a widget' #. translators: Creating 'a widget' for 'a property' of 'a widget'
#: ../gladeui/glade-editor-property.c:3376 #: ../gladeui/glade-editor-property.c:3381
#, c-format #, c-format
msgid "Creating %s for %s of %s" msgid "Creating %s for %s of %s"
msgstr "Criando %s para %s de %s" msgstr "Criando %s para %s de %s"
#. Checklist #. Checklist
#: ../gladeui/glade-editor-property.c:3572 #: ../gladeui/glade-editor-property.c:3577
msgid "Objects:" msgid "Objects:"
msgstr "Objetos:" msgstr "Objetos:"
@ -2346,28 +2361,28 @@ msgid "Path to use as the custom CSS provider for this project."
msgstr "" msgstr ""
"Caminho a ser usado como o fornecedor de CSS personalizado para este projeto." "Caminho a ser usado como o fornecedor de CSS personalizado para este projeto."
#: ../gladeui/glade-project.c:1126 #: ../gladeui/glade-project.c:1129
#, c-format #, c-format
msgid "(internal %s)" msgid "(internal %s)"
msgstr "(%s interno)" msgstr "(%s interno)"
#: ../gladeui/glade-project.c:1131 #: ../gladeui/glade-project.c:1134
#, c-format #, c-format
msgid "(%s child)" msgid "(%s child)"
msgstr "(%s filho)" msgstr "(%s filho)"
#: ../gladeui/glade-project.c:1133 #: ../gladeui/glade-project.c:1136
#, c-format #, c-format
msgid "(template)" msgid "(template)"
msgstr "(modelo)" msgstr "(modelo)"
#. translators: refers to a property named '%s' of widget '%s' #. translators: refers to a property named '%s' of widget '%s'
#: ../gladeui/glade-project.c:1141 #: ../gladeui/glade-project.c:1144
#, c-format #, c-format
msgid "(%s of %s)" msgid "(%s of %s)"
msgstr "(%s de %s)" msgstr "(%s de %s)"
#: ../gladeui/glade-project.c:1499 #: ../gladeui/glade-project.c:1502
#, c-format #, c-format
msgid "" msgid ""
"Failed to load %s.\n" "Failed to load %s.\n"
@ -2377,18 +2392,18 @@ msgstr ""
"Os seguintes catálogos necessários não estão disponíveis: %s" "Os seguintes catálogos necessários não estão disponíveis: %s"
#. translators: refers to project name '%s' that targets gtk version '%d.%d' #. translators: refers to project name '%s' that targets gtk version '%d.%d'
#: ../gladeui/glade-project.c:1870 #: ../gladeui/glade-project.c:1873
#, c-format #, c-format
msgid "%s targets Gtk+ %d.%d" msgid "%s targets Gtk+ %d.%d"
msgstr "%s alvos Gtk+ %d.%d" msgstr "%s alvos Gtk+ %d.%d"
#: ../gladeui/glade-project.c:1909 #: ../gladeui/glade-project.c:1912
msgid "Specially because there is an object that can not be build with type " msgid "Specially because there is an object that can not be build with type "
msgstr "" msgstr ""
"Especialmente pelo fato de haver um objeto que não pode ser construído com " "Especialmente pelo fato de haver um objeto que não pode ser construído com "
"tipo " "tipo "
#: ../gladeui/glade-project.c:1914 #: ../gladeui/glade-project.c:1917
#, c-format #, c-format
msgid "" msgid ""
"Specially because there are %d objects that can not be build with types " "Specially because there are %d objects that can not be build with types "
@ -2396,11 +2411,11 @@ msgstr ""
"Especialmente pelo fato de haverem %d objetos que não podem ser construídos " "Especialmente pelo fato de haverem %d objetos que não podem ser construídos "
"com tipos " "com tipos "
#: ../gladeui/glade-project.c:1921 #: ../gladeui/glade-project.c:1924
msgid " and " msgid " and "
msgstr " e " msgstr " e "
#: ../gladeui/glade-project.c:1939 #: ../gladeui/glade-project.c:1942
#, c-format #, c-format
msgid "" msgid ""
"But this version of Glade is for GTK+ 3 only.\n" "But this version of Glade is for GTK+ 3 only.\n"
@ -2413,7 +2428,7 @@ msgstr ""
"widgets obsoletos.\n" "widgets obsoletos.\n"
"%s" "%s"
#: ../gladeui/glade-project.c:2000 #: ../gladeui/glade-project.c:2003
#, c-format #, c-format
msgid "" msgid ""
"An automatically saved version of `%s' is more recent.\n" "An automatically saved version of `%s' is more recent.\n"
@ -2424,7 +2439,7 @@ msgstr ""
"\n" "\n"
"Você gostaria de carregar a versão automaticamente salva?" "Você gostaria de carregar a versão automaticamente salva?"
#: ../gladeui/glade-project.c:2140 #: ../gladeui/glade-project.c:2143
#, c-format #, c-format
msgid "%s document properties" msgid "%s document properties"
msgstr "Propriedades do documento %s" msgstr "Propriedades do documento %s"
@ -2437,7 +2452,7 @@ msgstr "Propriedades do documento %s"
#. * ugly messy code with comments in line breaks inside function calls). #. * ugly messy code with comments in line breaks inside function calls).
#. #.
#. translators: refers to a widget in toolkit version '%s %d.%d' and a project targeting toolkit version '%s %d.%d' #. translators: refers to a widget in toolkit version '%s %d.%d' and a project targeting toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2896 #: ../gladeui/glade-project.c:2899
#, c-format #, c-format
msgid "This widget was introduced in %s %d.%d while project targets %s %d.%d" msgid "This widget was introduced in %s %d.%d while project targets %s %d.%d"
msgstr "" msgstr ""
@ -2445,24 +2460,24 @@ msgstr ""
"%s %d.%d" "%s %d.%d"
#. translators: refers to a widget '[%s]' introduced in toolkit version '%s %d.%d' #. translators: refers to a widget '[%s]' introduced in toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2900 #: ../gladeui/glade-project.c:2903
#, c-format #, c-format
msgid "[%s] Object class '%s' was introduced in %s %d.%d\n" msgid "[%s] Object class '%s' was introduced in %s %d.%d\n"
msgstr "[%s] A classe de objeto \"%s\" foi introduzida no %s %d.%d\n" msgstr "[%s] A classe de objeto \"%s\" foi introduzida no %s %d.%d\n"
#: ../gladeui/glade-project.c:2902 #: ../gladeui/glade-project.c:2905
msgid "This widget is deprecated" msgid "This widget is deprecated"
msgstr "Este widget está obsoleto" msgstr "Este widget está obsoleto"
#. translators: refers to a widget '[%s]' loaded from toolkit version '%s %d.%d' #. translators: refers to a widget '[%s]' loaded from toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2905 #: ../gladeui/glade-project.c:2908
#, c-format #, c-format
msgid "[%s] Object class '%s' from %s %d.%d is deprecated\n" msgid "[%s] Object class '%s' from %s %d.%d is deprecated\n"
msgstr "[%s] A classe de objeto \"%s\" de %s %d.%d está obsoleta\n" msgstr "[%s] A classe de objeto \"%s\" de %s %d.%d está obsoleta\n"
#. translators: refers to a property in toolkit version '%s %d.%d' #. translators: refers to a property in toolkit version '%s %d.%d'
#. * and a project targeting toolkit version '%s %d.%d' #. * and a project targeting toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2910 #: ../gladeui/glade-project.c:2913
#, c-format #, c-format
msgid "This property was introduced in %s %d.%d while project targets %s %d.%d" msgid "This property was introduced in %s %d.%d while project targets %s %d.%d"
msgstr "" msgstr ""
@ -2470,7 +2485,7 @@ msgstr ""
"baseado no %s %d.%d" "baseado no %s %d.%d"
#. translators: refers to a property '%s' of widget '[%s]' in toolkit version '%s %d.%d' #. translators: refers to a property '%s' of widget '[%s]' in toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2914 #: ../gladeui/glade-project.c:2917
#, c-format #, c-format
msgid "[%s] Property '%s' of object class '%s' was introduced in %s %d.%d\n" msgid "[%s] Property '%s' of object class '%s' was introduced in %s %d.%d\n"
msgstr "" msgstr ""
@ -2478,7 +2493,7 @@ msgstr ""
"%d.%d\n" "%d.%d\n"
#. translators: refers to a property '%s' of widget '[%s]' in toolkit version '%s %d.%d' #. translators: refers to a property '%s' of widget '[%s]' in toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2918 #: ../gladeui/glade-project.c:2921
#, c-format #, c-format
msgid "" msgid ""
"[%s] Packing property '%s' of object class '%s' was introduced in %s %d.%d\n" "[%s] Packing property '%s' of object class '%s' was introduced in %s %d.%d\n"
@ -2486,19 +2501,19 @@ msgstr ""
"[%s] A propriedade de empacotamento \"%s\" da classe de objeto \"%s\" foi " "[%s] A propriedade de empacotamento \"%s\" da classe de objeto \"%s\" foi "
"introduzida no %s %d.%d\n" "introduzida no %s %d.%d\n"
#: ../gladeui/glade-project.c:2921 #: ../gladeui/glade-project.c:2924
msgid "This property is deprecated" msgid "This property is deprecated"
msgstr "Esta propriedade está obsoleta" msgstr "Esta propriedade está obsoleta"
#. translators: refers to a property '%s' of widget '[%s]' #. translators: refers to a property '%s' of widget '[%s]'
#: ../gladeui/glade-project.c:2924 #: ../gladeui/glade-project.c:2927
#, c-format #, c-format
msgid "[%s] Property '%s' of object class '%s' is deprecated" msgid "[%s] Property '%s' of object class '%s' is deprecated"
msgstr "[%s] A propriedade \"%s\" da classe de objeto \"%s\" está obsoleta" msgstr "[%s] A propriedade \"%s\" da classe de objeto \"%s\" está obsoleta"
#. translators: refers to a signal in toolkit version '%s %d.%d' #. translators: refers to a signal in toolkit version '%s %d.%d'
#. * and a project targeting toolkit version '%s %d.%d' #. * and a project targeting toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2928 #: ../gladeui/glade-project.c:2931
#, c-format #, c-format
msgid "This signal was introduced in %s %d.%d while project targets %s %d.%d" msgid "This signal was introduced in %s %d.%d while project targets %s %d.%d"
msgstr "" msgstr ""
@ -2506,76 +2521,76 @@ msgstr ""
"%s %d.%d" "%s %d.%d"
#. translators: refers to a signal '%s' of widget '[%s]' in toolkit version '%s %d.%d' #. translators: refers to a signal '%s' of widget '[%s]' in toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2932 #: ../gladeui/glade-project.c:2935
#, c-format #, c-format
msgid "[%s] Signal '%s' of object class '%s' was introduced in %s %d.%d\n" msgid "[%s] Signal '%s' of object class '%s' was introduced in %s %d.%d\n"
msgstr "" msgstr ""
"[%s] O sinal \"%s\" da classe de objeto \"%s\" foi introduzido no %s %d.%d\n" "[%s] O sinal \"%s\" da classe de objeto \"%s\" foi introduzido no %s %d.%d\n"
#: ../gladeui/glade-project.c:2935 #: ../gladeui/glade-project.c:2938
msgid "This signal is deprecated" msgid "This signal is deprecated"
msgstr "Este sinal está obsoleto" msgstr "Este sinal está obsoleto"
#. translators: refers to a signal '%s' of widget '[%s]' #. translators: refers to a signal '%s' of widget '[%s]'
#: ../gladeui/glade-project.c:2938 #: ../gladeui/glade-project.c:2941
#, c-format #, c-format
msgid "[%s] Signal '%s' of object class '%s' is deprecated" msgid "[%s] Signal '%s' of object class '%s' is deprecated"
msgstr "[%s] O sinal \"%s\" da classe de objeto \"%s\" está obsoleto" msgstr "[%s] O sinal \"%s\" da classe de objeto \"%s\" está obsoleto"
#: ../gladeui/glade-project.c:3234 #: ../gladeui/glade-project.c:3237
msgid "Details" msgid "Details"
msgstr "Detalhes" msgstr "Detalhes"
#: ../gladeui/glade-project.c:3249 #: ../gladeui/glade-project.c:3252
#, c-format #, c-format
msgid "Project \"%s\" has errors. Save anyway?" msgid "Project \"%s\" has errors. Save anyway?"
msgstr "O projeto \"%s\" tem erros. Salvar mesmo assim?" msgstr "O projeto \"%s\" tem erros. Salvar mesmo assim?"
#: ../gladeui/glade-project.c:3250 #: ../gladeui/glade-project.c:3253
#, c-format #, c-format
msgid "Project \"%s\" has deprecated widgets and/or version mismatches." msgid "Project \"%s\" has deprecated widgets and/or version mismatches."
msgstr "O projeto \"%s\" tem widgets obsoletos e/ou versões que não coincidem." msgstr "O projeto \"%s\" tem widgets obsoletos e/ou versões que não coincidem."
#: ../gladeui/glade-project.c:3277 #: ../gladeui/glade-project.c:3280
#, c-format #, c-format
msgid "Object %s has unrecognized type %s\n" msgid "Object %s has unrecognized type %s\n"
msgstr "Objeto %s tem tipo %s desconhecido\n" msgstr "Objeto %s tem tipo %s desconhecido\n"
#: ../gladeui/glade-project.c:4747 #: ../gladeui/glade-project.c:4750
#, c-format #, c-format
msgid "Unsaved %i" msgid "Unsaved %i"
msgstr "Não salvo %i" msgstr "Não salvo %i"
#: ../gladeui/glade-project.c:5046 ../gladeui/glade-project.c:5097 #: ../gladeui/glade-project.c:5049 ../gladeui/glade-project.c:5100
#: ../gladeui/glade-project.c:5254 #: ../gladeui/glade-project.c:5257
msgid "No widget selected." msgid "No widget selected."
msgstr "Nenhum widget selecionado." msgstr "Nenhum widget selecionado."
#: ../gladeui/glade-project.c:5062 #: ../gladeui/glade-project.c:5065
msgid "Unable to copy unrecognized widget type." msgid "Unable to copy unrecognized widget type."
msgstr "Não foi possível copiar um tipo de widget desconhecido." msgstr "Não foi possível copiar um tipo de widget desconhecido."
#: ../gladeui/glade-project.c:5094 #: ../gladeui/glade-project.c:5097
msgid "Unable to cut unrecognized widget type" msgid "Unable to cut unrecognized widget type"
msgstr "Não foi possível cortar tipo de widget desconhecido" msgstr "Não foi possível cortar tipo de widget desconhecido"
#: ../gladeui/glade-project.c:5146 #: ../gladeui/glade-project.c:5149
msgid "Unable to paste to the selected parent" msgid "Unable to paste to the selected parent"
msgstr "Não foi possível colar para o pai selecionado" msgstr "Não foi possível colar para o pai selecionado"
#: ../gladeui/glade-project.c:5157 #: ../gladeui/glade-project.c:5160
msgid "Unable to paste to multiple widgets" msgid "Unable to paste to multiple widgets"
msgstr "Não foi possível colar para múltiplos widgets" msgstr "Não foi possível colar para múltiplos widgets"
#: ../gladeui/glade-project.c:5167 #: ../gladeui/glade-project.c:5170
msgid "No widget on the clipboard" msgid "No widget on the clipboard"
msgstr "Nenhum widget na área de transferência" msgstr "Nenhum widget na área de transferência"
#: ../gladeui/glade-project.c:5212 #: ../gladeui/glade-project.c:5215
msgid "Only one widget can be pasted at a time to this container" msgid "Only one widget can be pasted at a time to this container"
msgstr "Somente um widget pode ser colado por vez para este contêiner" msgstr "Somente um widget pode ser colado por vez para este contêiner"
#: ../gladeui/glade-project.c:5224 #: ../gladeui/glade-project.c:5227
msgid "Insufficient amount of placeholders in target container" msgid "Insufficient amount of placeholders in target container"
msgstr "Quantidade insuficiente de espaços reservados no contêiner de destino" msgstr "Quantidade insuficiente de espaços reservados no contêiner de destino"

1557
po/ru.po

File diff suppressed because it is too large Load Diff

2186
po/sl.po

File diff suppressed because it is too large Load Diff

6795
po/sr.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -13,15 +13,15 @@ msgstr ""
"Project-Id-Version: glade3 master\n" "Project-Id-Version: glade3 master\n"
"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?" "Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?"
"product=glade&keywords=I18N+L10N&component=general\n" "product=glade&keywords=I18N+L10N&component=general\n"
"POT-Creation-Date: 2014-03-09 06:45+0000\n" "POT-Creation-Date: 2014-03-29 07:01+0000\n"
"PO-Revision-Date: 2014-03-08 20:48+0800\n" "PO-Revision-Date: 2014-03-29 15:56+0800\n"
"Last-Translator: Wylmer Wang <wantinghard@gmail.com>\n" "Last-Translator: Yunqiang Su <wzssyqa@gmail.com>\n"
"Language-Team: Chinese (Simplified) <i18n-zh@googlegroups.com>\n" "Language-Team: Chinese (Simplified) <i18n-zh@googlegroups.com>\n"
"Language: zh_CN\n" "Language: zh_CN\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"X-Generator: Gtranslator 2.91.6\n" "X-Generator: Poedit 1.6.4\n"
"Plural-Forms: nplurals=1; plural=0;\n" "Plural-Forms: nplurals=1; plural=0;\n"
#: ../data/glade.desktop.in.in.h:1 ../src/main.c:42 #: ../data/glade.desktop.in.in.h:1 ../src/main.c:42
@ -80,187 +80,187 @@ msgstr ""
msgid "[Read Only]" msgid "[Read Only]"
msgstr "[只读]" msgstr "[只读]"
#: ../src/glade-window.c:322 #: ../src/glade-window.c:323
msgid "User Interface Designer" msgid "User Interface Designer"
msgstr "用户界面设计器" msgstr "用户界面设计器"
#. translators: referring to the action of activating a file named '%s'. #. translators: referring to the action of activating a file named '%s'.
#. * we also indicate to users that the file may be read-only with #. * we also indicate to users that the file may be read-only with
#. * the second '%s' #. * the second '%s'
#: ../src/glade-window.c:523 #: ../src/glade-window.c:524
#, c-format #, c-format
msgid "Activate '%s' %s" msgid "Activate '%s' %s"
msgstr "激活“%s”%s" msgstr "激活“%s”%s"
#. translators: referring to the action of activating a file named '%s' #. translators: referring to the action of activating a file named '%s'
#. FIXME add hint for translators #. FIXME add hint for translators
#: ../src/glade-window.c:529 ../src/glade-window.c:537 #: ../src/glade-window.c:530 ../src/glade-window.c:538
#, c-format #, c-format
msgid "Activate '%s'" msgid "Activate '%s'"
msgstr "激活“%s”" msgstr "激活“%s”"
#. Name #. Name
#: ../src/glade-window.c:585 ../src/glade-registration.glade.h:4 #: ../src/glade-window.c:586 ../src/glade-registration.glade.h:4
#: ../gladeui/glade-base-editor.c:2030 #: ../gladeui/glade-base-editor.c:2030
#: ../gladeui/glade-project-properties.ui.h:12 #: ../gladeui/glade-project-properties.ui.h:12
#: ../plugins/gtk+/glade-about-dialog-editor.ui.h:2 #: ../plugins/gtk+/glade-about-dialog-editor.ui.h:2
msgid "Name:" msgid "Name:"
msgstr "名称:" msgstr "名称:"
#: ../src/glade-window.c:588 #: ../src/glade-window.c:589
msgid "Requires:" msgid "Requires:"
msgstr "需求:" msgstr "需求:"
#: ../src/glade-window.c:647 #: ../src/glade-window.c:648
msgid "_Undo" msgid "_Undo"
msgstr "撤消(_U)" msgstr "撤消(_U)"
#: ../src/glade-window.c:650 #: ../src/glade-window.c:651
#, c-format #, c-format
msgid "Undo: %s" msgid "Undo: %s"
msgstr "撤消(_U)%s" msgstr "撤消(_U)%s"
#: ../src/glade-window.c:651 ../src/glade-window.c:662 #: ../src/glade-window.c:652 ../src/glade-window.c:663
msgid "the last action" msgid "the last action"
msgstr "上一步操作" msgstr "上一步操作"
#: ../src/glade-window.c:658 #: ../src/glade-window.c:659
msgid "_Redo" msgid "_Redo"
msgstr "重做(_R)" msgstr "重做(_R)"
#: ../src/glade-window.c:661 #: ../src/glade-window.c:662
#, c-format #, c-format
msgid "Redo: %s" msgid "Redo: %s"
msgstr "重做:%s" msgstr "重做:%s"
#: ../src/glade-window.c:693 #: ../src/glade-window.c:694
#, c-format #, c-format
msgid "Autosaving '%s'" msgid "Autosaving '%s'"
msgstr "正在自动保存“%s”" msgstr "正在自动保存“%s”"
#: ../src/glade-window.c:698 #: ../src/glade-window.c:699
#, c-format #, c-format
msgid "Error autosaving '%s'" msgid "Error autosaving '%s'"
msgstr "自动保存“%s”出错" msgstr "自动保存“%s”出错"
#: ../src/glade-window.c:1117 #: ../src/glade-window.c:1118
msgid "Open…" msgid "Open…"
msgstr "打开..." msgstr "打开..."
#: ../src/glade-window.c:1151 #: ../src/glade-window.c:1152
#, c-format #, c-format
msgid "Project %s is still loading." msgid "Project %s is still loading."
msgstr "项目“%s”仍在加载。" msgstr "项目“%s”仍在加载。"
#: ../src/glade-window.c:1170 #: ../src/glade-window.c:1171
msgid "Failed to backup existing file, continue saving?" msgid "Failed to backup existing file, continue saving?"
msgstr "备份现存文件失败,继续保存吗?" msgstr "备份现存文件失败,继续保存吗?"
#: ../src/glade-window.c:1192 #: ../src/glade-window.c:1193
#, c-format #, c-format
msgid "Failed to save %s: %s" msgid "Failed to save %s: %s"
msgstr "保存 %s 失败:%s" msgstr "保存 %s 失败:%s"
#: ../src/glade-window.c:1231 #: ../src/glade-window.c:1232
#, c-format #, c-format
msgid "The file %s has been modified since reading it" msgid "The file %s has been modified since reading it"
msgstr "文件 %s 相比读取时已修改" msgstr "文件 %s 相比读取时已修改"
#: ../src/glade-window.c:1235 #: ../src/glade-window.c:1236
msgid "If you save it, all the external changes could be lost. Save it anyway?" msgid "If you save it, all the external changes could be lost. Save it anyway?"
msgstr "如果您保存它,所有的外部修改将丢失。仍然保存吗?" msgstr "如果您保存它,所有的外部修改将丢失。仍然保存吗?"
#: ../src/glade-window.c:1240 #: ../src/glade-window.c:1241
msgid "_Save Anyway" msgid "_Save Anyway"
msgstr "仍然保存(_S)" msgstr "仍然保存(_S)"
#: ../src/glade-window.c:1248 #: ../src/glade-window.c:1249
msgid "_Don't Save" msgid "_Don't Save"
msgstr "不保存(_D)" msgstr "不保存(_D)"
#: ../src/glade-window.c:1282 #: ../src/glade-window.c:1283
#, c-format #, c-format
msgid "Project '%s' saved" msgid "Project '%s' saved"
msgstr "项目“%s”已保存" msgstr "项目“%s”已保存"
#: ../src/glade-window.c:1313 #: ../src/glade-window.c:1314
msgid "Save As…" msgid "Save As…"
msgstr "另存为..." msgstr "另存为..."
#: ../src/glade-window.c:1377 #: ../src/glade-window.c:1378
#, c-format #, c-format
msgid "Could not save the file %s" msgid "Could not save the file %s"
msgstr "无法保存 %s 文件 " msgstr "无法保存 %s 文件 "
#: ../src/glade-window.c:1381 #: ../src/glade-window.c:1382
msgid "You do not have the permissions necessary to save the file." msgid "You do not have the permissions necessary to save the file."
msgstr "您没有保存文件需要的权限。" msgstr "您没有保存文件需要的权限。"
#: ../src/glade-window.c:1403 #: ../src/glade-window.c:1404
#, c-format #, c-format
msgid "Could not save file %s. Another project with that path is open." msgid "Could not save file %s. Another project with that path is open."
msgstr "无法保存 %s 文件 。另一个打开的项目正在使用该路径。" msgstr "无法保存 %s 文件 。另一个打开的项目正在使用该路径。"
#: ../src/glade-window.c:1428 #: ../src/glade-window.c:1429
msgid "No open projects to save" msgid "No open projects to save"
msgstr "没有已打开的项目可以保存" msgstr "没有已打开的项目可以保存"
#: ../src/glade-window.c:1458 #: ../src/glade-window.c:1459
#, c-format #, c-format
msgid "Save changes to project \"%s\" before closing?" msgid "Save changes to project \"%s\" before closing?"
msgstr "在关闭前保存对“%s”项目的修改" msgstr "在关闭前保存对“%s”项目的修改"
#: ../src/glade-window.c:1466 #: ../src/glade-window.c:1467
msgid "Your changes will be lost if you don't save them." msgid "Your changes will be lost if you don't save them."
msgstr "如果不保存,您的修改将会丢失。" msgstr "如果不保存,您的修改将会丢失。"
#: ../src/glade-window.c:1470 #: ../src/glade-window.c:1471
msgid "Close _without Saving" msgid "Close _without Saving"
msgstr "关闭而不保存(_W)" msgstr "关闭而不保存(_W)"
#: ../src/glade-window.c:1500 #: ../src/glade-window.c:1501
msgid "Save…" msgid "Save…"
msgstr "保存..." msgstr "保存..."
#: ../src/glade-window.c:2466 #: ../src/glade-window.c:2467
msgid "Close document" msgid "Close document"
msgstr "关闭文档" msgstr "关闭文档"
#: ../src/glade-window.c:2568 #: ../src/glade-window.c:2564
msgid "Could not create a new project." msgid "Could not create a new project."
msgstr "无法创建新项目。" msgstr "无法创建新项目。"
#: ../src/glade-window.c:2621 #: ../src/glade-window.c:2617
#, c-format #, c-format
msgid "The project %s has unsaved changes" msgid "The project %s has unsaved changes"
msgstr "%s 项目有未保存的更改" msgstr "%s 项目有未保存的更改"
#: ../src/glade-window.c:2626 #: ../src/glade-window.c:2622
msgid "If you reload it, all unsaved changes could be lost. Reload it anyway?" msgid "If you reload it, all unsaved changes could be lost. Reload it anyway?"
msgstr "如果重新加载,所有未保存的更改将丢失,确定要重新加载吗?" msgstr "如果重新加载,所有未保存的更改将丢失,确定要重新加载吗?"
#: ../src/glade-window.c:2636 #: ../src/glade-window.c:2632
#, c-format #, c-format
msgid "The project file %s has been externally modified" msgid "The project file %s has been externally modified"
msgstr "项目文件 %s 已经在外部被修改" msgstr "项目文件 %s 已经在外部被修改"
#: ../src/glade-window.c:2641 #: ../src/glade-window.c:2637
msgid "Do you want to reload the project?" msgid "Do you want to reload the project?"
msgstr "您想重新加载该项目吗?" msgstr "您想重新加载该项目吗?"
#: ../src/glade-window.c:2647 #: ../src/glade-window.c:2643
msgid "_Reload" msgid "_Reload"
msgstr "重新加载(_R)" msgstr "重新加载(_R)"
#: ../src/glade-window.c:3216 #: ../src/glade-window.c:3214
msgid "Palette" msgid "Palette"
msgstr "调色板" msgstr "调色板"
#: ../src/glade-window.c:3218 #: ../src/glade-window.c:3216
msgid "Inspector" msgid "Inspector"
msgstr "检查器" msgstr "检查器"
#: ../src/glade-window.c:3220 ../src/glade.glade.h:33 #: ../src/glade-window.c:3218 ../src/glade.glade.h:33
#: ../gladeui/glade-editor.c:320 ../gladeui/glade-widget.c:1385 #: ../gladeui/glade-editor.c:320 ../gladeui/glade-widget.c:1385
#: ../gladeui/glade-project-properties.ui.h:11 #: ../gladeui/glade-project-properties.ui.h:11
#: ../plugins/gtk+/glade-gtk-action-group.c:177 #: ../plugins/gtk+/glade-gtk-action-group.c:177
@ -273,6 +273,26 @@ msgstr "检查器"
msgid "Properties" msgid "Properties"
msgstr "属性" msgstr "属性"
#: ../src/glade-window.c:3478
msgid ""
"We are conducting a user survey\n"
" would you like to take it now?"
msgstr ""
"我们在做用户调查\n"
" 您现在愿意参加吗?"
#: ../src/glade-window.c:3481
msgid "If not, you can always find it in the Help menu."
msgstr "如果现在不愿意,您总是可以在帮助菜单中找到它。"
#: ../src/glade-window.c:3483
msgid "_Do not show this dialog again"
msgstr "不再显示此对话(_D)"
#: ../src/glade-window.c:3503
msgid "Go to Help -> Registration & User Survey and complete our survey!"
msgstr "请到“帮助 -> 注册和用户调查”完成我们的调查!"
#: ../src/main.c:51 #: ../src/main.c:51
msgid "Output version information and exit" msgid "Output version information and exit"
msgstr "输出版本信息并退出" msgstr "输出版本信息并退出"
@ -756,30 +776,70 @@ msgstr "额外的分类路径"
msgid "Select a catalog search path" msgid "Select a catalog search path"
msgstr "选择一个分类搜索路径" msgstr "选择一个分类搜索路径"
#: ../src/glade-registration.c:168 #: ../src/glade-registration.c:290
#, c-format #, c-format
msgid "Connecting to %s" msgid "Connecting to %s"
msgstr "正在连接 %s" msgstr "正在连接 %s"
#: ../src/glade-registration.c:171 #: ../src/glade-registration.c:293
#, c-format #, c-format
msgid "Sending data to %s" msgid "Sending data to %s"
msgstr "正在向 %s 发送数据" msgstr "正在向 %s 发送数据"
#: ../src/glade-registration.c:174 #: ../src/glade-registration.c:296
#, c-format #, c-format
msgid "Waiting for %s" msgid "Waiting for %s"
msgstr "正在等待 %s" msgstr "正在等待 %s"
#: ../src/glade-registration.c:177 #: ../src/glade-registration.c:299
#, c-format #, c-format
msgid "Receiving data from %s" msgid "Receiving data from %s"
msgstr "正在从 %s 接收数据" msgstr "正在从 %s 接收数据"
#: ../src/glade-registration.c:206 #: ../src/glade-registration.c:331
msgid "Sorry, automatic subscription to Glade Users mailing list failed"
msgstr "抱歉,自动订阅 Glade 用户邮件列表失败"
#: ../src/glade-registration.c:334
msgid "Open Glade Users Website"
msgstr "打开 Glade 用户网站"
#: ../src/glade-registration.c:386
msgid "Internal server error" msgid "Internal server error"
msgstr "内部服务器错误" msgstr "内部服务器错误"
#: ../src/glade-registration.c:410
msgid "Thank you for taking the time to complete the survey, we appreciate it!"
msgstr "感谢参与此调查。我们非常感激!"
#: ../src/glade-registration.c:418
msgid "Name and Email fields are required"
msgstr "姓名和电子邮件字段必须填写"
#: ../src/glade-registration.c:421
msgid ""
"Ops! Email address is already in use!\n"
"To update information you need to provide the token that was sent to your "
"inbox."
msgstr ""
"糟糕!电子邮件已在使用!\n"
"要更新信息,需要提高我们发送到您邮箱的令牌。"
#: ../src/glade-registration.c:424
#, c-format
msgid "Ops! Error saving user information: %s"
msgstr "糟糕!保存用户信息出错:%s"
#: ../src/glade-registration.c:427
#, c-format
msgid "Ops! Error saving survey data: %s"
msgstr "糟糕!保存调查数据出错:%s"
#: ../src/glade-registration.c:430
#, c-format
msgid "Ops! Error accessing DB: %s"
msgstr "糟糕!访问数据库出错:%s"
#: ../src/glade-registration.glade.h:1 #: ../src/glade-registration.glade.h:1
msgid "Glade Registration & User Survey" msgid "Glade Registration & User Survey"
msgstr "Glade 注册和用户调查" msgstr "Glade 注册和用户调查"
@ -1545,7 +1605,7 @@ msgstr "设置复合属性"
msgid "Setting %s of %s" msgid "Setting %s of %s"
msgstr "设置 %2$s 的 %1$s" msgstr "设置 %2$s 的 %1$s"
#: ../gladeui/glade-command.c:823 ../gladeui/glade-editor-property.c:3350 #: ../gladeui/glade-command.c:823 ../gladeui/glade-editor-property.c:3355
#, c-format #, c-format
msgid "Setting %s of %s to %s" msgid "Setting %s of %s to %s"
msgstr "将 %2$s 的 %1$s 设置为 %3$s" msgstr "将 %2$s 的 %1$s 设置为 %3$s"
@ -1829,41 +1889,41 @@ msgstr "自定义文本"
msgid "Custom Text to display in the property label" msgid "Custom Text to display in the property label"
msgstr "显示在属性标签中的自定义文本" msgstr "显示在属性标签中的自定义文本"
#: ../gladeui/glade-editor-property.c:1262 #: ../gladeui/glade-editor-property.c:1267
msgid "Select Fields" msgid "Select Fields"
msgstr "选择区域" msgstr "选择区域"
#: ../gladeui/glade-editor-property.c:1285 #: ../gladeui/glade-editor-property.c:1290
msgid "_Select individual fields:" msgid "_Select individual fields:"
msgstr "选择独立区域(_S)" msgstr "选择独立区域(_S)"
#: ../gladeui/glade-editor-property.c:1635 #: ../gladeui/glade-editor-property.c:1640
msgid "Select Named Icon" msgid "Select Named Icon"
msgstr "选择命名图标" msgstr "选择命名图标"
#: ../gladeui/glade-editor-property.c:1942 #: ../gladeui/glade-editor-property.c:1947
msgid "Edit Text" msgid "Edit Text"
msgstr "编辑文本" msgstr "编辑文本"
#. Text #. Text
#: ../gladeui/glade-editor-property.c:1972 #: ../gladeui/glade-editor-property.c:1977
msgid "_Text:" msgid "_Text:"
msgstr "文本(_T)" msgstr "文本(_T)"
#. Translatable #. Translatable
#: ../gladeui/glade-editor-property.c:2008 #: ../gladeui/glade-editor-property.c:2013
msgid "T_ranslatable" msgid "T_ranslatable"
msgstr "可译的(_R)" msgstr "可译的(_R)"
#: ../gladeui/glade-editor-property.c:2014 ../gladeui/glade-property.c:677 #: ../gladeui/glade-editor-property.c:2019 ../gladeui/glade-property.c:677
msgid "Whether this property is translatable" msgid "Whether this property is translatable"
msgstr "该属性是否可以翻译" msgstr "该属性是否可以翻译"
#: ../gladeui/glade-editor-property.c:2022 #: ../gladeui/glade-editor-property.c:2027
msgid "Conte_xt for translation:" msgid "Conte_xt for translation:"
msgstr "为翻译者写的注释(_X)" msgstr "为翻译者写的注释(_X)"
#: ../gladeui/glade-editor-property.c:2028 #: ../gladeui/glade-editor-property.c:2033
msgid "" msgid ""
"For short and ambiguous strings: type a word here to differentiate the " "For short and ambiguous strings: type a word here to differentiate the "
"meaning of this string from the meaning of other occurrences of the same " "meaning of this string from the meaning of other occurrences of the same "
@ -1872,63 +1932,63 @@ msgstr ""
"简短和模糊的字符串:键入一个词在这里以区别于这个字符串的意思对于其它相同的字" "简短和模糊的字符串:键入一个词在这里以区别于这个字符串的意思对于其它相同的字"
"符串的含义" "符串的含义"
#: ../gladeui/glade-editor-property.c:2060 #: ../gladeui/glade-editor-property.c:2065
msgid "Co_mments for translators:" msgid "Co_mments for translators:"
msgstr "翻译者注释(_M)" msgstr "翻译者注释(_M)"
#: ../gladeui/glade-editor-property.c:2150 #: ../gladeui/glade-editor-property.c:2155
msgid "Select a file from the project resource directory" msgid "Select a file from the project resource directory"
msgstr "从项目资源文件夹中选择一个文件" msgstr "从项目资源文件夹中选择一个文件"
#. GtkInputPurpose enumeration value #. GtkInputPurpose enumeration value
#: ../gladeui/glade-editor-property.c:3018 #: ../gladeui/glade-editor-property.c:3023
#: ../gladeui/glade-widget-adaptor.c:1392 ../gladeui/glade-widget.c:1349 #: ../gladeui/glade-widget-adaptor.c:1392 ../gladeui/glade-widget.c:1349
#: ../plugins/gtk+/gtk+.xml.in.h:499 #: ../plugins/gtk+/gtk+.xml.in.h:499
msgid "Name" msgid "Name"
msgstr "名称" msgstr "名称"
#: ../gladeui/glade-editor-property.c:3027 ../gladeui/glade-property.c:644 #: ../gladeui/glade-editor-property.c:3032 ../gladeui/glade-property.c:644
msgid "Class" msgid "Class"
msgstr "类" msgstr "类"
#: ../gladeui/glade-editor-property.c:3047 #: ../gladeui/glade-editor-property.c:3052
#, c-format #, c-format
msgid "Choose parentless %s type objects in this project" msgid "Choose parentless %s type objects in this project"
msgstr "在项目中选择无从属 %s 类型对象" msgstr "在项目中选择无从属 %s 类型对象"
#: ../gladeui/glade-editor-property.c:3049 #: ../gladeui/glade-editor-property.c:3054
#, c-format #, c-format
msgid "Choose %s type objects in this project" msgid "Choose %s type objects in this project"
msgstr "选择项目中 %s 类型的对象" msgstr "选择项目中 %s 类型的对象"
#: ../gladeui/glade-editor-property.c:3069 #: ../gladeui/glade-editor-property.c:3074
#, c-format #, c-format
msgid "Choose a parentless %s in this project" msgid "Choose a parentless %s in this project"
msgstr "选择项目中无从属的 %s " msgstr "选择项目中无从属的 %s "
#: ../gladeui/glade-editor-property.c:3071 #: ../gladeui/glade-editor-property.c:3076
#, c-format #, c-format
msgid "Choose a %s in this project" msgid "Choose a %s in this project"
msgstr "在项目中选择 %s " msgstr "在项目中选择 %s "
#. Checklist #. Checklist
#: ../gladeui/glade-editor-property.c:3128 #: ../gladeui/glade-editor-property.c:3133
#: ../gladeui/glade-editor-property.c:3269 #: ../gladeui/glade-editor-property.c:3274
msgid "O_bjects:" msgid "O_bjects:"
msgstr "对象(_B)" msgstr "对象(_B)"
#: ../gladeui/glade-editor-property.c:3221 #: ../gladeui/glade-editor-property.c:3226
msgid "_New" msgid "_New"
msgstr "新建(_N)" msgstr "新建(_N)"
#. translators: Creating 'a widget' for 'a property' of 'a widget' #. translators: Creating 'a widget' for 'a property' of 'a widget'
#: ../gladeui/glade-editor-property.c:3376 #: ../gladeui/glade-editor-property.c:3381
#, c-format #, c-format
msgid "Creating %s for %s of %s" msgid "Creating %s for %s of %s"
msgstr "为 %3$s 的 %2$s 创建 %1$s" msgstr "为 %3$s 的 %2$s 创建 %1$s"
#. Checklist #. Checklist
#: ../gladeui/glade-editor-property.c:3572 #: ../gladeui/glade-editor-property.c:3577
msgid "Objects:" msgid "Objects:"
msgstr "对象:" msgstr "对象:"
@ -2228,28 +2288,28 @@ msgstr "CSS 提供器路径"
msgid "Path to use as the custom CSS provider for this project." msgid "Path to use as the custom CSS provider for this project."
msgstr "此项目 CSS 提供器的路径。" msgstr "此项目 CSS 提供器的路径。"
#: ../gladeui/glade-project.c:1126 #: ../gladeui/glade-project.c:1129
#, c-format #, c-format
msgid "(internal %s)" msgid "(internal %s)"
msgstr "(内部的 %s)" msgstr "(内部的 %s)"
#: ../gladeui/glade-project.c:1131 #: ../gladeui/glade-project.c:1134
#, c-format #, c-format
msgid "(%s child)" msgid "(%s child)"
msgstr "(%s 子结点)" msgstr "(%s 子结点)"
#: ../gladeui/glade-project.c:1133 #: ../gladeui/glade-project.c:1136
#, c-format #, c-format
msgid "(template)" msgid "(template)"
msgstr "(模板)" msgstr "(模板)"
#. translators: refers to a property named '%s' of widget '%s' #. translators: refers to a property named '%s' of widget '%s'
#: ../gladeui/glade-project.c:1141 #: ../gladeui/glade-project.c:1144
#, c-format #, c-format
msgid "(%s of %s)" msgid "(%s of %s)"
msgstr "(%2$s 的 %1$s)" msgstr "(%2$s 的 %1$s)"
#: ../gladeui/glade-project.c:1499 #: ../gladeui/glade-project.c:1502
#, c-format #, c-format
msgid "" msgid ""
"Failed to load %s.\n" "Failed to load %s.\n"
@ -2259,26 +2319,26 @@ msgstr ""
"以下必需的分类不可用:%s" "以下必需的分类不可用:%s"
#. translators: refers to project name '%s' that targets gtk version '%d.%d' #. translators: refers to project name '%s' that targets gtk version '%d.%d'
#: ../gladeui/glade-project.c:1870 #: ../gladeui/glade-project.c:1873
#, c-format #, c-format
msgid "%s targets Gtk+ %d.%d" msgid "%s targets Gtk+ %d.%d"
msgstr "%s 使用 Gtk+ %d.%d" msgstr "%s 使用 Gtk+ %d.%d"
#: ../gladeui/glade-project.c:1909 #: ../gladeui/glade-project.c:1912
msgid "Specially because there is an object that can not be build with type " msgid "Specially because there is an object that can not be build with type "
msgstr "由于有 1 个对象不能使用以下类型构建:" msgstr "由于有 1 个对象不能使用以下类型构建:"
#: ../gladeui/glade-project.c:1914 #: ../gladeui/glade-project.c:1917
#, c-format #, c-format
msgid "" msgid ""
"Specially because there are %d objects that can not be build with types " "Specially because there are %d objects that can not be build with types "
msgstr "由于有 %d 个对象不能使用以下类型构建:" msgstr "由于有 %d 个对象不能使用以下类型构建:"
#: ../gladeui/glade-project.c:1921 #: ../gladeui/glade-project.c:1924
msgid " and " msgid " and "
msgstr " 和 " msgstr " 和 "
#: ../gladeui/glade-project.c:1939 #: ../gladeui/glade-project.c:1942
#, c-format #, c-format
msgid "" msgid ""
"But this version of Glade is for GTK+ 3 only.\n" "But this version of Glade is for GTK+ 3 only.\n"
@ -2290,7 +2350,7 @@ msgstr ""
"请先确定此项目不使用废弃的组件便能运行于 Glade 3.8 上。\n" "请先确定此项目不使用废弃的组件便能运行于 Glade 3.8 上。\n"
"%s" "%s"
#: ../gladeui/glade-project.c:2000 #: ../gladeui/glade-project.c:2003
#, c-format #, c-format
msgid "" msgid ""
"An automatically saved version of `%s' is more recent.\n" "An automatically saved version of `%s' is more recent.\n"
@ -2300,7 +2360,7 @@ msgstr ""
"有一份“%s”自动保存的版本比它新。\n" "有一份“%s”自动保存的版本比它新。\n"
"您是否愿意转而加载自动保存的版本?" "您是否愿意转而加载自动保存的版本?"
#: ../gladeui/glade-project.c:2140 #: ../gladeui/glade-project.c:2143
#, c-format #, c-format
msgid "%s document properties" msgid "%s document properties"
msgstr "%s 文档属性" msgstr "%s 文档属性"
@ -2313,134 +2373,134 @@ msgstr "%s 文档属性"
#. * ugly messy code with comments in line breaks inside function calls). #. * ugly messy code with comments in line breaks inside function calls).
#. #.
#. translators: refers to a widget in toolkit version '%s %d.%d' and a project targeting toolkit version '%s %d.%d' #. translators: refers to a widget in toolkit version '%s %d.%d' and a project targeting toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2896 #: ../gladeui/glade-project.c:2899
#, c-format #, c-format
msgid "This widget was introduced in %s %d.%d while project targets %s %d.%d" msgid "This widget was introduced in %s %d.%d while project targets %s %d.%d"
msgstr "这个组件在 %s %d.%d 中被引入,而项目目标是 %s %d.%d" msgstr "这个组件在 %s %d.%d 中被引入,而项目目标是 %s %d.%d"
#. translators: refers to a widget '[%s]' introduced in toolkit version '%s %d.%d' #. translators: refers to a widget '[%s]' introduced in toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2900 #: ../gladeui/glade-project.c:2903
#, c-format #, c-format
msgid "[%s] Object class '%s' was introduced in %s %d.%d\n" msgid "[%s] Object class '%s' was introduced in %s %d.%d\n"
msgstr "[%s] 对象类“%s”在 %s %d.%d 中被引入\n" msgstr "[%s] 对象类“%s”在 %s %d.%d 中被引入\n"
#: ../gladeui/glade-project.c:2902 #: ../gladeui/glade-project.c:2905
msgid "This widget is deprecated" msgid "This widget is deprecated"
msgstr "该组件已被废弃" msgstr "该组件已被废弃"
#. translators: refers to a widget '[%s]' loaded from toolkit version '%s %d.%d' #. translators: refers to a widget '[%s]' loaded from toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2905 #: ../gladeui/glade-project.c:2908
#, c-format #, c-format
msgid "[%s] Object class '%s' from %s %d.%d is deprecated\n" msgid "[%s] Object class '%s' from %s %d.%d is deprecated\n"
msgstr "[%s] 对象类“%s”来自于 %s %d.%d 已不推荐使用\n" msgstr "[%s] 对象类“%s”来自于 %s %d.%d 已不推荐使用\n"
#. translators: refers to a property in toolkit version '%s %d.%d' #. translators: refers to a property in toolkit version '%s %d.%d'
#. * and a project targeting toolkit version '%s %d.%d' #. * and a project targeting toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2910 #: ../gladeui/glade-project.c:2913
#, c-format #, c-format
msgid "This property was introduced in %s %d.%d while project targets %s %d.%d" msgid "This property was introduced in %s %d.%d while project targets %s %d.%d"
msgstr "该属性在 %s %d.%d 中被引入,而项目目标为 %s %d.%d" msgstr "该属性在 %s %d.%d 中被引入,而项目目标为 %s %d.%d"
#. translators: refers to a property '%s' of widget '[%s]' in toolkit version '%s %d.%d' #. translators: refers to a property '%s' of widget '[%s]' in toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2914 #: ../gladeui/glade-project.c:2917
#, c-format #, c-format
msgid "[%s] Property '%s' of object class '%s' was introduced in %s %d.%d\n" msgid "[%s] Property '%s' of object class '%s' was introduced in %s %d.%d\n"
msgstr "[%s] 属性“%s”于对象类“%s”在 %s %d.%d 中被引入\n" msgstr "[%s] 属性“%s”于对象类“%s”在 %s %d.%d 中被引入\n"
#. translators: refers to a property '%s' of widget '[%s]' in toolkit version '%s %d.%d' #. translators: refers to a property '%s' of widget '[%s]' in toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2918 #: ../gladeui/glade-project.c:2921
#, c-format #, c-format
msgid "" msgid ""
"[%s] Packing property '%s' of object class '%s' was introduced in %s %d.%d\n" "[%s] Packing property '%s' of object class '%s' was introduced in %s %d.%d\n"
msgstr "[%s] 包装属性“%s”于对象类“%s”在 %s %d.%d 中被引入\n" msgstr "[%s] 包装属性“%s”于对象类“%s”在 %s %d.%d 中被引入\n"
#: ../gladeui/glade-project.c:2921 #: ../gladeui/glade-project.c:2924
msgid "This property is deprecated" msgid "This property is deprecated"
msgstr "该属性已弃用" msgstr "该属性已弃用"
#. translators: refers to a property '%s' of widget '[%s]' #. translators: refers to a property '%s' of widget '[%s]'
#: ../gladeui/glade-project.c:2924 #: ../gladeui/glade-project.c:2927
#, c-format #, c-format
msgid "[%s] Property '%s' of object class '%s' is deprecated" msgid "[%s] Property '%s' of object class '%s' is deprecated"
msgstr "[%1$s] 对象类“%3$s”的属性“%2$s”已弃用" msgstr "[%1$s] 对象类“%3$s”的属性“%2$s”已弃用"
#. translators: refers to a signal in toolkit version '%s %d.%d' #. translators: refers to a signal in toolkit version '%s %d.%d'
#. * and a project targeting toolkit version '%s %d.%d' #. * and a project targeting toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2928 #: ../gladeui/glade-project.c:2931
#, c-format #, c-format
msgid "This signal was introduced in %s %d.%d while project targets %s %d.%d" msgid "This signal was introduced in %s %d.%d while project targets %s %d.%d"
msgstr "信号在 %s %d.%d 被引入,而项目目标为 %s %d.%d" msgstr "信号在 %s %d.%d 被引入,而项目目标为 %s %d.%d"
#. translators: refers to a signal '%s' of widget '[%s]' in toolkit version '%s %d.%d' #. translators: refers to a signal '%s' of widget '[%s]' in toolkit version '%s %d.%d'
#: ../gladeui/glade-project.c:2932 #: ../gladeui/glade-project.c:2935
#, c-format #, c-format
msgid "[%s] Signal '%s' of object class '%s' was introduced in %s %d.%d\n" msgid "[%s] Signal '%s' of object class '%s' was introduced in %s %d.%d\n"
msgstr "[%s] 信号“%s”于对象类“%s”在 %s %d.%d 被引入\n" msgstr "[%s] 信号“%s”于对象类“%s”在 %s %d.%d 被引入\n"
#: ../gladeui/glade-project.c:2935 #: ../gladeui/glade-project.c:2938
msgid "This signal is deprecated" msgid "This signal is deprecated"
msgstr "该信号已弃用" msgstr "该信号已弃用"
#. translators: refers to a signal '%s' of widget '[%s]' #. translators: refers to a signal '%s' of widget '[%s]'
#: ../gladeui/glade-project.c:2938 #: ../gladeui/glade-project.c:2941
#, c-format #, c-format
msgid "[%s] Signal '%s' of object class '%s' is deprecated" msgid "[%s] Signal '%s' of object class '%s' is deprecated"
msgstr "[%1$s] 对象类“%3$s”的信号“%2$s”已被弃用" msgstr "[%1$s] 对象类“%3$s”的信号“%2$s”已被弃用"
#: ../gladeui/glade-project.c:3234 #: ../gladeui/glade-project.c:3237
msgid "Details" msgid "Details"
msgstr "细节" msgstr "细节"
#: ../gladeui/glade-project.c:3249 #: ../gladeui/glade-project.c:3252
#, c-format #, c-format
msgid "Project \"%s\" has errors. Save anyway?" msgid "Project \"%s\" has errors. Save anyway?"
msgstr "项目“%s”有错误。仍然保存" msgstr "项目“%s”有错误。仍然保存"
#: ../gladeui/glade-project.c:3250 #: ../gladeui/glade-project.c:3253
#, c-format #, c-format
msgid "Project \"%s\" has deprecated widgets and/or version mismatches." msgid "Project \"%s\" has deprecated widgets and/or version mismatches."
msgstr "项目“%s”包含有废弃的组件和/或版本不匹配。" msgstr "项目“%s”包含有废弃的组件和/或版本不匹配。"
#: ../gladeui/glade-project.c:3277 #: ../gladeui/glade-project.c:3280
#, c-format #, c-format
msgid "Object %s has unrecognized type %s\n" msgid "Object %s has unrecognized type %s\n"
msgstr "对象 %s 为无法识别的类型 %s\n" msgstr "对象 %s 为无法识别的类型 %s\n"
#: ../gladeui/glade-project.c:4747 #: ../gladeui/glade-project.c:4750
#, c-format #, c-format
msgid "Unsaved %i" msgid "Unsaved %i"
msgstr "未保存的 %i" msgstr "未保存的 %i"
#: ../gladeui/glade-project.c:5046 ../gladeui/glade-project.c:5097 #: ../gladeui/glade-project.c:5049 ../gladeui/glade-project.c:5100
#: ../gladeui/glade-project.c:5254 #: ../gladeui/glade-project.c:5257
msgid "No widget selected." msgid "No widget selected."
msgstr "未选择组件。" msgstr "未选择组件。"
#: ../gladeui/glade-project.c:5062 #: ../gladeui/glade-project.c:5065
msgid "Unable to copy unrecognized widget type." msgid "Unable to copy unrecognized widget type."
msgstr "无法复制不识别的组件类。" msgstr "无法复制不识别的组件类。"
#: ../gladeui/glade-project.c:5094 #: ../gladeui/glade-project.c:5097
msgid "Unable to cut unrecognized widget type" msgid "Unable to cut unrecognized widget type"
msgstr "无法剪切不识别的组件类" msgstr "无法剪切不识别的组件类"
#: ../gladeui/glade-project.c:5146 #: ../gladeui/glade-project.c:5149
msgid "Unable to paste to the selected parent" msgid "Unable to paste to the selected parent"
msgstr "无法粘贴到上一级" msgstr "无法粘贴到上一级"
#: ../gladeui/glade-project.c:5157 #: ../gladeui/glade-project.c:5160
msgid "Unable to paste to multiple widgets" msgid "Unable to paste to multiple widgets"
msgstr "无法粘贴到多个组件" msgstr "无法粘贴到多个组件"
#: ../gladeui/glade-project.c:5167 #: ../gladeui/glade-project.c:5170
msgid "No widget on the clipboard" msgid "No widget on the clipboard"
msgstr "剪贴板上没有组件" msgstr "剪贴板上没有组件"
#: ../gladeui/glade-project.c:5212 #: ../gladeui/glade-project.c:5215
msgid "Only one widget can be pasted at a time to this container" msgid "Only one widget can be pasted at a time to this container"
msgstr "在该容器中每次只能粘贴一个组件" msgstr "在该容器中每次只能粘贴一个组件"
#: ../gladeui/glade-project.c:5224 #: ../gladeui/glade-project.c:5227
msgid "Insufficient amount of placeholders in target container" msgid "Insufficient amount of placeholders in target container"
msgstr "目标容器中没有足够的放置位置" msgstr "目标容器中没有足够的放置位置"

View File

@ -37,7 +37,8 @@ noinst_HEADERS = \
glade-resources.h \ glade-resources.h \
glade-preferences.h \ glade-preferences.h \
glade-logo.h \ glade-logo.h \
glade-registration.h glade-registration.h \
glade-http.h
# Generate resources # Generate resources
glade-resources.h: glade-resources.gresource.xml $(UI_FILES) glade-resources.h: glade-resources.gresource.xml $(UI_FILES)

View File

@ -62,7 +62,7 @@ enum
static GParamSpec *properties[N_PROPERTIES]; static GParamSpec *properties[N_PROPERTIES];
static guint http_signals[LAST_SIGNAL] = { 0 }; static guint http_signals[LAST_SIGNAL] = { 0 };
G_DEFINE_TYPE (GladeHTTP, glade_http, G_TYPE_OBJECT); G_DEFINE_TYPE_WITH_PRIVATE (GladeHTTP, glade_http, G_TYPE_OBJECT);
static void static void
glade_http_emit_request_done (GladeHTTP *http, gchar *response) glade_http_emit_request_done (GladeHTTP *http, gchar *response)
@ -133,11 +133,12 @@ static void
on_read_ready (GObject *source, GAsyncResult *res, gpointer data) on_read_ready (GObject *source, GAsyncResult *res, gpointer data)
{ {
GladeHTTPPrivate *priv = GLADE_HTTP (data)->priv; GladeHTTPPrivate *priv = GLADE_HTTP (data)->priv;
GError *error = NULL;
gssize bytes_read; gssize bytes_read;
glade_http_emit_status (data, GLADE_HTTP_RECEIVING, NULL); glade_http_emit_status (data, GLADE_HTTP_RECEIVING, NULL);
bytes_read = g_input_stream_read_finish (G_INPUT_STREAM (source), res, NULL); bytes_read = g_input_stream_read_finish (G_INPUT_STREAM (source), res, &error);
if (bytes_read > 0) if (bytes_read > 0)
{ {
@ -157,8 +158,8 @@ on_read_ready (GObject *source, GAsyncResult *res, gpointer data)
} }
else if (bytes_read < 0) else if (bytes_read < 0)
{ {
/* Read error */ glade_http_emit_status (data, GLADE_HTTP_ERROR, error);
g_message ("g_input_stream_read_finish error"); g_error_free (error);
return; return;
} }
@ -176,6 +177,11 @@ on_write_ready (GObject *source, GAsyncResult *res, gpointer data)
count = g_output_stream_write_finish (G_OUTPUT_STREAM (source), res, &error); count = g_output_stream_write_finish (G_OUTPUT_STREAM (source), res, &error);
if (error == NULL && priv->data->len != count)
error = g_error_new (G_IO_ERROR, G_IO_ERROR_FAILED,
"Error sending data data to %s",
priv->host);
if (error) if (error)
{ {
glade_http_emit_status (data, GLADE_HTTP_ERROR, error); glade_http_emit_status (data, GLADE_HTTP_ERROR, error);
@ -183,12 +189,6 @@ on_write_ready (GObject *source, GAsyncResult *res, gpointer data)
return; return;
} }
if (priv->data->len != count)
{
g_warning ("priv->data_size = %ld, write = %ld", priv->data->len, count);
return;
}
glade_http_emit_status (data, GLADE_HTTP_WAITING, NULL); glade_http_emit_status (data, GLADE_HTTP_WAITING, NULL);
g_input_stream_read_async (g_io_stream_get_input_stream (G_IO_STREAM (priv->connection)), g_input_stream_read_async (g_io_stream_get_input_stream (G_IO_STREAM (priv->connection)),
priv->response_buffer, HTTP_BUFFER_SIZE, priv->response_buffer, HTTP_BUFFER_SIZE,
@ -224,7 +224,7 @@ glade_http_init (GladeHTTP *http)
{ {
GladeHTTPPrivate *priv; GladeHTTPPrivate *priv;
priv = http->priv = G_TYPE_INSTANCE_GET_PRIVATE (http, GLADE_TYPE_HTTP, GladeHTTPPrivate); priv = http->priv = glade_http_get_instance_private (http);
priv->data = g_string_new (""); priv->data = g_string_new ("");
priv->response = g_string_new (""); priv->response = g_string_new ("");
@ -316,8 +316,6 @@ glade_http_class_init (GladeHTTPClass *klass)
{ {
GObjectClass *object_class = G_OBJECT_CLASS (klass); GObjectClass *object_class = G_OBJECT_CLASS (klass);
g_type_class_add_private (klass, sizeof (GladeHTTPPrivate));
object_class->finalize = glade_http_finalize; object_class->finalize = glade_http_finalize;
object_class->set_property = glade_http_set_property; object_class->set_property = glade_http_set_property;
object_class->get_property = glade_http_get_property; object_class->get_property = glade_http_get_property;
@ -377,7 +375,7 @@ glade_http_get_host (GladeHTTP *http)
gint gint
glade_http_get_port (GladeHTTP *http) glade_http_get_port (GladeHTTP *http)
{ {
g_return_val_if_fail (GLADE_IS_HTTP (http), NULL); g_return_val_if_fail (GLADE_IS_HTTP (http), 0);
return http->priv->port; return http->priv->port;
} }

View File

@ -82,7 +82,7 @@ gint glade_http_get_port (GladeHTTP *http);
void glade_http_request_send_async (GladeHTTP *http, void glade_http_request_send_async (GladeHTTP *http,
GCancellable *cancellable, GCancellable *cancellable,
const gchar *format, const gchar *format,
...); ...) G_GNUC_PRINTF (3, 4);
G_END_DECLS G_END_DECLS
#endif /* _GLADE_HTTP_H_ */ #endif /* _GLADE_HTTP_H_ */

View File

@ -26,6 +26,8 @@
#include <gladeui/glade.h> #include <gladeui/glade.h>
#include <glib/gi18n.h> #include <glib/gi18n.h>
#define CONFIG_GROUP "User & Survey"
struct _GladeRegistrationPrivate struct _GladeRegistrationPrivate
{ {
GtkWidget *infobar; GtkWidget *infobar;
@ -100,6 +102,12 @@ struct _GladeRegistrationPrivate
G_DEFINE_TYPE_WITH_PRIVATE (GladeRegistration, glade_registration, GTK_TYPE_DIALOG); G_DEFINE_TYPE_WITH_PRIVATE (GladeRegistration, glade_registration, GTK_TYPE_DIALOG);
enum
{
PROP_0,
PROP_COMPLETED,
PROP_SKIP_REMINDER
};
static void static void
string_append_input_key_value_tuple (GString *string, string_append_input_key_value_tuple (GString *string,
@ -141,6 +149,12 @@ string_append_input_key_value_tuple (GString *string,
g_string_append_printf (string, "%d", gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (input)) ? 1 : 0); g_string_append_printf (string, "%d", gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (input)) ? 1 : 0);
} }
static void
glade_registration_show_message (GladeRegistration *registration,
GtkMessageType type,
const gchar *format,
...) G_GNUC_PRINTF (3, 4);
static void static void
glade_registration_show_message (GladeRegistration *registration, glade_registration_show_message (GladeRegistration *registration,
GtkMessageType type, GtkMessageType type,
@ -250,7 +264,7 @@ glade_registration_http_post (GladeRegistration *registration,
"Accept: text/plain\r\n" "Accept: text/plain\r\n"
"Accept-Language: %s\r\n" "Accept-Language: %s\r\n"
"Content-Type: application/x-www-form-urlencoded\r\n" "Content-Type: application/x-www-form-urlencoded\r\n"
"Content-Length: %d\r\n" "Content-Length: %"G_GSIZE_FORMAT"\r\n"
"\r\n%s", "\r\n%s",
url, /* POST url */ url, /* POST url */
glade_http_get_host (http), /* Host */ glade_http_get_host (http), /* Host */
@ -401,6 +415,9 @@ on_http_request_done (GladeHTTP *http,
glade_util_ui_message (GTK_WIDGET (registration), GLADE_UI_INFO, NULL, glade_util_ui_message (GTK_WIDGET (registration), GLADE_UI_INFO, NULL,
"<big>%s</big>", _("Thank you for taking the time to complete the survey, we appreciate it!")); "<big>%s</big>", _("Thank you for taking the time to complete the survey, we appreciate it!"));
gtk_widget_hide (GTK_WIDGET (registration)); gtk_widget_hide (GTK_WIDGET (registration));
g_object_set (registration, "completed", TRUE, NULL);
glade_app_config_save ();
} }
else if (g_strcmp0 (status, "error_required_field") == 0) else if (g_strcmp0 (status, "error_required_field") == 0)
glade_registration_show_message (registration, GTK_MESSAGE_INFO, glade_registration_show_message (registration, GTK_MESSAGE_INFO,
@ -519,7 +536,7 @@ on_registration_dialog_response (GtkDialog *dialog, gint response_id)
glade_registration_http_post (GLADE_REGISTRATION (dialog), glade_registration_http_post (GLADE_REGISTRATION (dialog),
priv->http, priv->http,
priv->cancellable, priv->cancellable,
"/~jpu/glade/registration_master.php", "/~jpu/glade/registration.php",
post); post);
g_string_free (post, TRUE); g_string_free (post, TRUE);
@ -644,6 +661,42 @@ glade_registration_finalize (GObject *object)
G_OBJECT_CLASS (glade_registration_parent_class)->finalize (object); G_OBJECT_CLASS (glade_registration_parent_class)->finalize (object);
} }
static void
glade_registration_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec)
{
GKeyFile *config = glade_app_get_config ();
g_return_if_fail (GLADE_IS_REGISTRATION (object));
switch (prop_id)
{
case PROP_SKIP_REMINDER:
case PROP_COMPLETED:
g_key_file_set_boolean (config, CONFIG_GROUP, pspec->name, g_value_get_boolean (value));
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
}
}
static void
glade_registration_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec)
{
GKeyFile *config = glade_app_get_config ();
g_return_if_fail (GLADE_IS_REGISTRATION (object));
switch (prop_id)
{
case PROP_SKIP_REMINDER:
case PROP_COMPLETED:
g_value_set_boolean (value, g_key_file_get_boolean (config, CONFIG_GROUP, pspec->name, NULL));
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
}
}
static void static void
glade_registration_class_init (GladeRegistrationClass *klass) glade_registration_class_init (GladeRegistrationClass *klass)
{ {
@ -722,6 +775,24 @@ glade_registration_class_init (GladeRegistrationClass *klass)
gtk_widget_class_bind_template_callback (widget_class, on_viewport_draw); gtk_widget_class_bind_template_callback (widget_class, on_viewport_draw);
object_class->finalize = glade_registration_finalize; object_class->finalize = glade_registration_finalize;
object_class->set_property = glade_registration_set_property;
object_class->get_property = glade_registration_get_property;
g_object_class_install_property (object_class,
PROP_COMPLETED,
g_param_spec_boolean ("completed",
"Completed",
"Registration was completed successfully",
FALSE,
G_PARAM_READWRITE));
g_object_class_install_property (object_class,
PROP_SKIP_REMINDER,
g_param_spec_boolean ("skip-reminder",
"Skip reminder",
"Skip registration reminder dialog",
FALSE,
G_PARAM_READWRITE));
} }
GtkWidget* GtkWidget*

View File

@ -70,6 +70,7 @@
#define CONFIG_KEY_SHOW_TABS "show-tabs" #define CONFIG_KEY_SHOW_TABS "show-tabs"
#define CONFIG_KEY_SHOW_STATUS "show-statusbar" #define CONFIG_KEY_SHOW_STATUS "show-statusbar"
#define CONFIG_KEY_EDITOR_HEADER "show-editor-header" #define CONFIG_KEY_EDITOR_HEADER "show-editor-header"
#define CONFIG_KEY_PALETTE "palette-appearance"
#define CONFIG_GROUP_LOAD_SAVE "Load and Save" #define CONFIG_GROUP_LOAD_SAVE "Load and Save"
#define CONFIG_KEY_BACKUP "backup" #define CONFIG_KEY_BACKUP "backup"
@ -115,6 +116,7 @@ struct _GladeWindowPrivate
GladeEditor *editor; /* The editor */ GladeEditor *editor; /* The editor */
GtkWidget *statusbar; /* A pointer to the status bar. */ GtkWidget *statusbar; /* A pointer to the status bar. */
guint statusbar_context_id; /* The context id of general messages */
guint statusbar_menu_context_id; /* The context id of the menu bar */ guint statusbar_menu_context_id; /* The context id of the menu bar */
guint statusbar_actions_context_id; /* The context id of actions messages */ guint statusbar_actions_context_id; /* The context id of actions messages */
@ -2545,12 +2547,7 @@ static void
on_registration_action_activate (GtkAction *action, on_registration_action_activate (GtkAction *action,
GladeWindow *window) GladeWindow *window)
{ {
GladeWindowPrivate *priv = window->priv; gtk_window_present (GTK_WINDOW (window->priv->registration));
if (!priv->registration)
priv->registration = glade_registration_new ();
gtk_window_present (GTK_WINDOW (priv->registration));
} }
void void
@ -2850,6 +2847,9 @@ save_windows_config (GladeWindow *window, GKeyFile *config)
g_key_file_set_boolean (config, CONFIG_GROUP_WINDOWS, CONFIG_KEY_EDITOR_HEADER, g_key_file_set_boolean (config, CONFIG_GROUP_WINDOWS, CONFIG_KEY_EDITOR_HEADER,
gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (priv->editor_header_visible_action))); gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (priv->editor_header_visible_action)));
g_key_file_set_integer (config, CONFIG_GROUP_WINDOWS, CONFIG_KEY_PALETTE,
gtk_radio_action_get_current_value (GTK_RADIO_ACTION (priv->icons_and_labels_radioaction)));
} }
static void static void
@ -2999,6 +2999,7 @@ glade_window_config_load (GladeWindow *window)
{ {
GKeyFile *config = glade_app_get_config (); GKeyFile *config = glade_app_get_config ();
gboolean show_toolbar, show_tabs, show_status, show_header; gboolean show_toolbar, show_tabs, show_status, show_header;
gint palette_appearance;
GladeWindowPrivate *priv = window->priv; GladeWindowPrivate *priv = window->priv;
GError *error = NULL; GError *error = NULL;
@ -3042,6 +3043,15 @@ glade_window_config_load (GladeWindow *window)
error = (g_error_free (error), NULL); error = (g_error_free (error), NULL);
} }
if ((palette_appearance =
g_key_file_get_integer (config, CONFIG_GROUP_WINDOWS,
CONFIG_KEY_PALETTE, &error)) == 0 &&
error != NULL)
{
palette_appearance = 1; /* Default to icons */
error = (g_error_free (error), NULL);
}
if (show_toolbar) if (show_toolbar)
gtk_widget_show (priv->toolbar); gtk_widget_show (priv->toolbar);
else else
@ -3065,6 +3075,8 @@ glade_window_config_load (GladeWindow *window)
gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (priv->editor_header_visible_action), show_header); gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (priv->editor_header_visible_action), show_header);
gtk_radio_action_set_current_value (GTK_RADIO_ACTION (priv->icons_and_labels_radioaction), palette_appearance);
/* Paned positions */ /* Paned positions */
load_paned_position (config, window->priv->left_paned, "left_pane", 200); load_paned_position (config, window->priv->left_paned, "left_pane", 200);
load_paned_position (config, window->priv->center_paned, "center_pane", 400); load_paned_position (config, window->priv->center_paned, "center_pane", 400);
@ -3176,6 +3188,8 @@ glade_window_init (GladeWindow *window)
glade_init (); glade_init ();
gtk_widget_init_template (GTK_WIDGET (window)); gtk_widget_init_template (GTK_WIDGET (window));
priv->registration = glade_registration_new ();
} }
static void static void
@ -3220,6 +3234,7 @@ glade_window_constructed (GObject *object)
_("Properties"), "properties", priv->right_paned, FALSE); _("Properties"), "properties", priv->right_paned, FALSE);
/* status bar */ /* status bar */
priv->statusbar_context_id = gtk_statusbar_get_context_id (GTK_STATUSBAR (priv->statusbar), "general");
priv->statusbar_menu_context_id = gtk_statusbar_get_context_id (GTK_STATUSBAR (priv->statusbar), "menu"); priv->statusbar_menu_context_id = gtk_statusbar_get_context_id (GTK_STATUSBAR (priv->statusbar), "menu");
priv->statusbar_actions_context_id = gtk_statusbar_get_context_id (GTK_STATUSBAR (priv->statusbar), "actions"); priv->statusbar_actions_context_id = gtk_statusbar_get_context_id (GTK_STATUSBAR (priv->statusbar), "actions");
@ -3452,3 +3467,57 @@ glade_window_check_devhelp (GladeWindow *window)
if (glade_util_have_devhelp ()) if (glade_util_have_devhelp ())
g_signal_connect (glade_app_get (), "doc-search", G_CALLBACK (doc_search_cb), window); g_signal_connect (glade_app_get (), "doc-search", G_CALLBACK (doc_search_cb), window);
} }
void
glade_window_registration_notify_user (GladeWindow *window)
{
gboolean skip_reminder, completed;
GladeWindowPrivate *priv;
g_return_if_fail (GLADE_IS_WINDOW (window));
priv = window->priv;
g_object_get (priv->registration,
"completed", &completed,
"skip-reminder", &skip_reminder,
NULL);
if (!completed && !skip_reminder)
{
GtkWidget *dialog, *check;
dialog = gtk_message_dialog_new (GTK_WINDOW (glade_app_get_window ()),
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_QUESTION,
GTK_BUTTONS_YES_NO,
"%s",
/* translators: Primary message of a dialog used to notify the user about the survey */
_("We are conducting a user survey\n would you like to take it now?"));
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), "%s",
/* translators: Secondary text of a dialog used to notify the user about the survey */
_("If not, you can always find it in the Help menu."));
check = gtk_check_button_new_with_mnemonic (_("_Do not show this dialog again"));
gtk_box_pack_end (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
check, FALSE, FALSE, 0);
gtk_widget_set_halign (check, GTK_ALIGN_START);
gtk_widget_set_margin_start (check, 6);
gtk_widget_show (check);
if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_YES)
gtk_window_present (GTK_WINDOW (priv->registration));
if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (check)))
{
g_object_set (priv->registration, "skip-reminder", TRUE, NULL);
glade_app_config_save ();
}
gtk_widget_destroy (dialog);
}
else if (!completed)
glade_util_flash_message (priv->statusbar, priv->statusbar_context_id, "%s",
/* translators: Text to show in the statusbar if the user did not completed the survey and choose not to show the notification dialog again */
_("Go to Help -> Registration & User Survey and complete our survey!"));
}

View File

@ -59,6 +59,8 @@ gboolean glade_window_open_project (GladeWindow *window,
void glade_window_check_devhelp (GladeWindow *window); void glade_window_check_devhelp (GladeWindow *window);
void glade_window_registration_notify_user (GladeWindow *window);
G_END_DECLS G_END_DECLS
#endif /* __GLADE_WINDOW_H__ */ #endif /* __GLADE_WINDOW_H__ */

View File

@ -198,6 +198,8 @@ main (int argc, char *argv[])
if (!opened_project) if (!opened_project)
glade_window_new_project (window); glade_window_new_project (window);
glade_window_registration_notify_user (window);
gtk_main (); gtk_main ();
return 0; return 0;

View File

@ -76,6 +76,13 @@ test_create_widget (gconstpointer data)
g_assert (object_finalized); g_assert (object_finalized);
} }
static gint
adaptor_cmp (gconstpointer a, gconstpointer b)
{
return g_strcmp0 (glade_widget_adaptor_get_name ((gpointer)a),
glade_widget_adaptor_get_name ((gpointer)b));
}
int int
main (int argc, main (int argc,
char *argv[]) char *argv[])
@ -87,7 +94,7 @@ main (int argc,
glade_init (); glade_init ();
glade_app_get (); glade_app_get ();
adaptors = glade_widget_adaptor_list_adaptors (); adaptors = g_list_sort (glade_widget_adaptor_list_adaptors (), adaptor_cmp);
for (l = adaptors; l; l = l->next) for (l = adaptors; l; l = l->next)
{ {
@ -97,12 +104,8 @@ main (int argc,
adaptor_type = glade_widget_adaptor_get_object_type (adaptor); adaptor_type = glade_widget_adaptor_get_object_type (adaptor);
if (G_TYPE_IS_INSTANTIATABLE (adaptor_type) && !G_TYPE_IS_ABSTRACT (adaptor_type) && if (G_TYPE_IS_INSTANTIATABLE (adaptor_type) && !G_TYPE_IS_ABSTRACT (adaptor_type) &&
/* FIXME: Status Icon crashes at dispose time unrealizing it's GtkTrayIcon without a window */
adaptor_type != GTK_TYPE_STATUS_ICON &&
/* FIXME: FileChooserButton leaks a GTask which will crash in the following test */ /* FIXME: FileChooserButton leaks a GTask which will crash in the following test */
adaptor_type != GTK_TYPE_FILE_CHOOSER_BUTTON && adaptor_type != GTK_TYPE_FILE_CHOOSER_BUTTON &&
/* FIXME: App choosers leak some async operations after finalization, causing subsequent tests to fail */
!g_type_is_a (adaptor_type, GTK_TYPE_APP_CHOOSER) &&
/* FIXME: GtkRecentChooser tries to remove an unknown source id */ /* FIXME: GtkRecentChooser tries to remove an unknown source id */
!g_type_is_a (adaptor_type, GTK_TYPE_RECENT_CHOOSER)) !g_type_is_a (adaptor_type, GTK_TYPE_RECENT_CHOOSER))
{ {