From: <nu...@co...> - 2011-11-30 10:28:41
|
Masaaki Aoyagi 2011-11-30 10:14:42 +0000 (Wed, 30 Nov 2011) New Revision: d9ad4d4c6fa00462120a6151a85c2851e2ba9d97 Merged dcdc522: Merge pull request #64 from masaakiaoyagi/master Log: Remove Gtk::Widget#path Modified files: gtk3/ext/gtk3/rbgtkwidget.c gtk3/lib/gtk3/deprecated.rb Modified: gtk3/ext/gtk3/rbgtkwidget.c (+0 -18) =================================================================== --- gtk3/ext/gtk3/rbgtkwidget.c 2011-11-30 10:13:39 +0000 (76a999c) +++ gtk3/ext/gtk3/rbgtkwidget.c 2011-11-30 10:14:42 +0000 (b356a9d) @@ -299,23 +299,6 @@ rg_s_default_direction(G_GNUC_UNUSED VALUE self) } static VALUE -rg_path(VALUE self) -{ - guint path_length; - gchar *path; - gchar *path_reversed; - VALUE str_path; - VALUE str_path_reversed; - - gtk_widget_path(_SELF(self), &path_length, &path, &path_reversed); - str_path = CSTR2RVAL(path); - str_path_reversed = CSTR2RVAL(path_reversed); - g_free(path); - g_free(path_reversed); - return rb_ary_new3(2, str_path, str_path_reversed); -} - -static VALUE rg_class_path(VALUE self) { guint path_length; @@ -1340,7 +1323,6 @@ Init_gtk_widget(VALUE mGtk) RG_DEF_METHOD(hide_on_delete, 0); RG_DEF_METHOD(set_direction, 1); RG_DEF_METHOD(direction, 0); - RG_DEF_METHOD(path, 0); RG_DEF_METHOD(class_path, 0); RG_DEF_METHOD(composite_name, 0); RG_DEF_METHOD(modify_style, 1); Modified: gtk3/lib/gtk3/deprecated.rb (+1 -0) =================================================================== --- gtk3/lib/gtk3/deprecated.rb 2011-11-30 10:13:39 +0000 (c6c7474) +++ gtk3/lib/gtk3/deprecated.rb 2011-11-30 10:14:42 +0000 (5a082ba) @@ -516,6 +516,7 @@ module Gtk alias :state= :set_state define_deprecated_method :ensure_style, :warn => "Use 'Gtk::StyleContext'." define_deprecated_method :reset_rc_styles, :warn => "Use '#{self}#reset_style'." + define_deprecated_method :path, :raise => "Use '#{self}#widget_path'." alias :__set_allocation__ :set_allocation private :__set_allocation__ |