Skip to content
Browse files

Add a check for clutter-x11

Check that clutter-x11 is available before using the X11 API.
  • Loading branch information...
1 parent 864aad9 commit 698f82e31f4289c7ffeab76afafbeb06cbae5905 @thos thos committed May 25, 2011
Showing with 7 additions and 0 deletions.
  1. +5 −0 configure.ac
  2. +2 −0 shell/mex-main.c
View
5 configure.ac
@@ -309,6 +309,11 @@ PKG_CHECK_EXISTS(clutter-cex100-1.0, [AC_DEFINE(HAVE_CLUTTER_CEX100,
[Defined if we are on CEX100])],
[])
+PKG_CHECK_EXISTS(clutter-x11-1.0, [AC_DEFINE(HAVE_CLUTTER_X11,
+ [1],
+ [Defined if we are on X11])],
+ [])
+
# Default list of plugins to compile
WITH_PLUGINS="search,queue,tracker"
View
2 shell/mex-main.c
@@ -2051,6 +2051,7 @@ _close_screen_dialog_cb (MxAction *action, gpointer user_data)
static void
check_resolution (MexData *data)
{
+#if HAVE_CLUTTER_X11
Screen *screen;
ClutterActor *dialog, *layout, *title, *label;
MxAction *action;
@@ -2089,6 +2090,7 @@ check_resolution (MexData *data)
clutter_actor_show (dialog);
mx_dialog_set_transient_parent (MX_DIALOG (dialog), CLUTTER_ACTOR (data->stage));
mex_push_focus (MX_FOCUSABLE (dialog));
+#endif
}
static void

0 comments on commit 698f82e

Please sign in to comment.
Something went wrong with that request. Please try again.