~ci-train-bot/unity-gtk-module/unity-gtk-module-ubuntu-artful-2909

« back to all changes in this revision

Viewing changes to src/main.c

  • Committer: CI bot
  • Author(s): Robert Ancell
  • Date: 2014-06-18 10:10:50 UTC
  • mfrom: (326.1.3 check-for-x11)
  • Revision ID: ps-jenkins@lists.canonical.com-20140618101050-9lg8bwurwrotjwh9
Handle not using the X11 backend 

Show diffs side-by-side

added added

removed removed

Lines of Context:
820
820
{
821
821
  const gchar *proxy = g_getenv ("UBUNTU_MENUPROXY");
822
822
 
 
823
  /* We only support X11 */
 
824
#if GTK_MAJOR_VERSION == 3
 
825
  if (!GDK_IS_X11_DISPLAY (gdk_display_get_default ()))
 
826
    return;
 
827
#endif
 
828
 
823
829
  if ((proxy == NULL || is_true (proxy)) && !is_blacklisted (g_get_prgname ()))
824
830
    {
825
831
      GtkWidgetClass *widget_class;