Opened 8 years ago

Closed 8 years ago

#7482 closed defect (fixed)

libreoffice now prefers gtk3

Reported by: ken@… Owned by: ken@…
Priority: normal Milestone: 7.9
Component: BOOK Version: SVN
Severity: normal Keywords:
Cc:

Description

While looking at a spreadsheet in calc, I noticed that the icons looked gtk3-ish. Checking through the libs in /usr/lib/libreoffice/program/*.so I found that the references to gtk were for /usr/lib/libgtk-3.so.0 (gtk3) and /usr/lib/libgtk-x11-2.0.so.0 (gtk2).

The autogen script is just a perl fromt-end to configure, and there I see two relevant hunks. The first shows it will default to gtk3 if no option is given:

# Check whether --enable-gtk3 was given.
if test "${enable_gtk3+set}" = set; then :
  enableval=$enable_gtk3;
else
  enable_gtk3=yes
fi

The second shows gtk3 needs system cairo, otherwise it will presumably fallback to gtk2:

if test "$USING_X11" != TRUE; then
    enable_gtk=no
    enable_gtk3=no
fi
GTK3_CFLAGS=""
GTK3_LIBS=""
ENABLE_GTK3=""
if test "x$enable_gtk3" = "xyes"; then
    if test "$with_system_cairo" = no; then
        as_fn_error $? "System cairo required for gtk3 support, do not combine --enable-gtk3 with --without-system-cairo" "$LINENO" 5
    fi
    : ${with_system_cairo:=yes}

I guess that means --disable-gtk3 is now needed to force gtk2.

Change History (2)

comment:1 by ken@…, 8 years ago

Owner: changed from blfs-book@… to ken@…
Status: newassigned

Further experimentation shows that gtk+-2 should still be recommended, without it gtk-plugin cannot be built (there is a switch to disable that), so BOTH should be recommended.

comment:2 by ken@…, 8 years ago

Resolution: fixed
Status: assignedclosed

Changed at r16988.

Note: See TracTickets for help on using tickets.