Skip to content

Commit 5114f44

Browse files
author
Koen Deforche
committed
Several changes:
- fix websocket-based widgetset application reloading giving restart popup - remove redundant setPopup() calls and unnecessary z-index styles - wthttp: fix HTTP header value length error - win32: add version information to Wt when building DLLs. - WDatePicker: revert to a plain container for layout - current mariadb version does not have mysql_library_init
1 parent eedfab5 commit 5114f44

33 files changed

+556
-71
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ SET(VERSION_SERIES 3)
2020
SET(VERSION_MAJOR 3)
2121
SET(VERSION_MINOR 2)
2222

23-
SET(WT_SOVERSION 3)
23+
SET(WT_SOVERSION 37)
2424
SET(WTEXT_SOVERSION 37)
2525
SET(WTHTTP_SOVERSION 37)
2626
SET(WTFCGI_SOVERSION 37)

WConfig.h.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
#define WCONFIG_H
33

44
// Version defines
5-
#define WT_SERIES 0x${VERSION_SERIES}
6-
#define WT_MAJOR 0x${VERSION_MAJOR}
7-
#define WT_MINOR 0x${VERSION_MINOR}
5+
#define WT_SERIES ${VERSION_SERIES}
6+
#define WT_MAJOR ${VERSION_MAJOR}
7+
#define WT_MINOR ${VERSION_MINOR}
88

99
/*! \brief A constant that encodes the library version of %Wt
1010
*

cmake/WtFindMysql.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,15 @@ ELSE(WIN32)
6868
ENDIF(WIN32)
6969

7070

71+
INCLUDE (CheckSymbolExists)
72+
# mariadb 1.0.0 does not have mysql_library_init
73+
IF(MYSQL_FOUND)
74+
SET(CMAKE_REQUIRED_FLAGS "")
75+
SET(CMAKE_REQUIRED_DEFINITIONS "")
76+
SET(CMAKE_REQUIRED_LIBRARIES "")
77+
SET(CMAKE_REQUIRED_INCLUDES ${MYSQL_INCLUDE})
78+
CHECK_SYMBOL_EXISTS(mysql_library_init mysql.h MYSQL_HAVE_LIBRARY_INIT)
79+
IF(NOT MYSQL_HAVE_LIBRARY_INIT)
80+
SET(MYSQL_DEFINITIONS "-DMYSQL_NO_LIBRARY_INIT")
81+
ENDIF(NOT MYSQL_HAVE_LIBRARY_INIT)
82+
ENDIF(MYSQL_FOUND)

resources/themes/bootstrap/2/wt.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,6 @@
414414
-webkit-border-radius: 4px;
415415
-moz-border-radius: 4px;
416416
border-radius: 4px;
417-
z-index: 2;
418417
}
419418
.Wt-slider-h .handle:hover,
420419
.Wt-slider-h .handle:active,
@@ -489,7 +488,6 @@
489488
-webkit-border-radius: 4px;
490489
-moz-border-radius: 4px;
491490
border-radius: 4px;
492-
z-index: 2;
493491
}
494492
.Wt-slider-v .handle:hover,
495493
.Wt-slider-v .handle:active,

resources/themes/bootstrap/2/wt.less

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,6 @@
400400
.buttonBackground(@btnBackground, @btnBackgroundHighlight,
401401
@grayDark, 0 1px 1px rgba(255,255,255,.75));
402402
.border-radius(@baseBorderRadius);
403-
z-index: 2;
404403

405404
&:hover {
406405
background-color: darken(@white, 10%);
@@ -450,7 +449,6 @@
450449
.buttonBackground(@btnBackground, @btnBackgroundHighlight,
451450
@grayDark, 0 1px 1px rgba(255,255,255,.75));
452451
.border-radius(@baseBorderRadius);
453-
z-index: 2;
454452

455453
&:hover {
456454
background-color: darken(@white, 10%);

resources/themes/bootstrap/3/wt.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,6 @@
427427

428428
.Wt-slider-h .handle {
429429
top: 50% !important;
430-
z-index: 2;
431430
height: 18px !important;
432431
margin-top: -10px;
433432
color: #333333;
@@ -511,7 +510,6 @@ fieldset[disabled] .Wt-slider-h .handle.active {
511510

512511
.Wt-slider-v .handle {
513512
left: 50% !important;
514-
z-index: 2;
515513
width: 18px !important;
516514
margin-left: -10px;
517515
color: #333333;

resources/themes/bootstrap/3/wt.less

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,6 @@
413413
border: 1px solid @btn-default-border;
414414
border-radius: @border-radius-base;
415415
.button-variant(@btn-default-color; @btn-default-bg; @btn-default-border);
416-
z-index: 2;
417416

418417
&:hover {
419418
background-color: darken(white, 10%);
@@ -462,7 +461,6 @@
462461
border: 1px solid @btn-default-border;
463462
border-radius: @border-radius-base;
464463
.button-variant(@btn-default-color; @btn-default-bg; @btn-default-border);
465-
z-index: 2;
466464

467465
&:hover {
468466
background-color: darken(white, 10%);
@@ -560,7 +558,6 @@
560558
}
561559
}
562560

563-
564561
/* resize handles */
565562
.Wt-tv-rh {
566563
float: right;

src/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,14 @@ IF(RT_required)
418418
SET(RT_LIBRARY "rt")
419419
ENDIF(RT_required)
420420

421+
IF(WIN32)
422+
IF(SHARED_LIBS)
423+
CONFIGURE_FILE(Wt/wt-version.rc.in
424+
${CMAKE_CURRENT_BINARY_DIR}/wt-version.rc)
425+
SET(libsources ${libsources} ${CMAKE_CURRENT_BINARY_DIR}/wt-version.rc)
426+
ENDIF(SHARED_LIBS)
427+
ENDIF(WIN32)
428+
421429
ADD_LIBRARY(wt ${libsources})
422430
TARGET_LINK_LIBRARIES(wt
423431
${BOOST_WT_LIBRARIES}

src/Wt/Dbo/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1+
IF(WIN32)
2+
IF(SHARED_LIBS)
3+
CONFIGURE_FILE(wtdbo-version.rc.in
4+
${CMAKE_CURRENT_BINARY_DIR}/wtdbo-version.rc)
5+
SET(wtdboversionrc ${CMAKE_CURRENT_BINARY_DIR}/wtdbo-version.rc)
6+
ENDIF(SHARED_LIBS)
7+
ENDIF(WIN32)
8+
19
ADD_LIBRARY(wtdbo
10+
${wtdboversionrc}
211
ptr.C
312
Call.C
413
DbAction.C

src/Wt/Dbo/Json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,10 @@ private:
217217
bool first_;
218218
Session *session_;
219219

220-
template<typename T>
221-
void out(T t);
220+
void out(char);
221+
void out(const char *);
222+
void out(int);
223+
void out(long long);
222224

223225
template<typename T>
224226
void outputId(T id) {

0 commit comments

Comments
 (0)