[gtkmm/gtkmm-2-24] Notebook: Deprecated set_window_creation_hook().
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm/gtkmm-2-24] Notebook: Deprecated set_window_creation_hook().
- Date: Fri, 14 Jan 2011 15:59:01 +0000 (UTC)
commit 889ec053ac160576341f1e46d505a3920bff73eb
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Jan 14 16:56:43 2011 +0100
Notebook: Deprecated set_window_creation_hook().
* gtk/src/notebook.[hg|ccg]: This method is deprecated in favour of the
existing create-window signal, but that still does not seem useful or
worth wrapping.
ChangeLog | 8 ++++++++
gtk/src/notebook.ccg | 6 ++++++
gtk/src/notebook.hg | 4 ++++
3 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index a74446c..1230447 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2011-01-14 Murray Cumming <murrayc murrayc com>
+ Notebook: Deprecated set_window_creation_hook().
+
+ * gtk/src/notebook.[hg|ccg]: This method is deprecated in favour of the
+ existing create-window signal, but that still does not seem useful or
+ worth wrapping.
+
+2011-01-14 Murray Cumming <murrayc murrayc com>
+
AboutDialog: Deprecate set_email/url_hook(), adding signal_activated().
* gtk/src/aboutdialog.[hg|ccg]: Add signal_activate() to replace
diff --git a/gtk/src/notebook.ccg b/gtk/src/notebook.ccg
index 93ec229..abc8885 100644
--- a/gtk/src/notebook.ccg
+++ b/gtk/src/notebook.ccg
@@ -22,10 +22,13 @@
#include <gtkmm/label.h>
#include <algorithm>
+
namespace
{
extern "C"
{
+
+_DEPRECATE_IFDEF_START
static GtkNotebook* SignalProxy_WindowCreation_gtk_callback(GtkNotebook*, GtkWidget* page,
int x, int y, void* data)
{
@@ -41,6 +44,7 @@ static GtkNotebook* SignalProxy_WindowCreation_gtk_callback(GtkNotebook*, GtkWid
}
return 0;
}
+_DEPRECATE_IFDEF_END
static void SignalProxy_WindowCreation_gtk_callback_destroy(void* data)
{
@@ -456,6 +460,7 @@ int Notebook::insert_page(Widget& child, int position)
return gtk_notebook_insert_page(gobj(), child.gobj(), 0 /* see GTK+ docs */, position);
}
+_DEPRECATE_IFDEF_START
typedef sigc::slot<Widget*, int, int> SlotWindowCreation;
void Notebook::set_window_creation_hook(const SlotWindowCreation& slot)
@@ -463,6 +468,7 @@ void Notebook::set_window_creation_hook(const SlotWindowCreation& slot)
SlotWindowCreation* slot_copy = new SlotWindowCreation(slot);
gtk_notebook_set_window_creation_hook(&SignalProxy_WindowCreation_gtk_callback, slot_copy, &SignalProxy_WindowCreation_gtk_callback_destroy);
}
+_DEPRECATE_IFDEF_END
} //namespace Gtk
diff --git a/gtk/src/notebook.hg b/gtk/src/notebook.hg
index a9c33ad..69e40dc 100644
--- a/gtk/src/notebook.hg
+++ b/gtk/src/notebook.hg
@@ -361,13 +361,17 @@ public:
_WRAP_METHOD(void remove_page(int page_num = 0), gtk_notebook_remove_page)
void remove_page(Widget& child);
+_DEPRECATE_IFDEF_START
/** For instance,
* Notebook* on_window_creation(Widget* page, int x, int y);
*/
typedef sigc::slot<Notebook*, Widget*, int, int> SlotWindowCreation;
+ /** @deprecated Use the GtkNotebook::create-window signal instead.
+ */
static void set_window_creation_hook(const SlotWindowCreation& slot);
_IGNORE(gtk_notebook_set_window_creation_hook)
+_DEPRECATE_IFDEF_END
_WRAP_METHOD(void set_group_id(int group_id), gtk_notebook_set_group_id, deprecated)
_WRAP_METHOD(int get_group_id() const, gtk_notebook_get_group_id, deprecated)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]