summaryrefslogtreecommitdiff
path: root/src/gpm-statistics.c
diff options
context:
space:
mode:
authorSteve Zesch <[email protected]>2012-03-17 19:28:51 -0400
committerSteve Zesch <[email protected]>2012-03-17 19:28:51 -0400
commite23ae76053f8c1f7cedd4c2879e23c2da91b83cc (patch)
tree63162da7542e910b856ddf6eda98d260d4fc521d /src/gpm-statistics.c
parentccfcf2483ffb52d0af9caaf52db4be44ec6ac160 (diff)
downloadmate-power-manager-e23ae76053f8c1f7cedd4c2879e23c2da91b83cc.tar.bz2
mate-power-manager-e23ae76053f8c1f7cedd4c2879e23c2da91b83cc.tar.xz
Temporary hack to fix GtkComboBoxText issue.
Diffstat (limited to 'src/gpm-statistics.c')
-rw-r--r--src/gpm-statistics.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gpm-statistics.c b/src/gpm-statistics.c
index ef1b8f0..d526617 100644
--- a/src/gpm-statistics.c
+++ b/src/gpm-statistics.c
@@ -1601,7 +1601,12 @@ main (int argc, char *argv[])
/* get UI */
builder = gtk_builder_new ();
- retval = gtk_builder_add_from_file (builder, GPM_DATA "/gpm-statistics.ui", &error);
+
+ #if GTK_CHECK_VERSION (2, 24, 0)
+ retval = gtk_builder_add_from_file (builder, GPM_DATA "/gpm-statistics-fix.ui", &error);
+ #else
+ retval = gtk_builder_add_from_file (builder, GPM_DATA "/gpm-statistics.ui", &error);
+ #endif
if (retval == 0) {
egg_warning ("failed to load ui: %s", error->message);
g_error_free (error);