"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libgimpwidgets/gimppickbutton-kwin.c" between
gimp-2.10.10.tar.bz2 and gimp-2.10.12.tar.bz2

About: GIMP - The GNU Image Manipulation Program.

gimppickbutton-kwin.c  (gimp-2.10.10.tar.bz2):gimppickbutton-kwin.c  (gimp-2.10.12.tar.bz2)
skipping to change at line 88 skipping to change at line 88
g_return_if_fail (proxy); g_return_if_fail (proxy);
retval = g_dbus_proxy_call_sync (proxy, "pick", NULL, retval = g_dbus_proxy_call_sync (proxy, "pick", NULL,
G_DBUS_CALL_FLAGS_NONE, G_DBUS_CALL_FLAGS_NONE,
-1, NULL, &error); -1, NULL, &error);
if (retval) if (retval)
{ {
GimpRGB rgb; GimpRGB rgb;
guint32 color; guint32 color;
g_variant_get (retval, "(u)", &color); g_variant_get (retval, "((u))", &color);
g_variant_unref (retval); g_variant_unref (retval);
/* Returned value is ARGB stored in uint32. */ /* Returned value is ARGB stored in uint32. */
gimp_rgba_set_uchar (&rgb, gimp_rgba_set_uchar (&rgb,
(color >> 16 ) & 0xff, /* Red */ (color >> 16 ) & 0xff, /* Red */
(color >> 8) & 0xff, /* Green */ (color >> 8) & 0xff, /* Green */
color & 0xff, /* Blue: least significant by te. */ color & 0xff, /* Blue: least significant by te. */
(color >> 24) & 0xff); /* Alpha: most significant by te. */ (color >> 24) & 0xff); /* Alpha: most significant by te. */
g_signal_emit_by_name (button, "color-picked", &rgb); g_signal_emit_by_name (button, "color-picked", &rgb);
} }
else else
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)