gtkmm: fix build error by patching missing operator
This commit is contained in:
parent
185c41736a
commit
7defda8356
@ -9,6 +9,8 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1vpmjqv0aqb1ds0xi6nigxnhlr0c74090xzi15b92amlzkrjyfj4";
|
||||
};
|
||||
|
||||
patches = [ ./gtkmm-2.24.4-missing-operator.patch ];
|
||||
|
||||
nativeBuildInputs = [pkgconfig];
|
||||
|
||||
propagatedBuildInputs = [ glibmm gtk2 atkmm cairomm pangomm ];
|
||||
|
@ -0,0 +1,11 @@
|
||||
--- gtkmm-2.24.4/gtk/gtkmm/menushell.cc.orig 2016-08-26 21:55:08.858311055 +0000
|
||||
+++ gtkmm-2.24.4/gtk/gtkmm/menushell.cc 2016-08-26 21:55:33.206310578 +0000
|
||||
@@ -130,7 +130,7 @@ MenuList::iterator MenuList::insert(Menu
|
||||
{
|
||||
const Glib::RefPtr<Gtk::MenuItem> item = element.get_child();
|
||||
|
||||
- g_return_val_if_fail(item != 0, position);
|
||||
+ g_return_val_if_fail(!!item, position);
|
||||
g_return_val_if_fail(gparent() != 0, position);
|
||||
|
||||
int pos = -1;
|
Loading…
Reference in New Issue
Block a user