aboutsummaryrefslogtreecommitdiff
path: root/tests/test-dbus-listener.cc
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-01-17 15:07:08 -0600
committerCharles Kerr <charles.kerr@canonical.com>2013-01-17 15:07:08 -0600
commit5535cc541da4b436c662bef27589f5b929ed982e (patch)
tree58ffa067227d0a1e6b58a6055a49f4aa3a11be5d /tests/test-dbus-listener.cc
parent06c8a32dc8fdb3150bed5db3d8ee5919f070a810 (diff)
downloadayatana-indicator-power-5535cc541da4b436c662bef27589f5b929ed982e.tar.gz
ayatana-indicator-power-5535cc541da4b436c662bef27589f5b929ed982e.tar.bz2
ayatana-indicator-power-5535cc541da4b436c662bef27589f5b929ed982e.zip
remove g_type_init() calls and bump glib minimum to 2.35.4, where g_type_init() is deprecated
Diffstat (limited to 'tests/test-dbus-listener.cc')
-rw-r--r--tests/test-dbus-listener.cc19
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/test-dbus-listener.cc b/tests/test-dbus-listener.cc
index 8bf74bf..7764498 100644
--- a/tests/test-dbus-listener.cc
+++ b/tests/test-dbus-listener.cc
@@ -26,24 +26,6 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
****
***/
-namespace
-{
- void ensure_glib_initialized ()
- {
- static bool initialized = false;
-
- if (G_UNLIKELY(!initialized))
- {
- initialized = true;
- g_type_init();
- }
- }
-}
-
-/***
-****
-***/
-
class DbusListenerTest : public ::testing::Test
{
protected:
@@ -138,7 +120,6 @@ class DbusListenerTest : public ::testing::Test
gsd_power_error_string = NULL;
// bring up the test bus
- ensure_glib_initialized ();
mainloop = g_main_loop_new (NULL, FALSE);
bus = g_test_dbus_new (G_TEST_DBUS_NONE);
g_test_dbus_up (bus);