From e23ae76053f8c1f7cedd4c2879e23c2da91b83cc Mon Sep 17 00:00:00 2001 From: Steve Zesch Date: Sat, 17 Mar 2012 19:28:51 -0400 Subject: Temporary hack to fix GtkComboBoxText issue. --- data/gpm-statistics-fix.ui | 505 +++++++++++++++++++++++++++++++++++++++++++++ src/gpm-statistics.c | 7 +- 2 files changed, 511 insertions(+), 1 deletion(-) create mode 100644 data/gpm-statistics-fix.ui diff --git a/data/gpm-statistics-fix.ui b/data/gpm-statistics-fix.ui new file mode 100644 index 0000000..80f3b9b --- /dev/null +++ b/data/gpm-statistics-fix.ui @@ -0,0 +1,505 @@ + + + + + + 6 + Power Statistics + center-on-parent + dialog + False + + + True + vertical + 2 + + + True + 6 + 6 + + + True + True + never + automatic + in + + + True + True + False + + + + + False + 0 + + + + + True + True + + + True + True + 9 + automatic + automatic + in + + + True + True + + + + + + + True + Details + + + False + + + + + True + cursor + 9 + vertical + 9 + + + True + 12 + + + True + 6 + + + True + Graph type: + + + False + 0 + + + + + True + + + 1 + + + + + 0 + + + + + True + 6 + + + True + Data length: + + + False + 0 + + + + + True + + + 1 + + + + + 1 + + + + + False + 0 + + + + + True + vertical + + + True + 6 + + + True + y-axis + 90 + + + False + 0 + + + + + True + There is no data to display. + + + 1 + + + + + 0 + + + + + True + x-axis + + + False + 1 + + + + + 1 + + + + + True + 6 + True + + + Use smoothed line + True + True + False + True + + + False + 0 + + + + + Show data points + True + True + False + True + + + False + 1 + + + + + False + 2 + + + + + 1 + + + + + True + History + + + 1 + False + + + + + True + cursor + 9 + vertical + 9 + + + True + 6 + + + True + Graph type: + + + False + 0 + + + + + True + + + 1 + + + + + False + 0 + + + + + True + vertical + + + True + 6 + + + True + y-axis + 90 + + + False + 0 + + + + + True + There is no data to display. + + + 1 + + + + + 0 + + + + + True + x-axis + + + False + 1 + + + + + 3 + 1 + + + + + True + 6 + True + + + Use smoothed line + True + True + False + True + + + False + 0 + + + + + Show data points + True + True + False + True + + + False + 1 + + + + + False + 2 + + + + + 2 + + + + + True + Statistics + + + 2 + False + + + + + True + 9 + vertical + 9 + + + True + 3 + + + True + Processor wakeups per second: + + + False + 0 + + + + + True + 0 + + + False + 1 + + + + + False + 0 + + + + + True + True + automatic + automatic + in + + + True + True + + + + + 1 + + + + + 3 + + + + + True + Wakeups + + + 3 + False + + + + + 1 + + + + + 1 + + + + + True + end + + + gtk-help + True + True + True + False + True + + + False + False + 0 + True + + + + + gtk-close + True + True + True + False + True + + + False + False + 1 + + + + + False + end + 0 + + + + + + button_help + button_close + + + 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); -- cgit v1.2.1