diff options
| author | Sam Spilsbury <sam.spilsbury@canonical.com> | 2011-06-24 12:35:33 +0800 |
|---|---|---|
| committer | Sam Spilsbury <sam.spilsbury@canonical.com> | 2011-06-24 12:35:33 +0800 |
| commit | be78be4372f7ecdce41d4f6ad6c429d27ceea720 (patch) | |
| tree | 7f809822cea15922f166e267dff2c999a15741dd /plugins/unitydialog | |
| parent | 0597b186ae65820293b53b1511c2aa9cbc6b0468 (diff) | |
Add GTK3 Workraround
(bzr r1255.1.2)
Diffstat (limited to 'plugins/unitydialog')
| -rw-r--r-- | plugins/unitydialog/src/unitydialog.cpp | 13 | ||||
| -rw-r--r-- | plugins/unitydialog/unitydialog.xml.in | 1 |
2 files changed, 2 insertions, 12 deletions
diff --git a/plugins/unitydialog/src/unitydialog.cpp b/plugins/unitydialog/src/unitydialog.cpp index c852f0878..e1ea9793f 100644 --- a/plugins/unitydialog/src/unitydialog.cpp +++ b/plugins/unitydialog/src/unitydialog.cpp @@ -1141,22 +1141,11 @@ UnityDialogScreen::~UnityDialogScreen () bool UnityDialogPluginVTable::init () -{ - int (*old_handler) (Display *, XErrorEvent *); - old_handler = XSetErrorHandler (NULL); - +{ if (!CompPlugin::checkPluginABI ("core", CORE_ABIVERSION) || !CompPlugin::checkPluginABI ("composite", COMPIZ_COMPOSITE_ABI) || !CompPlugin::checkPluginABI ("opengl", COMPIZ_OPENGL_ABI)) return false; - if (!gtk_init_check (&programArgc, &programArgv)) - { - compLogMessage ("unitydialog", CompLogLevelError, "Couldn't initialize gtk"); - return false; - } - - XSetErrorHandler (old_handler); - return true; } diff --git a/plugins/unitydialog/unitydialog.xml.in b/plugins/unitydialog/unitydialog.xml.in index bb0a40d46..42d9cf024 100644 --- a/plugins/unitydialog/unitydialog.xml.in +++ b/plugins/unitydialog/unitydialog.xml.in @@ -7,6 +7,7 @@ <requirement> <plugin>composite</plugin> <plugin>opengl</plugin> + <plugin>gtkloader</plugin> </requirement> <relation type="after"> <plugin>decor</plugin> |
