aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/gtkmm12
diff options
context:
space:
mode:
authorAlexander Nedotsukov <bland@FreeBSD.org>2004-09-05 11:15:08 +0000
committerAlexander Nedotsukov <bland@FreeBSD.org>2004-09-05 11:15:08 +0000
commit0beb901505303d90cb0e09272a08511e88e5dbb7 (patch)
tree9fc4b55591c8eefe0c8c7dd708415538900813f4 /x11-toolkits/gtkmm12
parent8f99882307aba9dc025aa7fbc490b66e65e556a9 (diff)
downloadports-0beb901505303d90cb0e09272a08511e88e5dbb7.tar.gz
ports-0beb901505303d90cb0e09272a08511e88e5dbb7.zip
Notes
Diffstat (limited to 'x11-toolkits/gtkmm12')
-rw-r--r--x11-toolkits/gtkmm12/files/patch-src::build_sources::proxy.h.m426
-rw-r--r--x11-toolkits/gtkmm12/files/patch-src::curve.gen_h13
-rw-r--r--x11-toolkits/gtkmm12/files/patch-src::gtk--::base.h25
3 files changed, 64 insertions, 0 deletions
diff --git a/x11-toolkits/gtkmm12/files/patch-src::build_sources::proxy.h.m4 b/x11-toolkits/gtkmm12/files/patch-src::build_sources::proxy.h.m4
new file mode 100644
index 000000000000..5e48974b17e2
--- /dev/null
+++ b/x11-toolkits/gtkmm12/files/patch-src::build_sources::proxy.h.m4
@@ -0,0 +1,26 @@
+--- src/build_sources/proxy.h.m4.orig Sun Sep 5 05:45:02 2004
++++ src/build_sources/proxy.h.m4 Sun Sep 5 05:50:18 2004
+@@ -174,20 +174,20 @@
+ data.callback=&callback;
+ data.obj=this;
+ SigC::ScopeNode* node=tmp->receiver();
+- obj->register_data(node);
++ this->obj->register_data(node);
+ return tmp;
+ }
+
+ RType emit(ARG_BOTH($1))
+ {
+ return reinterpret_cast<RType (*)(LIST(gObj*,1,ARG_TYPE($1),[$1]))>
+- (emit_func) (LIST(obj->gtkobj(),1,ARG_NAME($1),[$1]));
++ (emit_func) (LIST(this->obj->gtkobj(),1,ARG_NAME($1),[$1]));
+ }
+
+ RType operator()(ARG_BOTH($1))
+ {
+ return reinterpret_cast<RType (*)(LIST(gObj*,1,ARG_TYPE($1),[$1]))>
+- (emit_func) (LIST(obj->gtkobj(),1,ARG_NAME($1),[$1]));
++ (emit_func) (LIST(this->obj->gtkobj(),1,ARG_NAME($1),[$1]));
+ }
+
+ };
diff --git a/x11-toolkits/gtkmm12/files/patch-src::curve.gen_h b/x11-toolkits/gtkmm12/files/patch-src::curve.gen_h
new file mode 100644
index 000000000000..a13e6e23a12b
--- /dev/null
+++ b/x11-toolkits/gtkmm12/files/patch-src::curve.gen_h
@@ -0,0 +1,13 @@
+--- src/curve.gen_h.orig Sun Sep 5 05:44:36 2004
++++ src/curve.gen_h Sun Sep 5 05:51:36 2004
+@@ -143,8 +143,8 @@
+ int i;
+ Iterator iter;
+ for (iter=b,i=0;iter!=e;++iter,i++);
+- gfloat data[]=new gfloat[i];
+- get_vector(n,data);
++ gfloat* data=new gfloat[i];
++ get_vector(i,data);
+ for (iter=b,i=0;iter!=e;++iter,i++)
+ (*iter)=data[i];
+ delete [] data;
diff --git a/x11-toolkits/gtkmm12/files/patch-src::gtk--::base.h b/x11-toolkits/gtkmm12/files/patch-src::gtk--::base.h
new file mode 100644
index 000000000000..287102e51103
--- /dev/null
+++ b/x11-toolkits/gtkmm12/files/patch-src::gtk--::base.h
@@ -0,0 +1,25 @@
+--- src/gtk--/base.h.orig Tue Nov 14 21:23:11 2000
++++ src/gtk--/base.h Sun Sep 5 06:11:48 2004
+@@ -454,6 +454,13 @@
+ pointer operator -> () const { return &operator*(); }
+ };
+
++namespace Gtk {
++
++template <class impl, class interf>
++interf* wrap(impl*);
++
++}
++
+ // this iterator variation returns interf (wrapped from impl)
+ // Equivelency G_List_Cpp_Iterator<GtkWidget,Gtk_Widget>
+ // => list<Gtk_Widget*>::iterator
+@@ -482,7 +489,7 @@
+ value_type operator*() const
+ {
+ if (node && node->data)
+- return Gtk::wrap(static_cast<impl*>((*node).data));
++ return Gtk::wrap<impl, interf>(static_cast<impl*>((*node).data));
+ return 0;
+ }
+