[gnome-mahjongg] Drop fixes.vapi



commit 23786e436e0dc10f4d1f96d1503d5270e02c73f3
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sat Nov 2 18:34:44 2013 -0500

    Drop fixes.vapi
    
    It exists for a bug long since resolved. We don't even need to bump the
    required valac version.

 src/Makefile.am         |    1 -
 src/fixes.vapi          |   15 ---------------
 src/gnome-mahjongg.vala |    4 +---
 3 files changed, 1 insertions(+), 19 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index abe5a0d..fc16a8b 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -7,7 +7,6 @@ resources.c: gnome-mahjongg.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --ge
 
 gnome_mahjongg_SOURCES =       \
        config.vapi     \
-       fixes.vapi      \
        game.vala       \
        game-view.vala  \
        gnome-mahjongg.vala     \
diff --git a/src/gnome-mahjongg.vala b/src/gnome-mahjongg.vala
index 387e0ba..f5c9b17 100644
--- a/src/gnome-mahjongg.vala
+++ b/src/gnome-mahjongg.vala
@@ -280,9 +280,7 @@ public class Mahjongg : Gtk.Application
 
     private void background_changed_cb (Gtk.ColorButton widget)
     {
-        Gdk.RGBA colour;
-        /* See https://bugzilla.gnome.org/show_bug.cgi?id=669386 */
-        Gtk.color_button_get_rgba (widget, out colour);
+        var colour = widget.get_rgba ();
         settings.set_string ("bgcolour", "#%04x%04x%04x".printf ((int) (colour.red * 65536 + 0.5), (int) 
(colour.green * 65536 + 0.5), (int) (colour.blue * 65536 + 0.5)));
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]