summaryrefslogtreecommitdiff
path: root/libs/gtkmm2ext
diff options
context:
space:
mode:
authorNils Philippsen <nils@tiptoe.de>2016-08-04 09:48:47 +0200
committerNils Philippsen <nils@tiptoe.de>2016-08-04 09:52:22 +0200
commit65c2e089ab263c83bff7d2e945b80c53f80b749b (patch)
tree4009d005e196cf1d21c3cef8159e5f99be4d4e59 /libs/gtkmm2ext
parentd6fd0486aef08fcccf013d889734971ed01eaedd (diff)
workaround changes in glibmm 2.49.x
Glib::RefPtr defines the operator bool() as explicit which breaks comparisons like "some_ref_ptr == 0" or "... != 0". https://bugzilla.gnome.org/show_bug.cgi?id=769502
Diffstat (limited to 'libs/gtkmm2ext')
-rw-r--r--libs/gtkmm2ext/actions.cc2
-rw-r--r--libs/gtkmm2ext/fastmeter.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/libs/gtkmm2ext/actions.cc b/libs/gtkmm2ext/actions.cc
index 3aa36b98db..840c9dc4a2 100644
--- a/libs/gtkmm2ext/actions.cc
+++ b/libs/gtkmm2ext/actions.cc
@@ -167,7 +167,7 @@ ActionManager::get_action (const char* group_name, const char* action_name)
gtkmm2.6, so we fall back to the C level.
*/
- if (ui_manager == 0) {
+ if (! ui_manager) {
return RefPtr<Action> ();
}
diff --git a/libs/gtkmm2ext/fastmeter.cc b/libs/gtkmm2ext/fastmeter.cc
index c144a963bb..f3928910bc 100644
--- a/libs/gtkmm2ext/fastmeter.cc
+++ b/libs/gtkmm2ext/fastmeter.cc
@@ -731,7 +731,7 @@ FastMeter::set (float lvl, float peak)
Glib::RefPtr<Gdk::Window> win;
- if ((win = get_window()) == 0) {
+ if (! (win = get_window())) {
queue_draw ();
return;
}