Skip to content

Commit

Permalink
All: Fixes for new build method.
Browse files Browse the repository at this point in the history
  • Loading branch information
rilian-la-te committed May 17, 2017
1 parent e4756d6 commit fc9eb94
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 12 deletions.
18 changes: 10 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@ determine_fallback_version(${CMAKE_SOURCE_DIR}/cmake/vala)
include(FallbackVersion)

add_definitions(-DGETTEXT_PACKAGE=\"${GETTEXT_PACKAGE}\")
add_definitions(-Wall -Wno-unused # Vala loves to create variables
# -pedantic
-Wno-ignored-qualifiers
-Wno-incompatible-pointer-types
-Wno-missing-field-initializers
-Wno-discarded-qualifiers
-Wno-sign-compare
-Wextra) #Vala often forgot cast to GtkWidget or gpointer
add_definitions(-Wall -Wextra
-Wno-unused
-Wno-unused-parameter# Vala loves to create variables
# -pedantic
-Wno-ignored-qualifiers
-Wno-incompatible-pointer-types
-Wno-missing-field-initializers
-Wno-discarded-qualifiers
-Wno-sign-compare
) #Vala often forgot cast to GtkWidget or gpointer
pkg_check_modules(GTK+ REQUIRED gtk+-3.0>=3.22)

option(ENABLE_XFCE "Enable xfce4-panel plugin" ON)
Expand Down
2 changes: 1 addition & 1 deletion data/sntray-mate.service.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[D-BUS Service]
Name=org.mate.panel.applet.SNTrayAppletFactory
Exec=@CMAKE_INSTALL_FULL_LIBDIR@/mate-panel/sntray-mate
Exec=@CMAKE_INSTALL_FULL_LIBEXECDIR@/mate-panel/sntray-mate
4 changes: 2 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ set(VALA_FILES_CORE
source
sntray.gresource.xml
)
add_library(sntray-core STATIC ${VALA_C_CORE})
target_link_libraries (sntray-core ${CORE_LIBRARIES} m vala-dbusmenu)
add_library(sntray-core STATIC ${VALA_C_CORE} $<TARGET_OBJECTS:vala-dbusmenu-o>)
target_link_libraries (sntray-core ${CORE_LIBRARIES} m)
add_custom_target(sntray-core-ide SOURCES ${VALA_FILES_DBUSMENU} ${VALA_FILES_CORE})
#################
# Xfce Panel part
Expand Down
2 changes: 1 addition & 1 deletion src/dbusmenu
Submodule dbusmenu updated from 1323a7 to cce1dd
1 change: 1 addition & 0 deletions src/snconfig.vala
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ namespace StatusNotifier
widget.configure_icon_size = configure_icon_size;
var dlg = new Dialog();
dlg.set_title(_("StatusNotifier Configuration"));
widget.show();
dlg.get_content_area().add(widget);
return dlg;
}
Expand Down

0 comments on commit fc9eb94

Please sign in to comment.