Skip to content

Instantly share code, notes, and snippets.

diff --git a/cmake/Modules/FindNcursesw.cmake b/cmake/Modules/FindNcursesw.cmake
index dec024e..a90c48b 100644
--- a/cmake/Modules/FindNcursesw.cmake
+++ b/cmake/Modules/FindNcursesw.cmake
@@ -99,7 +99,8 @@
include(CheckLibraryExists)
-find_library(CURSES_NCURSESW_LIBRARY NAMES ncursesw )
+find_library(CURSES_NCURSESW_LIBRARY NAMES ncursesw
@kahrl
kahrl / a.diff
Created November 3, 2015 19:14
diff --git a/cmake/Modules/FindNcursesw.cmake b/cmake/Modules/FindNcursesw.cmake
index dec024e..ac5a274 100644
--- a/cmake/Modules/FindNcursesw.cmake
+++ b/cmake/Modules/FindNcursesw.cmake
@@ -182,4 +182,5 @@ mark_as_advanced(
CURSES_NCURSES_LIBRARY
CURSES_NCURSESW_LIBRARY
CURSES_EXTRA_LIBRARY
+ CURSES_FORM_LIBRARY
)
diff --git a/src/client/clientlauncher.cpp b/src/client/clientlauncher.cpp
index 772bbaf..dfddef3 100644
--- a/src/client/clientlauncher.cpp
+++ b/src/client/clientlauncher.cpp
@@ -680,7 +680,7 @@ bool ClientLauncher::print_video_modes()
return false;
}
- dstream << _("Available video modes (WxHxD):") << std::endl;
+ std::cout << _("Available video modes (WxHxD):") << std::endl;
diff --git a/src/guiTable.cpp b/src/guiTable.cpp
index 8e8144a..3cc95ce 100644
--- a/src/guiTable.cpp
+++ b/src/guiTable.cpp
@@ -928,6 +928,11 @@ bool GUITable::OnEvent(const SEvent &event)
sel_doubleclick) {
sendTableEvent(sel_column, sel_doubleclick);
}
+
+ // Treeview: double click opens/closes trees
diff --git a/src/guiTable.cpp b/src/guiTable.cpp
index b327782..8e8144a 100644
--- a/src/guiTable.cpp
+++ b/src/guiTable.cpp
@@ -556,6 +556,8 @@ s32 GUITable::getSelected() const
void GUITable::setSelected(s32 index)
{
+ s32 old_selected = m_selected;
+
diff --git a/builtin/mainmenu/tab_settings.lua b/builtin/mainmenu/tab_settings.lua
index e822b45..b9c6081 100644
--- a/builtin/mainmenu/tab_settings.lua
+++ b/builtin/mainmenu/tab_settings.lua
@@ -323,7 +323,7 @@ end
local function create_settings_formspec(tabview, name, tabdata)
local formspec = "tablecolumns[color;tree;text;text]" ..
- --"tableoptions[opendepth=1]" ..
+ "tableoptions[background=#00000000;border=false]" ..
@kahrl
kahrl / b.diff
Created September 28, 2015 23:49
diff --git a/src/staticobject.cpp b/src/staticobject.cpp
index 2e7d45a..e226f0b 100644
--- a/src/staticobject.cpp
+++ b/src/staticobject.cpp
@@ -19,6 +19,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "staticobject.h"
#include "util/serialize.h"
+#include "log.h"
@kahrl
kahrl / a.diff
Created September 28, 2015 23:36
diff --git a/src/staticobject.cpp b/src/staticobject.cpp
index 2e7d45a..922d3db 100644
--- a/src/staticobject.cpp
+++ b/src/staticobject.cpp
@@ -19,6 +19,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "staticobject.h"
#include "util/serialize.h"
+#include "log.h"
2015-08-25 07:52:35: ERROR[Main]: ServerError: Lua: Runtime error from mod 'default' in callback item_OnPlace(): /home/kahrl/minetest/bin/../builtin/game/item.lua:84: attempt to index local 'dir' (a nil value)
2015-08-25 07:52:35: ERROR[Main]: stack traceback:
2015-08-25 07:52:35: ERROR[Main]: /home/kahrl/minetest/bin/../builtin/game/item.lua:84: in function 'dir_to_facedir'
2015-08-25 07:52:35: ERROR[Main]: ...ahrl/minetest/bin/../builtin/common/misc_helpers.lua:387: in function 'rotate_and_place'
2015-08-25 07:52:35: ERROR[Main]: ...ahrl/minetest/bin/../builtin/common/misc_helpers.lua:466: in function <...ahrl/minetest/bin/../builtin/common/misc_helpers.lua:465>
2015-08-25 07:52:35: ERROR[Main]: [C]: in function 'place_node'
2015-08-25 07:52:35: ERROR[Main]: /home/kahrl/minetest/bin/../mods/tmp/init.lua:220: in function </home/kahrl/minetest/bin/../mods/tmp/init.lua:219>
diff --git a/src/guiFormSpecMenu.cpp b/src/guiFormSpecMenu.cpp
index f168306..62a8446 100644
--- a/src/guiFormSpecMenu.cpp
+++ b/src/guiFormSpecMenu.cpp
@@ -1020,6 +1020,7 @@ void GUIFormSpecMenu::parseSimpleField(parserData* data,
if (g_settings->getBool("freetype")) {
e = (gui::IGUIElement *) new gui::intlGUIEditBox(spec.fdefault.c_str(),
true, Environment, this, spec.fid, rect);
+ e->drop();
} else {