[gtkmm] Gtk::Widget: Deprecate property_double_buffered()
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Gtk::Widget: Deprecate property_double_buffered()
- Date: Thu, 10 Jul 2014 14:45:14 +0000 (UTC)
commit e590b608528f64f4da68348ed8b2be96f66bd04b
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date: Thu Jul 10 16:29:06 2014 +0200
Gtk::Widget: Deprecate property_double_buffered()
* gtk/src/widget.hg: Deprecate set/get_double_buffered() and
property_double_buffered() which have been deprecated in gtk+.
Delete obsolete _IGNORE directives and obsolete comments.
gtk/src/widget.hg | 31 ++++++++-----------------------
1 files changed, 8 insertions(+), 23 deletions(-)
---
diff --git a/gtk/src/widget.hg b/gtk/src/widget.hg
index b058f03..0568db2 100644
--- a/gtk/src/widget.hg
+++ b/gtk/src/widget.hg
@@ -38,7 +38,6 @@ _CONFIGINCLUDE(gtkmmconfig.h)
#include <gtkmm/enums.h>
#include <gdkmm/display.h>
#include <gtkmm/targetlist.h>
-//#include <gtkmm/stockid.h>
#include <gtkmm/clipboard.h>
#include <gtkmm/requisition.h>
#include <gtkmm/stylecontext.h>
@@ -114,10 +113,7 @@ class Widget
_CLASS_GTKOBJECT(Widget,GtkWidget,GTK_WIDGET,Object,GObject)
_IMPLEMENTS_INTERFACE(Buildable)
_IMPLEMENTS_INTERFACE(Atk::Implementor, ifdef GTKMM_ATKMM_ENABLED)
- _IGNORE(gtk_widget_set, gtk_widget_queue_clear, gtk_widget_queue_clear_area,
- gtk_widget_set_uposition, gtk_widget_set_usize, gtk_widget_set_visual, gtk_widget_push_visual,
- gtk_widget_pop_visual, gtk_widget_set_default_visual, gtk_widget_set_rc_style,
gtk_widget_restore_default_style)
- _IGNORE(gtk_widget_destroy, gtk_widget_ref, gtk_widget_unref, gtk_widget_destroyed,
gtk_widget_hide_on_delete,
+ _IGNORE(gtk_widget_set_visual, gtk_widget_destroy, gtk_widget_destroyed, gtk_widget_hide_on_delete,
gtk_widget_style_get_valist, gtk_widget_list_accel_closures, gtk_widget_style_get)
public:
friend class Main;
@@ -130,8 +126,6 @@ public:
_WRAP_METHOD(void show_all(), gtk_widget_show_all)
- _IGNORE(gtk_widget_hide_all) //deprecated
-
/* QUEUE DRAWS */
_WRAP_METHOD(void queue_draw(), gtk_widget_queue_draw)
@@ -165,8 +159,6 @@ public:
//GList* gtk_widget_list_accel_closures();
- //TODO: Or maybe it is useless: gboolean gtk_widget_can_activate_accel(GtkWidget *widget, guint signal_id)
-
_WRAP_METHOD(bool mnemonic_activate(bool group_cycling), gtk_widget_mnemonic_activate)
_IGNORE(gtk_widget_can_activate_accel)
@@ -258,8 +250,10 @@ public:
_WRAP_METHOD(bool get_mapped() const, gtk_widget_get_mapped)
_WRAP_METHOD(void set_app_paintable(bool app_paintable = true), gtk_widget_set_app_paintable)
_WRAP_METHOD(bool get_app_paintable() const, gtk_widget_get_app_paintable)
- _WRAP_METHOD(void set_double_buffered(bool double_buffered = true), gtk_widget_set_double_buffered)
- _WRAP_METHOD(bool get_double_buffered() const, gtk_widget_get_double_buffered)
+ _WRAP_METHOD(void set_double_buffered(bool double_buffered = true), gtk_widget_set_double_buffered,
+ deprecated "This does not work under non-X11 backends, and it should not be used in newly written code.")
+ _WRAP_METHOD(bool get_double_buffered() const, gtk_widget_get_double_buffered,
+ deprecated "This should not be used in newly written code.")
_WRAP_METHOD(void set_redraw_on_allocate(bool redraw_on_allocate = true),
gtk_widget_set_redraw_on_allocate)
@@ -397,10 +391,9 @@ public:
int& dest_x, int& dest_y), gtk_widget_translate_coordinates)
_IGNORE(gtk_widget_set_style, gtk_widget_get_style, gtk_widget_has_rc_style, gtk_widget_ensure_style,
- gtk_widget_modify_style, gtk_widget_get_modifier_style, gtk_widget_get_default_style,
+ gtk_widget_modify_style, gtk_widget_get_modifier_style,
gtk_widget_reset_rc_styles) //deprecated broadly in favour of StyleContext.;
-
_WRAP_METHOD(void override_color(const Gdk::RGBA& color{.}, StateFlags state{.} = STATE_FLAG_NORMAL),
gtk_widget_override_color)
/** Undoes the effect of previous calls to override_color().
@@ -445,7 +438,7 @@ public:
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) //deprecated
_WRAP_METHOD(void reset_style(), gtk_widget_reset_style)
@@ -583,8 +576,6 @@ public:
_WRAP_METHOD(bool is_composited() const, gtk_widget_is_composited)
- _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)
@@ -629,8 +620,6 @@ public:
//_WRAP(meth|sig|impl,void unrealize_(),gtk_widget_unrealize,"unrealize")
_WRAP_SIGNAL(void unrealize(),"unrealize")
- _IGNORE_SIGNAL(size_request) //size-request is deprecated and soon to be removed.
-
#m4 _CONVERSION(`Allocation&',`GdkRectangle*',`($2)($3.gobj())')
#m4 _CONVERSION(`GdkRectangle*',`Allocation&',`($2)(Glib::wrap($3))')
_WRAP_SIGNAL(void size_allocate(Allocation& allocation), "size_allocate")
@@ -661,8 +650,6 @@ public:
_WRAP_SIGNAL(void child_notify(GParamSpec* pspec), "child_notify")
- //_WRAP_SIGNAL(void add_accelerator(guint, GtkAccelGroup*, guint accel_key, Gdk::ModifierType,
AccelFlags), "add-accelerator")
- //_WRAP_SIGNAL(void remove_accelerator(GtkAccelGroup* accel_group, guint, Gdk::ModifierType),
"remove-accelerator")
_WRAP_SIGNAL(bool mnemonic_activate(bool group_cycling), "mnemonic_activate")
_WRAP_SIGNAL(void grab_focus(), "grab_focus")
_WRAP_SIGNAL(bool focus(DirectionType direction), "focus")
@@ -742,8 +729,6 @@ dnl
_WRAP_SIGNAL(bool drag_drop(const Glib::RefPtr<Gdk::DragContext>& context, int x, int y, guint time),
"drag_drop")
_WRAP_SIGNAL(void drag_data_received(const Glib::RefPtr<Gdk::DragContext>& context, int x, int y, const
SelectionData& selection_data, guint info, guint time), "drag_data_received")
- //_WRAP_SIGNAL(Glib::RefPtr<Atk::Object> get_accessible(), "get_accessible", ifdef GTKMM_ATKMM_ENABLED,
refreturn, deprecated)
-
_CONVERSION(`GdkScreen*',`const Glib::RefPtr<Gdk::Screen>&',`Glib::wrap($3, true)')
_WRAP_SIGNAL(void screen_changed(const Glib::RefPtr<Gdk::Screen>& previous_screen), "screen_changed")
@@ -795,7 +780,7 @@ _CONVERSION(`GdkScreen*',`const Glib::RefPtr<Gdk::Screen>&',`Glib::wrap($3, true
_WRAP_PROPERTY("tooltip_text", Glib::ustring)
_WRAP_PROPERTY("window", Glib::RefPtr<Gdk::Window>)
_WRAP_PROPERTY("no-show-all", bool)
- _WRAP_PROPERTY("double-buffered", bool)
+ _WRAP_PROPERTY("double-buffered", bool, deprecated "Widgets should not use this property.")
_WRAP_PROPERTY("halign", Align)
_WRAP_PROPERTY("valign", Align)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]