summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan@upstairslabs.com>2014-10-23 17:16:50 +0900
committerTristan Van Berkom <tristan@upstairslabs.com>2014-10-23 17:16:50 +0900
commita7c536dc3db2560a0767a25d9904f68e3b8a47f4 (patch)
treec8d856c64b8f15bff88fce9679c9bd3fec6b83ac
parent2d6b1bd61ce05988df2d7cd67444625227912bb7 (diff)
downloadglade-a7c536dc3db2560a0767a25d9904f68e3b8a47f4.tar.gz
glade-gtk-window.c: Reuse translatable string
Avoid the possibility of translatable string redundancy.
-rw-r--r--plugins/gtk+/glade-gtk-window.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/plugins/gtk+/glade-gtk-window.c b/plugins/gtk+/glade-gtk-window.c
index 30e4cfd4..2d7fde4d 100644
--- a/plugins/gtk+/glade-gtk-window.c
+++ b/plugins/gtk+/glade-gtk-window.c
@@ -36,6 +36,8 @@
#define GLADE_TAG_ACCEL_GROUPS "accel-groups"
#define GLADE_TAG_ACCEL_GROUP "group"
+#define CSD_DISABLED_MESSAGE _("This property does not apply to client-side decorated windows")
+
#if !GTK_CHECK_VERSION (3,15,0)
static void check_titlebar (GtkWidget *widget, gpointer data)
{
@@ -260,12 +262,9 @@ glade_gtk_window_set_property (GladeWidgetAdaptor * adaptor,
g_object_set_data (G_OBJECT (titlebar), "special-child-type", "titlebar");
gtk_window_set_titlebar (GTK_WINDOW (object), titlebar);
- glade_widget_property_set_sensitive (gwidget, "title", FALSE,
- _("This property does not apply to client-side decorated windows"));
- glade_widget_property_set_sensitive (gwidget, "decorated", FALSE,
- _("This property does not apply to client-side decorated windows"));
- glade_widget_property_set_sensitive (gwidget, "hide-titlebar-when-maximized", FALSE,
- _("This property does not apply to client-side decorated windows"));
+ glade_widget_property_set_sensitive (gwidget, "title", FALSE, CSD_DISABLED_MESSAGE);
+ glade_widget_property_set_sensitive (gwidget, "decorated", FALSE, CSD_DISABLED_MESSAGE);
+ glade_widget_property_set_sensitive (gwidget, "hide-titlebar-when-maximized", FALSE, CSD_DISABLED_MESSAGE);
}
else
{