summaryrefslogtreecommitdiff
path: root/src/gpm-backlight-helper.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-12-16 11:41:16 +0100
committerinfirit <[email protected]>2014-12-16 11:41:23 +0100
commit18e079201d970b6402b56ef0c0b2a01496ff582e (patch)
tree16345619b02998e01e0bc96aff55bb8bded20efa /src/gpm-backlight-helper.c
parentaa3fddae5911b6827587b388f20aa88849721624 (diff)
downloadmate-power-manager-18e079201d970b6402b56ef0c0b2a01496ff582e.tar.bz2
mate-power-manager-18e079201d970b6402b56ef0c0b2a01496ff582e.tar.xz
We agreed to target Glib 2.32
Diffstat (limited to 'src/gpm-backlight-helper.c')
-rw-r--r--src/gpm-backlight-helper.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpm-backlight-helper.c b/src/gpm-backlight-helper.c
index 4350f16..07ad25f 100644
--- a/src/gpm-backlight-helper.c
+++ b/src/gpm-backlight-helper.c
@@ -178,6 +178,11 @@ main (gint argc, gchar *argv[])
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
+#if !GLIB_CHECK_VERSION(2,36,0)
+ /* setup type system */
+ g_type_init ();
+#endif
+
context = g_option_context_new (NULL);
/* TRANSLATORS: tool that is used when copying profiles system-wide */
g_option_context_set_summary (context, _("MATE Power Manager Backlight Helper"));