Skip to content

Instantly share code, notes, and snippets.

@ObserverHerb
Created January 10, 2017 06:49
Show Gist options
  • Save ObserverHerb/55f953c4bbb767c8f38f85f35a951377 to your computer and use it in GitHub Desktop.
Save ObserverHerb/55f953c4bbb767c8f38f85f35a951377 to your computer and use it in GitHub Desktop.
--- library/forms/gtk/src/lf_popover.orig.cpp 2017-01-09 11:05:22.343877181 -0500
+++ library/forms/gtk/src/lf_popover.cpp 2017-01-09 11:09:04.029863968 -0500
@@ -380,7 +380,7 @@
if (_style == mforms::PopoverStyleTooltip)
{
Glib::RefPtr<Gdk::Window> wnd = this->get_window();
- if (wnd != 0)
+ if (wnd)
{
int xx;
int yy;
@@ -396,7 +396,7 @@
{
Gdk::ModifierType mask;
Glib::RefPtr<Gdk::Display> dsp = Gdk::Display::get_default();
- if (dsp != 0)
+ if (dsp)
dsp->get_pointer(x, y, mask);
}
--- library/forms/gtk/src/lf_popup.orig.cpp 2017-01-09 11:58:06.054688609 -0500
+++ library/forms/gtk/src/lf_popup.cpp 2017-01-09 11:58:32.939687007 -0500
@@ -81,7 +81,8 @@
{
d("\n");
Glib::RefPtr<Gdk::Colormap> colormap = screen->get_rgba_colormap();
- _have_rgba = colormap;
+ if (colormap)
+ _have_rgba = true;
if (!_have_rgba)
colormap = screen->get_rgb_colormap();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment