summaryrefslogtreecommitdiff
path: root/vcl/unx/gtk/window
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2012-11-22 12:12:19 +0000
committerMichael Meeks <michael.meeks@suse.com>2012-11-22 12:13:21 +0000
commit37abb0b9ef0c29796ca08b68073e150874c73e6c (patch)
treed03c753628129e4d2530ea9cde9799c0ddbc371e /vcl/unx/gtk/window
parentc90f5c66512f35025d7ecc6ad5eae9ccef6c1290 (diff)
add version string to GtkWindow's to help theme authors.
Change-Id: I3b03dc67de563e5d87fb85c0566fc411e372c690
Diffstat (limited to 'vcl/unx/gtk/window')
-rw-r--r--vcl/unx/gtk/window/gtkframe.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/vcl/unx/gtk/window/gtkframe.cxx b/vcl/unx/gtk/window/gtkframe.cxx
index 5736413d58d5..fdc729029397 100644
--- a/vcl/unx/gtk/window/gtkframe.cxx
+++ b/vcl/unx/gtk/window/gtkframe.cxx
@@ -56,6 +56,7 @@
#include <basegfx/vector/b2ivector.hxx>
#include <algorithm>
+#include <glib/gprintf.h>
#if OSL_DEBUG_LEVEL > 1
# include <cstdio>
@@ -1065,9 +1066,15 @@ void GtkSalFrame::Init( SalFrame* pParent, sal_uLong nStyle )
}
}
else
- m_pWindow = gtk_widget_new( GTK_TYPE_WINDOW, "type", eWinType, "visible", FALSE, NULL );
+ m_pWindow = gtk_widget_new( GTK_TYPE_WINDOW, "type", eWinType,
+ "visible", FALSE, NULL );
g_object_set_data( G_OBJECT( m_pWindow ), "SalFrame", this );
+ static char pVersion[16] = "";
+ if( pVersion[0] == '\0' )
+ g_sprintf( pVersion, "%d", SUPD );
+ g_object_set_data( G_OBJECT( m_pWindow ), "libo-version", pVersion );
+
// force wm class hint
m_nExtStyle = ~0;
if (m_pParent)