wok-next diff lostirc/stuff/gcc.u @ rev 20346
libav, lostirc: tiny patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 18 14:09:19 2017 +0100 (2017-11-18) |
parents | 843c4b1b4ead |
children |
line diff
1.1 --- a/lostirc/stuff/gcc.u Fri Sep 25 12:08:50 2009 +0200 1.2 +++ b/lostirc/stuff/gcc.u Sat Nov 18 14:09:19 2017 +0100 1.3 @@ -19,3 +19,21 @@ 1.4 #include <cerrno> 1.5 #include <cstdio> 1.6 #include <glibmm/main.h> 1.7 + 1.8 +--- lostirc-0.4.6/src/gtkmm/TextWidget.cpp 1.9 ++++ lostirc-0.4.6/src/gtkmm/TextWidget.cpp 1.10 +@@ -210,11 +210,11 @@ 1.11 + std::vector< Glib::RefPtr<Gtk::TextTag> > tags; 1.12 + 1.13 + Glib::RefPtr<Gtk::TextTag> fg = buffer->get_tag_table()->lookup(Glib::ustring("f")+crop(tp.fgnumber)); 1.14 +- if (fg == 0) 1.15 ++ if (!fg) 1.16 + fg = buffer->get_tag_table()->lookup("f0"); 1.17 + 1.18 + Glib::RefPtr<Gtk::TextTag> bg = buffer->get_tag_table()->lookup(Glib::ustring("b")+crop(tp.bgnumber)); 1.19 +- if (bg == 0) 1.20 ++ if (!bg) 1.21 + bg = buffer->get_tag_table()->lookup("b0"); 1.22 + 1.23 + tags.push_back(fg); 1.24 +