Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Commit

Permalink
removed bamf dependency entirely
Browse files Browse the repository at this point in the history
  • Loading branch information
Schneegans committed Sep 20, 2016
1 parent cfbf178 commit 8195768
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 23 deletions.
16 changes: 1 addition & 15 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ pkg_check_modules(X11 REQUIRED x11)
pkg_check_modules(XML REQUIRED libxml-2.0)
pkg_check_modules(XTST REQUIRED xtst)
pkg_check_modules(GMENU3 libgnome-menu-3.0)
pkg_check_modules(BAMF libbamf3)

find_library(M_LIB m)
find_library(GTHREAD_LIB gthread-2.0)
Expand All @@ -54,11 +53,6 @@ set(CFLAGS
# -g
)

# use bamf if available for better icon handling
if (${BAMF_FOUND})
LIST(APPEND CFLAGS -DHAVE_BAMF)
endif (${BAMF_FOUND})

# fallback to gnome-menus2 if gnome-menus3 wasn't found
if (${GMENU3_FOUND})
LIST(APPEND CFLAGS -DHAVE_GMENU_3)
Expand Down Expand Up @@ -89,7 +83,6 @@ set(LIBS
${GMENU3_LIBRARIES}
${X11_LIBRARIES}
${WNCK_LIBRARIES}
${BAMF_LIBRARIES}
${ARCHIVE_LIB}
${M_LIB}
${GTHREAD_LIB}
Expand All @@ -109,7 +102,6 @@ set(LIB_PATHS
${GMENU3_LIBRARY_DIRS}
${X11_LIBRARY_DIRS}
${WNCK_LIBRARY_DIRS}
${BAMF_LIBRARY_DIRS}
)
link_directories(${LIB_PATHS})

Expand All @@ -125,8 +117,7 @@ set(INCLUDE_PATHS
${GMENU_INCLUDE_DIRS}
${GMENU3_INCLUDE_DIRS}
${X11_INCLUDE_DIRS}
${BAMF_INCLUDE_DIRS}
${WNCK_INCLUDE_DIRS}
${WNCK_INCLUDE_DIRS}
)
include_directories(${INCLUDE_PATHS})

Expand All @@ -150,10 +141,6 @@ set(VALA_PKGS
libarchive
)

if (${BAMF_FOUND})
LIST(APPEND VALA_PKGS libbamf3)
endif (${BAMF_FOUND})

if (${INDICATOR_FOUND})
LIST(APPEND VALA_PKGS appindicator-0.1)
endif (${INDICATOR_FOUND})
Expand Down Expand Up @@ -201,7 +188,6 @@ message( " XTST_LIBRARIES = ${XTST_LIBRARIES}" )
message( " GMENU_LIBRARIES = ${GMENU_LIBRARIES}" )
message( " GMENU3_LIBRARIES = ${GMENU3_LIBRARIES}" )
message( " X11_LIBRARIES = ${X11_LIBRARIES}" )
message( " BAMF_LIBRARIES = ${BAMF_LIBRARIES}" )
message( " WNCK_LIBRARIES = ${WNCK_LIBRARIES}" )
message( " ARCHIVE_LIBRARIES = ${ARCHIVE_LIB}" )
message( "" )
9 changes: 1 addition & 8 deletions src/actionGroups/windowListGroup.vala
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,7 @@ public class WindowListGroup : ActionGroup {

var application = window.get_application();
var icon = application.get_icon_name().down();

#if HAVE_BAMF
var matcher = Bamf.Matcher.get_default();
var bamf_app = matcher.get_application_for_xid((uint32)window.get_xid());
icon = bamf_app.get_icon();
#endif

string name = window.get_name();
var name = window.get_name();

if (name.length > 30) {
name = name.substring(0, 30) + "...";
Expand Down

0 comments on commit 8195768

Please sign in to comment.