[DRE-commits] [ruby-gnome2] 12/31: New upstream version 3.0.5

Daisuke Higuchi dai at moszumanska.debian.org
Mon Oct 10 13:40:18 UTC 2016


This is an automated email from the git hooks/post-receive script.

dai pushed a commit to branch exp/debian
in repository ruby-gnome2.

commit 808760198f729c12b3166d9e7a62f1c116b5c73c
Author: HIGUCHI Daisuke (VDR dai) <dai at debian.org>
Date:   Sun Oct 9 21:56:35 2016 +0900

    New upstream version 3.0.5
---
 NEWS                        | 18 ++++++++++++++++
 README.md                   | 50 ++++++++++++---------------------------------
 Rakefile                    |  1 +
 glib2/ext/glib2/rbglib.h    |  2 +-
 gtk2/ext/gtk2/rbgtkobject.c | 36 +++++++++++++++++++++++++++++++-
 5 files changed, 68 insertions(+), 39 deletions(-)

diff --git a/NEWS b/NEWS
index 6859b46..374f690 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,24 @@
 
 = NEWS
 
+== Ruby-GNOME2 3.0.5: 2015-09-22
+
+It is a bug fix release for mikutter.
+
+=== Changes
+
+==== Ruby/GTK2
+
+  * Fixes
+    * Fixed a bug that (({g_object_ref_sink()})) isn't called for
+      instance of (({type_register}))ed class.
+      [http://dev.mikutter.hachune.net/issues/771#note-3]
+      [Reported by toshi_a]
+
+=== Thanks
+
+  * toshi_a
+
 == Ruby-GNOME2 3.0.4: 2015-09-21
 
 It is a build fix release for 32bit Windows.
diff --git a/README.md b/README.md
index 4f51844..8dd69b1 100644
--- a/README.md
+++ b/README.md
@@ -2,10 +2,10 @@
 
 [![Build Status](https://travis-ci.org/ruby-gnome2/ruby-gnome2.svg?branch=master)](https://travis-ci.org/ruby-gnome2/ruby-gnome2)
 
-## Ruby-GNOME2 -- Ruby bindings for GNOME-2.x
+## Ruby-GNOME2 -- Ruby bindings for GNOME
 
-This is a set of bindings for the GNOME-2.x and GNOME-3.x libraries to
-use from Ruby 2.0.0, 2.1 and 2.2.
+This is a set of bindings for the GNOME 2.x and 3.x libraries to use
+from Ruby 2.0.0, 2.1 and 2.2.
 
 ## Release packages
 
@@ -20,7 +20,13 @@ use from Ruby 2.0.0, 2.1 and 2.2.
 
 ### ruby-gtk3
 
-* ruby-gtk2 - Ruby/GTK2
+* Ruby/GLib2:           GLib 2.12.x or later
+* Ruby/GIO2:            GIO 2.16.x or later
+* Ruby/ATK:             ATK 1.12.x or later
+* Ruby/Pango:           Pango 1.14.x or later
+* Ruby/GdkPixbuf2:      GTK+ 2.0.x or later
+* Ruby/GObjectIntrospection: GObject Introspection 1.32.1 or later
+* Ruby/CairoGObject:    cairo-gobject 1.12.10 or later
 * Ruby/GDK3:            GTK+ 3.4.2 or later
 * Ruby/GTK3:            GTK+ 3.4.2 or later
 
@@ -30,9 +36,9 @@ use from Ruby 2.0.0, 2.1 and 2.2.
 * Ruby/RSVG:            librsvg 2.8.0 or later
 * Ruby/Poppler:         poppler-glib 0.8.0 or later
 * Ruby/VTE              VTE 0.12.1 or later
+* Ruby/VTE3             VTE 0.37.0 or later
+* Ruby/GStreamer:       GStreamer 1.0.0 or later
 * Ruby/GtkSourceView2:  GtkSourceView 2.0.0 or later
-* Ruby/GIO2:            GIO 2.16.x or later
-* Ruby/CairoGObject:    cairo-gobject 1.12.10 or later
 * Ruby/Clutter:         Clutter 1.12.0 or later
 * Ruby/ClutterGTK:      Clutter-GTK 1.2.0 or later
 * Ruby/ClutterGStreamer:Clutter-GStreamer 2.0.0 or later
@@ -40,7 +46,7 @@ use from Ruby 2.0.0, 2.1 and 2.2.
 * Ruby/VTE3:            VTE 0.32.2 or later
 * Ruby/WebKitGTK:       WebKitGTK+ 1.8.1 or later (for GTK+ 3)
 * Ruby/WebKitGTK2:      WebKitGTK+ 1.8.1 or later (for GTK+ 2)
-* Ruby/GStreamer:       GStreamer 1.0.0 or later
+* Ruby/WebKit2GTK:      WebKitGTK+ 2.0.0 or later (for GTK+ 3)
 
 ### Experimental / Incomplete:
 
@@ -84,35 +90,6 @@ Or you can compile each sub-binding:
 * `CAIRO_PATH`
   * rcairo path (for Win32).
 
-### Dependencies
-
-You should install a sub-binding with its dependencies.  The
-current dependencies are:
-
-* Ruby/GLib
-  * none.
-* Ruby/ATK
-  * depends on Ruby/GLib.
-* Ruby/Pango
-  * depends on Ruby/GLib, rcairo.
-* Ruby/GdkPixbuf
-  * depends on Ruby/GLib.
-* Ruby/GTK
-  * depends on Ruby/GLib, Ruby/ATK, Ruby/Pango,
-    Ruby/GdkPixbuf, rcairo
-* Ruby/RSVG
-  * depends on Ruby/GLib, Ruby/GdkPixbuf2.
-* Ruby/Poppler
-  * depends on Ruby/GLib, Ruby/GdkPixbuf(optional), rcairo.
-* Ruby/VTE
-  * depends on Ruby/GTK.
-* Ruby/GtkSourceView2
-  * depends on Ruby/GTK.
-* Ruby/GIO2
-  * depends on Ruby/GLib.
-* Ruby/GStreamer
-  * depends on Ruby/GLib.
-
 ### Install from GitHub master branch
 
 You can also install these gems from GitHub master branch.
@@ -132,7 +109,6 @@ You can also install these gems from GitHub master branch.
 Please report bugs either in our bug tracker
 
 * [https://github.com/ruby-gnome2/ruby-gnome2/issues](https://github.com/ruby-gnome2/ruby-gnome2/issues) (current)
-* [http://sourceforge.net/tracker/?group_id=53614&atid=470969](http://sourceforge.net/tracker/?group_id=53614&atid=470969) (previous)
 
 or on the ruby-gnome2-devel-en / ruby-gnome2-devel-ja mailing list
 
diff --git a/Rakefile b/Rakefile
index 0d24116..2615812 100644
--- a/Rakefile
+++ b/Rakefile
@@ -489,4 +489,5 @@ end
 desc "tag the current release"
 task :tag do
   sh("git", "tag", "-a", version, "-m", "release #{version}!!!")
+  sh("git", "push", "--tags")
 end
diff --git a/glib2/ext/glib2/rbglib.h b/glib2/ext/glib2/rbglib.h
index f386860..56e06d6 100644
--- a/glib2/ext/glib2/rbglib.h
+++ b/glib2/ext/glib2/rbglib.h
@@ -36,7 +36,7 @@ extern "C" {
 
 #define RBGLIB_MAJOR_VERSION 3
 #define RBGLIB_MINOR_VERSION 0
-#define RBGLIB_MICRO_VERSION 4
+#define RBGLIB_MICRO_VERSION 5
 
 #ifndef RSTRING_PTR
 #  define RSTRING_PTR(s) (RSTRING(s)->ptr)
diff --git a/gtk2/ext/gtk2/rbgtkobject.c b/gtk2/ext/gtk2/rbgtkobject.c
index 4ef0e08..0a1da05 100644
--- a/gtk2/ext/gtk2/rbgtkobject.c
+++ b/gtk2/ext/gtk2/rbgtkobject.c
@@ -1,6 +1,6 @@
 /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
 /*
- *  Copyright (C) 2011  Ruby-GNOME2 Project Team
+ *  Copyright (C) 2011-2015  Ruby-GNOME2 Project Team
  *  Copyright (C) 2002-2004 Ruby-GNOME2 Project Team
  *  Copyright (C) 1998-2000 Yukihiro Matsumoto,
  *                          Daisuke Kanda,
@@ -26,6 +26,39 @@
 
 #define RG_TARGET_NAMESPACE cObject
 
+static VALUE
+rg_initialize(int argc, VALUE *argv, VALUE self)
+{
+    GObject *object;
+
+    rb_call_super(argc, argv);
+
+    object = RVAL2GOBJ(self);
+    g_object_ref_sink(object);
+
+    return Qnil;
+}
+
+static VALUE
+rg_s_type_register(int argc, VALUE *argv, VALUE klass)
+{
+    VALUE type_name;
+
+    rb_scan_args(argc, argv, "01", &type_name);
+
+    rbgobj_register_type(klass, type_name, rbgobj_class_init_func);
+
+    {
+        VALUE initialize_module;
+        initialize_module = rb_define_module_under(klass, "WidgetHook");
+        rbg_define_method(initialize_module,
+                          "initialize", rg_initialize, -1);
+        rb_include_module(klass, initialize_module);
+    }
+
+    return Qnil;
+}
+
 /*
 We shouldn't implement it.
 void        gtk_object_sink                 (GtkObject *object);
@@ -122,6 +155,7 @@ Init_gtk_object(VALUE mGtk)
 {
     VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(GTK_TYPE_OBJECT, "Object", mGtk);
 
+    RG_DEF_SMETHOD(type_register, -1);
     RG_DEF_SMETHOD(binding_set, 0);
 
     RG_DEF_METHOD(type_name, 0);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-gnome2.git



More information about the Pkg-ruby-extras-commits mailing list