~dbusmenu-team/libdbusmenu/trunk.16.10

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: CI Train Bot
  • Author(s): Dan Williams
  • Date: 2016-02-23 23:20:40 UTC
  • mfrom: (477.2.2 libdbusmenu)
  • Revision ID: ci-train-bot@canonical.com-20160223232040-tffvk3y0pll2idgp
gtk: look for GtkImages on regular GtkMenuItems too

GtkImageMenuItem is deprecated, and the recommended replacement
is a normal GtkMenuItem packed manually with a label and an image.
To ensure applications that use recommended GTK practices can still
show menu item images, check the children of a normal GtkMenuItem
for a GtkImage too, just like is done for the label child. Fixes: #1549021
Approved by: Marco Trevisan (Treviño)

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
                                         glib-2.0 >= $GLIB_REQUIRED_VERSION,
68
68
                                         [have_gtk=yes]
69
69
)
70
 
         AC_DEFINE(HAVE_GTK3, 1, [whether gtk3 is available])
71
70
        ],
72
71
      [test "x$with_gtk" = x2],
73
72
        [PKG_CHECK_MODULES(DBUSMENUGTK,  gtk+-2.0 >= $GTK_REQUIRED_VERSION