merge with dev
This commit is contained in:
@@ -164,13 +164,13 @@ set(NONCLISOURCEFILES
|
||||
zoompanel.cc
|
||||
)
|
||||
|
||||
include_directories(BEFORE "${CMAKE_CURRENT_BINARY_DIR}")
|
||||
include_directories(BEFORE ${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
if(APPLE)
|
||||
find_package(MacIntegration REQUIRED)
|
||||
# At the time of writing CMake has no module finder for gtkmacintegration so here we have it hard-coded, if installed via macports it should be in /opt/local/...
|
||||
set(EXTRA_LIB_RTGUI ${MacIntegration_LIBRARIES})
|
||||
set(EXTRA_INCDIR ${EXTRA_INCDIR} ${MacIntegration_INCLUDE_DIRS})
|
||||
set(EXTRA_LIB_RTGUI "${MacIntegration_LIBRARIES}")
|
||||
set(EXTRA_INCDIR "${EXTRA_INCDIR}" "${MacIntegration_INCLUDE_DIRS}")
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
@@ -236,16 +236,16 @@ else()
|
||||
endif()
|
||||
|
||||
# Excluding libatomic needed by Clang/FreeBSD, #3636
|
||||
if(OPENMP_FOUND AND NOT APPLE AND NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD")
|
||||
set(EXTRA_LIB_RTGUI ${EXTRA_LIB_RTGUI} "atomic")
|
||||
if(OPENMP_FOUND AND NOT APPLE AND NOT ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
|
||||
set(EXTRA_LIB_RTGUI "${EXTRA_LIB_RTGUI}" "atomic")
|
||||
endif()
|
||||
|
||||
# Create config.h which defines where data are stored
|
||||
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/config.h.in" "${CMAKE_CURRENT_BINARY_DIR}/config.h")
|
||||
|
||||
# Create new executables targets
|
||||
add_executable(rth ${EXTRA_SRC_NONCLI} ${NONCLISOURCEFILES})
|
||||
add_executable(rth-cli ${EXTRA_SRC_CLI} ${CLISOURCEFILES})
|
||||
add_executable(rth "${EXTRA_SRC_NONCLI}" "${NONCLISOURCEFILES}")
|
||||
add_executable(rth-cli "${EXTRA_SRC_CLI}" "${CLISOURCEFILES}")
|
||||
|
||||
# Add dependencies to executables targets
|
||||
add_dependencies(rth UpdateInfo)
|
||||
@@ -311,5 +311,5 @@ target_link_libraries(rth-cli rtengine
|
||||
)
|
||||
|
||||
# Install executables
|
||||
install(TARGETS rth DESTINATION ${BINDIR})
|
||||
install(TARGETS rth-cli DESTINATION ${BINDIR})
|
||||
install(TARGETS rth DESTINATION "${BINDIR}")
|
||||
install(TARGETS rth-cli DESTINATION "${BINDIR}")
|
||||
|
||||
@@ -20,7 +20,12 @@
|
||||
|
||||
#include <set>
|
||||
#include <vector>
|
||||
#if __has_include(<gtkmm/enums.h>)
|
||||
#include <gtkmm/enums.h>
|
||||
#else
|
||||
#include <gtkmm-3.0/gtkmm/enums.h>
|
||||
#endif
|
||||
|
||||
#include "../rtengine/settings.h"
|
||||
#include <exception>
|
||||
|
||||
|
||||
@@ -216,7 +216,7 @@ const ProcParams& Thumbnail::getProcParamsU ()
|
||||
double ct;
|
||||
getCamWB (ct, pparams->wb.green);
|
||||
pparams->wb.temperature = ct;
|
||||
} else if (pparams->wb.method == "Auto") {
|
||||
} else if (pparams->wb.method == "autold") {
|
||||
double ct;
|
||||
getAutoWB (ct, pparams->wb.green, pparams->wb.equal, pparams->wb.tempBias);
|
||||
pparams->wb.temperature = ct;
|
||||
|
||||
@@ -897,7 +897,7 @@ int WhiteBalance::_setActiveMethod(Glib::ustring &label, Gtk::TreeModel::Childre
|
||||
|
||||
if (row[methodColumns.colLabel] == label) {
|
||||
method->set_active(iter);
|
||||
found = method->get_active_row_number();
|
||||
found = row[methodColumns.colId];
|
||||
}
|
||||
|
||||
if (found != -1) {
|
||||
|
||||
Reference in New Issue
Block a user