[gtkmm] Widget: Remove the extension-event property.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Widget: Remove the extension-event property.
- Date: Mon, 4 Apr 2011 09:01:23 +0000 (UTC)
commit dca8176f6ddb7ae36fc19457bec22c0bf085146a
Author: Murray Cumming <murrayc murrayc com>
Date: Mon Apr 4 11:01:14 2011 +0200
Widget: Remove the extension-event property.
* gdk/src/event.hg: Remove the now-unused, and maybe already not-generated,
ExtensionMode enum.
* gtk/src/widget.hg: Remove the extension-event property because it was
removed in GTK+ 3 though it is not deprecated in GTK+ 2.24.
ChangeLog | 9 +++++++++
gdk/src/event.hg | 1 -
gtk/src/widget.hg | 45 ++++++++++++++++++++++-----------------------
3 files changed, 31 insertions(+), 24 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 7a60b8a..c5df583 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
2011-04-04 Murray Cumming <murrayc murrayc com>
+ Widget: Remove the extension-event property.
+
+ * gdk/src/event.hg: Remove the now-unused, and maybe already not-generated,
+ ExtensionMode enum.
+ * gtk/src/widget.hg: Remove the extension-event property because it was
+ removed in GTK+ 3 though it is not deprecated in GTK+ 2.24.
+
+2011-04-04 Murray Cumming <murrayc murrayc com>
+
Gtk::NumerableIcon: Really add get_background_gicon() const.
* gtk/src/numerableicon.hg: Fix a typo so that
diff --git a/gdk/src/event.hg b/gdk/src/event.hg
index 57bf767..0cef18c 100644
--- a/gdk/src/event.hg
+++ b/gdk/src/event.hg
@@ -44,7 +44,6 @@ _WRAP_ENUM(EventType, GdkEventType,
s#^3BUTTON_PRESS#TRIPLE_BUTTON_PRESS#
)
-_WRAP_ENUM(ExtensionMode, GdkExtensionMode)
_WRAP_ENUM(AxisUse, GdkAxisUse)
//TODO: Actually use this class instead of GdkEvent?
diff --git a/gtk/src/widget.hg b/gtk/src/widget.hg
index ca040e9..5bc1a31 100644
--- a/gtk/src/widget.hg
+++ b/gtk/src/widget.hg
@@ -219,7 +219,7 @@ public:
_WRAP_METHOD(void set_state(StateType state), gtk_widget_set_state)
_WRAP_METHOD(StateType get_state() const, gtk_widget_get_state)
-
+
_WRAP_METHOD(void set_state_flags(StateFlags flags, bool clear = true), gtk_widget_set_state_flags)
_WRAP_METHOD(void unset_state_flags(StateFlags flags), gtk_widget_unset_state_flags)
_WRAP_METHOD(StateFlags get_state_flags() const, gtk_widget_get_state_flags)
@@ -281,7 +281,7 @@ public:
_WRAP_METHOD(void set_device_events(const Glib::RefPtr<const Gdk::Device>& device, Gdk::EventMask events), gtk_widget_set_device_events)
_WRAP_METHOD(void add_device_events(const Glib::RefPtr<const Gdk::Device>& device, Gdk::EventMask events), gtk_widget_add_device_events)
-
+
_WRAP_METHOD(void set_device_enabled(const Glib::RefPtr<Gdk::Device>& device, bool enabled = true), gtk_widget_set_device_enabled)
_WRAP_METHOD(bool get_device_enabled(const Glib::RefPtr<const Gdk::Device>& device) const, gtk_widget_get_device_enabled)
@@ -362,31 +362,31 @@ public:
//TODO: Documentation.
void unset_color(StateFlags state = (StateFlags)0);
-
+
//TODO: Documentation.
void override_background_color(const Gdk::RGBA& color, StateFlags state = (StateFlags)0);
_IGNORE(gtk_widget_override_background_color)
-
+
//TODO: Documentation.
void unset_background_color(StateFlags state = (StateFlags)0);
-
+
_WRAP_METHOD(void override_font(const Pango::FontDescription& font_desc), gtk_widget_override_font)
-
+
//TODO: Documentation.
void unset_font();
-
+
_WRAP_METHOD(void override_symbolic_color(const Glib::ustring& name, const Gdk::RGBA& color), gtk_widget_override_symbolic_color)
-
+
//TODO: Documentation.
void unset_symbolic_color(const Glib::ustring& name);
-
+
_WRAP_METHOD(void override_cursor(const Gdk::RGBA& cursor, const Gdk::RGBA& secondary_cursor), gtk_widget_override_cursor)
//TODO: Documentation.
void unset_cursor();
-
+
_IGNORE(gtk_widget_modify_fg, gtk_widget_modify_bg, gtk_widget_modify_font, gtk_widget_modify_text,
- gtk_widget_modify_base, gtk_widget_modify_cursor, gtk_widget_modify_symbolic_color) //deprecated
+ gtk_widget_modify_base, gtk_widget_modify_cursor, gtk_widget_modify_symbolic_color) //deprecated
_WRAP_METHOD(void reset_style(), gtk_widget_reset_style)
@@ -398,8 +398,8 @@ public:
_WRAP_METHOD(Glib::RefPtr<Pango::Context> get_pango_context(), gtk_widget_get_pango_context, refreturn)
_WRAP_METHOD(Glib::RefPtr<Pango::Layout> create_pango_layout(const Glib::ustring& text), gtk_widget_create_pango_layout)
- _IGNORE(gtk_widget_render_icon) //deprecated.
- _WRAP_METHOD(Glib::RefPtr<Gdk::Pixbuf> render_icon_pixbuf(const StockID& stock_id, IconSize size), gtk_widget_render_icon_pixbuf)
+ _IGNORE(gtk_widget_render_icon) //deprecated.
+ _WRAP_METHOD(Glib::RefPtr<Gdk::Pixbuf> render_icon_pixbuf(const StockID& stock_id, IconSize size), gtk_widget_render_icon_pixbuf)
_WRAP_METHOD(void set_composite_name(const Glib::ustring& name), gtk_widget_set_composite_name)
void unset_composite_name();
@@ -510,7 +510,7 @@ public:
_IGNORE(gtk_widget_get_action) //deprecated
_WRAP_METHOD(bool in_destruction() const, gtk_widget_in_destruction)
-
+
_WRAP_METHOD(Glib::RefPtr<StyleContext> get_style_context(), gtk_widget_get_style_context, refreturn)
_WRAP_METHOD(Glib::RefPtr<Gtk::StyleContext> get_style_context() const, gtk_widget_get_style_context, refreturn, constversion)
@@ -797,7 +797,6 @@ dnl
_WRAP_PROPERTY("composite_child", bool)
_WRAP_PROPERTY("style", Glib::RefPtr<Style>)
_WRAP_PROPERTY("events", Gdk::EventMask)
- _WRAP_PROPERTY("extension_events", Gdk::ExtensionMode)
_WRAP_PROPERTY("has_tooltip", bool)
_WRAP_PROPERTY("tooltip_markup", Glib::ustring)
_WRAP_PROPERTY("tooltip_text", Glib::ustring)
@@ -837,27 +836,27 @@ protected:
_WRAP_METHOD(void set_realized(bool realized = true), gtk_widget_set_realized)
_WRAP_METHOD(void set_has_window(bool has_window = true), gtk_widget_set_has_window)
-
+
/** Sets a widget's window. This function should only be used in a
* widget's Gtk::Widget::on_realize() implementation. The %window passed is
* usually either a new window created with Gdk::Window::create(), or the
* window of its parent widget as returned by get_parent_window().
- *
+ *
* Widgets must indicate whether they will create their own Gdk::Window
* by calling set_has_window(). This is usually done in the
* widget's constructor.
*
* This function should only be called by custom widget implementations,
* and they should call it in their on_realize() function.
- *
+ *
* @newin{2,18}
* @param window A Gdk::Window.
*/
void set_window(const Glib::RefPtr<Gdk::Window>& window);
_IGNORE(gtk_widget_set_window)
-
+
_WRAP_METHOD(static bool should_draw_window(const Cairo::RefPtr<const Cairo::Context>& cr, const Glib::RefPtr<const Gdk::Window>& window), gtk_cairo_should_draw_window)
-
+
/** Transforms the given cairo context @a cr from widget-relative
* coordinates to window-relative coordinates.
* If the widget's window is not an ancestor of @a window, no
@@ -867,7 +866,7 @@ protected:
* preparing an expose event to be emitted with the Widget's draw
* signal. It is intended to help porting multiwindow widgets from
* GTK+ 2 to the rendering architecture of GTK+ 3.
- *
+ *
* @param cr The cairo context to transform.
* @param window The window to transform the context to.
*
@@ -875,7 +874,7 @@ protected:
*/
void transform_cairo_context_to_window(const Cairo::RefPtr<Cairo::Context>& cr, const Glib::RefPtr<const Gdk::Window>& window);
_IGNORE(gtk_cairo_transform_to_window)
-
+
/** Retrieves the widget's requisition.
*
* This method should only be used by widget implementations in
@@ -891,7 +890,7 @@ protected:
*/
Requisition get_requisition() const;
_IGNORE(gtk_widget_get_requisition)
-
+
_IGNORE(gtk_widget_style_attach) //deprecated
_IGNORE(gtk_widget_get_child_requisition) //deprecated.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]