[gtkmm] Gtkmm-forge digest, Vol 1 #185 - 16 msgs
- From: gtkmm-forge-request lists sourceforge net
- To: gtkmm-forge lists sourceforge net
- Subject: [gtkmm] Gtkmm-forge digest, Vol 1 #185 - 16 msgs
- Date: Thu, 08 Aug 2002 06:18:01 -0700
Send Gtkmm-forge mailing list submissions to
gtkmm-forge lists sourceforge net
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/gtkmm-forge
or, via email, send a message with subject or body 'help' to
gtkmm-forge-request lists sourceforge net
You can reach the person managing the list at
gtkmm-forge-admin lists sourceforge net
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Gtkmm-forge digest..."
gtkmm-forge is the mailing list that receives gtkmm bug reports from bugzilla. A daily digest is sent to gtkmm-main, to encourage people to help fixing the bugs.
Today's Topics:
1. [Bug 90126] Changed - Layout disturbances with gtkmm-1.3.19 (bugzilla-daemon widget gnome org)
2. [Bug 90046] Changed - An object of type 'gtkmm__[XYZ]' was created directly via g_object_new(). (bugzilla-daemon widget gnome org)
3. [Bug 90126] Changed - Layout disturbances with gtkmm-1.3.19 (bugzilla-daemon widget gnome org)
4. [Bug 90148] New - TextBuffer::delete_text() & Co. have inconvinient, non-const iterator arguments (bugzilla-daemon widget gnome org)
5. [Bug 90148] Changed - TextBuffer::delete_text() & Co. have inconvinient, non-const iterator arguments (bugzilla-daemon widget gnome org)
6. [Bug 90127] Changed - Bug in example 'rulers' and wrong enum names in Gtk::Ruler's ref doc (bugzilla-daemon widget gnome org)
7. [Bug 81422] Changed - Menu bar isn't shown correctly in latest gtkmm CVS (bugzilla-daemon widget gnome org)
8. [Bug 90095] Changed - Errors to stderr when running libglademm/examples/variablesmap (bugzilla-daemon widget gnome org)
9. [Bug 90046] Changed - An object of type 'gtkmm__[XYZ]' was created directly via g_object_new(). (bugzilla-daemon widget gnome org)
10. [Bug 90148] Changed - TextBuffer::delete_text() & Co. have inconvinient, non-const iterator arguments (bugzilla-daemon widget gnome org)
11. [Bug 90126] Changed - Layout disturbances with gtkmm-1.3.19 (bugzilla-daemon widget gnome org)
12. [Bug 90148] Changed - TextBuffer::delete_text() & Co. have inconvinient, non-const iterator arguments (bugzilla-daemon widget gnome org)
13. [Bug 90148] Changed - TextBuffer::delete_text() & Co. have inconvinient, non-const iterator arguments (bugzilla-daemon widget gnome org)
14. [Bug 90127] Changed - Bug in example 'rulers' and wrong enum names in Gtk::Ruler's ref doc (bugzilla-daemon widget gnome org)
15. [Bug 90033] Changed - Crashes when doing anything (bugzilla-daemon widget gnome org)
16. [Bug 90126] Changed - Layout disturbances with gtkmm-1.3.19 (bugzilla-daemon widget gnome org)
--__--__--
Message: 1
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net
Cc:
Date: Wed, 7 Aug 2002 15:20:42 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 90126] Changed - Layout disturbances with gtkmm-1.3.19
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
http://bugzilla.gnome.org/show_bug.cgi?id=90126
Changed by szombath bifab de
--- shadow/90126 Wed Aug 7 14:23:57 2002
+++ shadow/90126.tmp.1815 Wed Aug 7 15:20:42 2002
@@ -40,6 +40,11 @@
------- Additional Comments From murrayc usa net 2002-08-07 14:23 -------
Which examples? They would need to be fixed.
Please give us an example of the Gtk::SHRINK problem.
+
+------- Additional Comments From szombath bifab de 2002-08-07 15:20 -------
+The program ~/examples/mene/menu shows a single menubar which is about
+50 pixel in height. All programs in this directory (menu, menu2, and
+stock) show the given warning.
--__--__--
Message: 2
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net, MHL Schulze t-online de
Cc:
Date: Wed, 7 Aug 2002 15:45:15 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 90046] Changed - An object of type 'gtkmm__[XYZ]' was created directly via g_object_new().
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
http://bugzilla.gnome.org/show_bug.cgi?id=90046
Changed by murrayc usa net
--- shadow/90046 Wed Aug 7 14:45:07 2002
+++ shadow/90046.tmp.4964 Wed Aug 7 15:45:15 2002
@@ -1,13 +1,13 @@
Bug#: 90046
Product: gnomemm
Version: 2.0
OS: other
OS Details:
-Status: NEW
-Resolution:
+Status: RESOLVED
+Resolution: FIXED
Severity: normal
Priority: Normal
Component: libglademm
AssignedTo: gtkmm-forge lists sourceforge net
ReportedBy: MHL Schulze t-online de
TargetMilestone: ---
@@ -49,6 +49,9 @@
Since I'm not sure whether this is a libglademm or a gtkmm bug I'm
reporting where the bug occurs.
------- Additional Comments From murrayc usa net 2002-08-07 14:45 -------
*** Bug 90095 has been marked as a duplicate of this bug. ***
+
+------- Additional Comments From murrayc usa net 2002-08-07 15:45 -------
+Fixed. You will need the latest gtkmm and libglademm from cvs.
--__--__--
Message: 3
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net
Cc:
Date: Wed, 7 Aug 2002 15:47:43 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 90126] Changed - Layout disturbances with gtkmm-1.3.19
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
http://bugzilla.gnome.org/show_bug.cgi?id=90126
Changed by szombath bifab de
--- shadow/90126 Wed Aug 7 15:20:42 2002
+++ shadow/90126.tmp.5238 Wed Aug 7 15:47:42 2002
@@ -45,6 +45,16 @@
------- Additional Comments From szombath bifab de 2002-08-07 15:20 -------
The program ~/examples/mene/menu shows a single menubar which is about
50 pixel in height. All programs in this directory (menu, menu2, and
stock) show the given warning.
+
+------- Additional Comments From szombath bifab de 2002-08-07 15:47 -------
+I went through all example programs now. Beside the menu example
+programs I find the warning only in examples/tictactoe/ttt_test.
+This program as well as menu/menus and menu/stock look okay, only the
+warning occurs otherwise.
+
+At work we had massive layout distortions on out test applications,
+which all have menus and followed the menu/menu.cc example. With
+gtkmm-1.3.18 the code worked fine. It just happened with the new release.
--__--__--
Message: 4
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net
Cc:
Date: Wed, 7 Aug 2002 16:27:11 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 90148] New - TextBuffer::delete_text() & Co. have inconvinient, non-const iterator arguments
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
http://bugzilla.gnome.org/show_bug.cgi?id=90148
Changed by mhl schulze t-online de
--- shadow/90148 Wed Aug 7 16:27:11 2002
+++ shadow/90148.tmp.23385 Wed Aug 7 16:27:11 2002
@@ -0,0 +1,39 @@
+Bug#: 90148
+Product: gtkmm
+Version: 2.0
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity: normal
+Priority: Normal
+Component: general
+AssignedTo: gtkmm-forge lists sourceforge net
+ReportedBy: MHL Schulze t-online de
+TargetMilestone: ---
+URL:
+Summary: TextBuffer::delete_text() & Co. have inconvinient, non-const iterator arguments
+
+This was requested by Erdi Gergo:
+
+On Tue, 2002-08-06 at 22:00, ERDI Gergo wrote:
+> Lots of TextBuffer operations have signatures like this:
+>
+> void delete_text(iterator& start, iterator& end);
+>
+> Do these really return something in start/end? It's very inconvenient that
+> I can't just write
+> buffer->delete_text (buffer->begin (), buffer->end ());
+> If the signature was
+>
+> void delete_text (const iterator &begin, const iterator &end);
+>
+> it would work.
+
+Well, I found four member functions that unnecessarily take non-const
+iterators in the parameter list: delete_text, delete_interactive_text,
+insert_child_anchor, create_child_anchor, paste_clipboard.
+While the first two can be overloaded to remove this inconvinience, for the
+latter three the iterator in the parameter list can simply be changed to
+const without breaking anything because gtk doesn't change them (at least
+there is nothing in the gtk docs that suggests it).
--__--__--
Message: 5
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net
Cc:
Date: Wed, 7 Aug 2002 16:27:53 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 90148] Changed - TextBuffer::delete_text() & Co. have inconvinient, non-const iterator arguments
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
http://bugzilla.gnome.org/show_bug.cgi?id=90148
Changed by mhl schulze t-online de
--- shadow/90148 Wed Aug 7 16:27:11 2002
+++ shadow/90148.tmp.23412 Wed Aug 7 16:27:53 2002
@@ -34,6 +34,11 @@
iterators in the parameter list: delete_text, delete_interactive_text,
insert_child_anchor, create_child_anchor, paste_clipboard.
While the first two can be overloaded to remove this inconvinience, for the
latter three the iterator in the parameter list can simply be changed to
const without breaking anything because gtk doesn't change them (at least
there is nothing in the gtk docs that suggests it).
+
+------- Additional Comments From MHL Schulze t-online de 2002-08-07 16:27 -------
+Created an attachment (id=10347)
+Patch removing these inconviniences...
+
--__--__--
Message: 6
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net
Cc:
Date: Wed, 7 Aug 2002 16:35:22 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 90127] Changed - Bug in example 'rulers' and wrong enum names in Gtk::Ruler's ref doc
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
http://bugzilla.gnome.org/show_bug.cgi?id=90127
Changed by mhl schulze t-online de
--- shadow/90127 Wed Aug 7 14:25:10 2002
+++ shadow/90127.tmp.24456 Wed Aug 7 16:35:22 2002
@@ -29,6 +29,21 @@
Created an attachment (id=10341)
A patch to fix the described problems.
------- Additional Comments From murrayc usa net 2002-08-07 14:25 -------
Is this now the same as the C example?
+
+------- Additional Comments From MHL Schulze t-online de 2002-08-07 16:35 -------
+No, they do something really weird and if I do the same in gtkmm
+(using C code because I can't access the protected member function
+Gtk::Widget::on_motion_notify_event()) it somewhat works but only if
+no mouse button is not held down:
+
+
+ gtk_widget_set_events (area, GDK_POINTER_MOTION_MASK |
+ GDK_POINTER_MOTION_HINT_MASK);
+ ...
+ g_signal_connect_swapped (G_OBJECT (area), "motion_notify_event",
+ G_CALLBACK (EVENT_METHOD (hrule, motion_notify_event)), hrule);
+
+
--__--__--
Message: 7
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net
Cc:
Date: Wed, 7 Aug 2002 16:40:16 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 81422] Changed - Menu bar isn't shown correctly in latest gtkmm CVS
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
http://bugzilla.gnome.org/show_bug.cgi?id=81422
Changed by mhl schulze t-online de
--- shadow/81422 Wed Aug 7 14:40:13 2002
+++ shadow/81422.tmp.25119 Wed Aug 7 16:40:16 2002
@@ -99,6 +99,13 @@
my local copy and clicking on the attachment in bugzilla only delivers
the names of the files in the tar archive...
------- Additional Comments From murrayc usa net 2002-08-07 14:40 -------
I don't understand. Do you believe that bugzilla is expanding your
tar.gz file?
+
+------- Additional Comments From MHL Schulze t-online de 2002-08-07 16:40 -------
+I simply don't know what bugzilla is doing with tar.gz attachements.
+What I want to do is retrieve my first attachment from bugzilla but I
+don't manage to. Could you please retrieve the attachment for me and
+send it by mail if it is not possible to get it from bugzilla's html
+interface?
--__--__--
Message: 8
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net
Cc:
Date: Wed, 7 Aug 2002 17:10:27 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 90095] Changed - Errors to stderr when running libglademm/examples/variablesmap
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
http://bugzilla.gnome.org/show_bug.cgi?id=90095
Changed by michael koziarski com
--- shadow/90095 Wed Aug 7 14:45:08 2002
+++ shadow/90095.tmp.8440 Wed Aug 7 17:10:27 2002
@@ -1,12 +1,12 @@
Bug#: 90095
Product: gnomemm
Version: 2.0
OS: Linux
OS Details: RedHat 7.2 with garnome
-Status: RESOLVED
+Status: VERIFIED
Resolution: DUPLICATE
Severity: normal
Priority: Normal
Component: libglademm
AssignedTo: gtkmm-forge lists sourceforge net
ReportedBy: michael koziarski com
--__--__--
Message: 9
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net, MHL Schulze t-online de
Cc:
Date: Wed, 7 Aug 2002 17:23:15 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 90046] Changed - An object of type 'gtkmm__[XYZ]' was created directly via g_object_new().
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
http://bugzilla.gnome.org/show_bug.cgi?id=90046
Changed by michael koziarski com
--- shadow/90046 Wed Aug 7 15:45:15 2002
+++ shadow/90046.tmp.9974 Wed Aug 7 17:23:15 2002
@@ -1,12 +1,12 @@
Bug#: 90046
Product: gnomemm
Version: 2.0
OS: other
OS Details:
-Status: RESOLVED
+Status: VERIFIED
Resolution: FIXED
Severity: normal
Priority: Normal
Component: libglademm
AssignedTo: gtkmm-forge lists sourceforge net
ReportedBy: MHL Schulze t-online de
--__--__--
Message: 10
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net, MHL Schulze t-online de
Cc:
Date: Thu, 8 Aug 2002 04:13:28 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 90148] Changed - TextBuffer::delete_text() & Co. have inconvinient, non-const iterator arguments
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
http://bugzilla.gnome.org/show_bug.cgi?id=90148
Changed by murrayc usa net
--- shadow/90148 Wed Aug 7 16:27:53 2002
+++ shadow/90148.tmp.11079 Thu Aug 8 04:13:28 2002
@@ -39,6 +39,14 @@
there is nothing in the gtk docs that suggests it).
------- Additional Comments From MHL Schulze t-online de 2002-08-07 16:27 -------
Created an attachment (id=10347)
Patch removing these inconviniences...
+
+------- Additional Comments From murrayc usa net 2002-08-08 04:13 -------
+Well done, but:
+1. If you are making these iterator copies just so that the original
+can be const then please comment that, or just use const_cast<> so
+that it's obvious.
+2. I would prefer overloaded methods to have the same return type, if
+that's possible.
--__--__--
Message: 11
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net, szombath bifab de
Cc:
Date: Thu, 8 Aug 2002 04:19:13 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 90126] Changed - Layout disturbances with gtkmm-1.3.19
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
http://bugzilla.gnome.org/show_bug.cgi?id=90126
Changed by murrayc usa net
--- shadow/90126 Wed Aug 7 15:47:42 2002
+++ shadow/90126.tmp.11751 Thu Aug 8 04:19:13 2002
@@ -55,6 +55,15 @@
This program as well as menu/menus and menu/stock look okay, only the
warning occurs otherwise.
At work we had massive layout distortions on out test applications,
which all have menus and followed the menu/menu.cc example. With
gtkmm-1.3.18 the code worked fine. It just happened with the new release.
+
+------- Additional Comments From murrayc usa net 2002-08-08 04:19 -------
+I am going to delete those menu examples. There are new ones in
+examples/book/menus. You _cannot_ use manage() on top-level windows.
+
+So we need
+1. Another example of "layout disturbance".
+2. To fix the tictactoe example's use of manage().
+
--__--__--
Message: 12
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net
Cc:
Date: Thu, 8 Aug 2002 05:07:27 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 90148] Changed - TextBuffer::delete_text() & Co. have inconvinient, non-const iterator arguments
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
http://bugzilla.gnome.org/show_bug.cgi?id=90148
Changed by mhl schulze t-online de
--- shadow/90148 Thu Aug 8 04:20:45 2002
+++ shadow/90148.tmp.17772 Thu Aug 8 05:07:27 2002
@@ -47,6 +47,13 @@
Well done, but:
1. If you are making these iterator copies just so that the original
can be const then please comment that, or just use const_cast<> so
that it's obvious.
2. I would prefer overloaded methods to have the same return type, if
that's possible.
+
+------- Additional Comments From MHL Schulze t-online de 2002-08-08 05:07 -------
+Before using const_cast<> I have to dig in the C sources to be 100%
+sure that the iterators are not touched. Will do so later today.
+The returnal of an iterator from delete_text() was proposed by Carl
+Nygard to be more STL-like. I'm waiting for you to think that over
+before changing it to void :-)
--__--__--
Message: 13
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net, MHL Schulze t-online de
Cc:
Date: Thu, 8 Aug 2002 05:28:52 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 90148] Changed - TextBuffer::delete_text() & Co. have inconvinient, non-const iterator arguments
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
http://bugzilla.gnome.org/show_bug.cgi?id=90148
Changed by murrayc usa net
--- shadow/90148 Thu Aug 8 05:07:27 2002
+++ shadow/90148.tmp.20345 Thu Aug 8 05:28:52 2002
@@ -54,6 +54,13 @@
------- Additional Comments From MHL Schulze t-online de 2002-08-08 05:07 -------
Before using const_cast<> I have to dig in the C sources to be 100%
sure that the iterators are not touched. Will do so later today.
The returnal of an iterator from delete_text() was proposed by Carl
Nygard to be more STL-like. I'm waiting for you to think that over
before changing it to void :-)
+
+------- Additional Comments From murrayc usa net 2002-08-08 05:28 -------
+No, I like that it returns an iterator. I think that the other
+overload should do that too.
+
+Yes, we do need to check the sources sometimes. C people don't use
+const very often unless it's a char*.
--__--__--
Message: 14
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net, MHL Schulze t-online de
Cc:
Date: Thu, 8 Aug 2002 05:35:19 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 90127] Changed - Bug in example 'rulers' and wrong enum names in Gtk::Ruler's ref doc
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
http://bugzilla.gnome.org/show_bug.cgi?id=90127
Changed by murrayc usa net
--- shadow/90127 Wed Aug 7 16:35:22 2002
+++ shadow/90127.tmp.21219 Thu Aug 8 05:35:19 2002
@@ -1,13 +1,13 @@
Bug#: 90127
Product: gtkmm
Version: 2.0
OS: other
OS Details:
-Status: NEW
-Resolution:
+Status: RESOLVED
+Resolution: FIXED
Severity: normal
Priority: Normal
Component: general
AssignedTo: gtkmm-forge lists sourceforge net
ReportedBy: MHL Schulze t-online de
TargetMilestone: ---
@@ -44,6 +44,9 @@
GDK_POINTER_MOTION_HINT_MASK);
...
g_signal_connect_swapped (G_OBJECT (area), "motion_notify_event",
G_CALLBACK (EVENT_METHOD (hrule, motion_notify_event)), hrule);
+
+------- Additional Comments From murrayc usa net 2002-08-08 05:35 -------
+Yes, I remember that now. Thanks a lot.
--__--__--
Message: 15
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net, arne 123soft de
Cc:
Date: Thu, 8 Aug 2002 05:53:00 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 90033] Changed - Crashes when doing anything
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
http://bugzilla.gnome.org/show_bug.cgi?id=90033
Changed by murrayc usa net
--- shadow/90033 Tue Aug 6 15:09:24 2002
+++ shadow/90033.tmp.23244 Thu Aug 8 05:53:00 2002
@@ -54,6 +54,9 @@
libsigc++ 1.2 examples to work with libsigc++ 1.0?
Please try rebuilding the latest tarballs of libsigc++ 1.2 and gtkmm 1.3.
+
+------- Additional Comments From murrayc usa net 2002-08-08 05:52 -------
+That tarball is out now. Please test.
--__--__--
Message: 16
From: bugzilla-daemon widget gnome org
To: gtkmm-forge lists sourceforge net
Cc:
Date: Thu, 8 Aug 2002 09:16:33 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 90126] Changed - Layout disturbances with gtkmm-1.3.19
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
http://bugzilla.gnome.org/show_bug.cgi?id=90126
Changed by szombath bifab de
--- shadow/90126 Thu Aug 8 04:19:13 2002
+++ shadow/90126.tmp.15788 Thu Aug 8 09:16:33 2002
@@ -64,6 +64,53 @@
examples/book/menus. You _cannot_ use manage() on top-level windows.
So we need
1. Another example of "layout disturbance".
2. To fix the tictactoe example's use of manage().
+
+------- Additional Comments From szombath bifab de 2002-08-08 09:16 -------
+Actually we have two problems in this case:
+
+(1) managed Gtk::Windows without parent containers
+
+This gives the shown warnings. The code of the affected examples has
+to be fixed here. This has nothing to do with the "layout
+disturbance", it simply happened to show up at the same time in
+examples/menu/menu.cc.
+
+(2) use of Gtk::SHRINK instead of Gtk::PACK_SHRINK
+
+Box::pack_start was changed (1.13.18 -> 1.3.19) from AttachOptions to
+PackOptions type for the option parameter:
+
+class Box {
+
+ ...
+ void pack_start(Widget& child, bool expand,
+ bool fill = true,
+ guint padding = 0);
+ void pack_start(Widget& child,
+ PackOptions options = PACK_EXPAND_WIDGET,
+ guint padding = 0);
+
+ ...
+};
+
+Some people (like me) still have Gtk::SHRINK applied to pack_start
+member function of box type containers. The problem here is now, that
+using wrong AttachOptions here gives no compiler error, because it
+automatically evaluates the second and third parameter to bool thus
+matching the first form of Box::pack_start. I can clearly see that
+when hide to first member function:
+
+ "menu.cc", line 66: Error: Formal argument options of type
+ Gtk::PackOptions in call to Gtk::Box::pack_start(Gtk::Widget&,
+ Gtk::PackOptions, unsigned) is being passed Gtk::AttachOptions.
+
+After changing all occurances of Gtk::SHRING to Gtk::PACK_SHRINK all
+"layout disturbance" in our test applications is gone.
+
+So, we have to think about the first pack_start member function. Their
+automatic matching has to be prevented in my eyes. Seems to me that
+have to melt somewhat which was just frozen :-(
+
--__--__--
_______________________________________________
Gtkmm-forge mailing list
Gtkmm-forge lists sourceforge net
https://lists.sourceforge.net/lists/listinfo/gtkmm-forge
End of Gtkmm-forge Digest
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]