Browse Source

Merge pull request #48 from eidheim/master

Ubuntu 14 and Mint fix
merge-requests/365/head
Ole Christian Eidheim 10 years ago
parent
commit
dad14cd6ea
  1. 8
      src/directories.cc
  2. 8
      src/entrybox.cc
  3. 8
      src/notebook.cc
  4. 10
      src/selectiondialog.cc
  5. 8
      src/source.cc
  6. 8
      src/tooltips.cc
  7. 8
      src/window.cc

8
src/directories.cc

@ -9,7 +9,13 @@
using namespace std; //TODO: remove
namespace sigc {
SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE
template <typename Functor>
struct functor_trait<Functor, false> {
typedef decltype (::sigc::mem_fun(std::declval<Functor&>(),
&Functor::operator())) _intermediate;
typedef typename _intermediate::result_type result_type;
typedef Functor functor_type;
};
}
Directories::Directories() : stop_update_thread(false) {

8
src/entrybox.cc

@ -1,7 +1,13 @@
#include "entrybox.h"
namespace sigc {
SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE
template <typename Functor>
struct functor_trait<Functor, false> {
typedef decltype (::sigc::mem_fun(std::declval<Functor&>(),
&Functor::operator())) _intermediate;
typedef typename _intermediate::result_type result_type;
typedef Functor functor_type;
};
}
std::unordered_map<std::string, std::vector<std::string> > EntryBox::entry_histories;

8
src/notebook.cc

@ -10,7 +10,13 @@
using namespace std; //TODO: remove
namespace sigc {
SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE
template <typename Functor>
struct functor_trait<Functor, false> {
typedef decltype (::sigc::mem_fun(std::declval<Functor&>(),
&Functor::operator())) _intermediate;
typedef typename _intermediate::result_type result_type;
typedef Functor functor_type;
};
}
Notebook::Notebook(Directories &directories) : Gtk::Notebook(), directories(directories) {

10
src/selectiondialog.cc

@ -2,7 +2,13 @@
#include <algorithm>
namespace sigc {
SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE
template <typename Functor>
struct functor_trait<Functor, false> {
typedef decltype (::sigc::mem_fun(std::declval<Functor&>(),
&Functor::operator())) _intermediate;
typedef typename _intermediate::result_type result_type;
typedef Functor functor_type;
};
}
SelectionDialogBase::SelectionDialogBase(Gtk::TextView& text_view, Glib::RefPtr<Gtk::TextBuffer::Mark> start_mark, bool show_search_entry): text_view(text_view),
@ -144,7 +150,7 @@ void SelectionDialogBase::resize() {
int window_height=std::min(row_height*(int)list_view_text.get_model()->children().size(), row_height*10);
if(show_search_entry)
window_height+=search_entry.get_height();
window->resize(row_width, window_height);
window->resize(row_width+1, window_height);
}
}

8
src/source.cc

@ -12,7 +12,13 @@
using namespace std; //TODO: remove
namespace sigc {
SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE
template <typename Functor>
struct functor_trait<Functor, false> {
typedef decltype (::sigc::mem_fun(std::declval<Functor&>(),
&Functor::operator())) _intermediate;
typedef typename _intermediate::result_type result_type;
typedef Functor functor_type;
};
}
Glib::RefPtr<Gsv::Language> Source::guess_language(const boost::filesystem::path &file_path) {

8
src/tooltips.cc

@ -2,7 +2,13 @@
#include "singletons.h"
namespace sigc {
SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE
template <typename Functor>
struct functor_trait<Functor, false> {
typedef decltype (::sigc::mem_fun(std::declval<Functor&>(),
&Functor::operator())) _intermediate;
typedef typename _intermediate::result_type result_type;
typedef Functor functor_type;
};
}
Gdk::Rectangle Tooltips::drawn_tooltips_rectangle=Gdk::Rectangle();

8
src/window.cc

@ -10,7 +10,13 @@
using namespace std; //TODO: remove
namespace sigc {
SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE
template <typename Functor>
struct functor_trait<Functor, false> {
typedef decltype (::sigc::mem_fun(std::declval<Functor&>(),
&Functor::operator())) _intermediate;
typedef typename _intermediate::result_type result_type;
typedef Functor functor_type;
};
}
void Window::generate_keybindings() {

Loading…
Cancel
Save