[gtkmm] Gtkmm-forge digest, Vol 1 #689 - 12 msgs



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. Do not try to unsubscribe gtkmm-forge from gtkmm-list.


Today's Topics:

   1. [Bug 142462] New:  - typo in gtkmm/treepath.h : (bugzilla-daemon bugzilla gnome org)
   2. [Bug 142462]  - typo in gtkmm/treepath.h : (bugzilla-daemon bugzilla gnome org)
   3. [Bug 132300]  - G++-3.4 Prerelease: Private copy constructor for Glib::ConstructParams. (bugzilla-daemon bugzilla gnome org)
   4. [Bug 142516] New:  - libglademm won't compile with gcc 3.4 (bugzilla-daemon bugzilla gnome org)
   5. [Bug 136915]  - Improved string function (bugzilla-daemon bugzilla gnome org)
   6. [Bug 142516]  - libglademm won't compile with gcc 3.4 (bugzilla-daemon bugzilla gnome org)
   7. [Bug 142126]  - broken Gtk::TextIter API (bugzilla-daemon bugzilla gnome org)
   8. [Bug 142138]  - Gtk::FileChooser::get_filename() should return std::string (bugzilla-daemon bugzilla gnome org)
   9. [Bug 126213]  - maybe signals-with-return-types should connect_before (bugzilla-daemon bugzilla gnome org)
  10. [Bug 104332]  - Make RefPtr<> a general-purpose smart pointer (bugzilla-daemon bugzilla gnome org)
  11. [Bug 142599] New:  - Inappropriate implementation of Gtk::TreeIter::operator bool() (bugzilla-daemon bugzilla gnome org)
  12. [Bug 142599]  - Inappropriate implementation of Gtk::TreeIter::operator bool() (bugzilla-daemon bugzilla gnome org)

--__--__--

Message: 1
From: bugzilla-daemon bugzilla gnome org
To: gtkmm-forge lists sourceforge net
Cc: 
Date: Thu, 13 May 2004 11:03:57 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 142462] New:  - typo in gtkmm/treepath.h :

http://bugzilla.gnome.org/show_bug.cgi?id=142462
gtkmm | general | Ver: 2.2

           Summary: typo in gtkmm/treepath.h :
           Product: gtkmm
           Version: 2.2
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: general
        AssignedTo: gtkmm-forge lists sourceforge net
        ReportedBy: diemumiee gmx de


install gcc-3.4
build a gtkmm application that includes teepath.h

Result:
|| In file included from /usr/include/gtkmm-2.0/gtkmm/treestore.h:33,
|| /usr/include/gtkmm-2.0/gtkmm/treepath.h: In member function `void Gtk::
TreePath::append(In, In)':
/usr/include/gtkmm-2.0/gtkmm/treepath.h|297| error: insufficient contextual 
information to determine type

because
void TreePath::append(In pbegin, In pend)
 {
   // push_back() can't throw -- if it could, this code wouldn't be strongly 
exception-safe.
   for(; pbegin != pend; ++pbegin)
     this->push_back(*begin);
 }

should be:
void TreePath::append(In pbegin, In pend)
 {
   // push_back() can't throw -- if it could, this code wouldn't be strongly 
exception-safe.
   for(; pbegin != pend; ++pbegin)
     this->push_back(*pbegin);
 }

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


--__--__--

Message: 2
From: bugzilla-daemon bugzilla gnome org
To: gtkmm-forge lists sourceforge net
Cc: 
Date: Thu, 13 May 2004 11:17:31 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 142462]  - typo in gtkmm/treepath.h :

http://bugzilla.gnome.org/show_bug.cgi?id=142462
gtkmm | general | Ver: 2.2

daniel elstner gmx net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
            Summary|typo in gtkmm/treepath.h :  |typo in gtkmm/treepath.h :



------- Additional Comments From daniel elstner gmx net  2004-05-13 11:17 -------
Fixed in CVS.  Thanks.

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


--__--__--

Message: 3
From: bugzilla-daemon bugzilla gnome org
To: gtkmm-forge lists sourceforge net
Cc: 
Date: Thu, 13 May 2004 11:48:37 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 132300]  - G++-3.4 Prerelease: Private copy constructor for Glib::ConstructParams.

http://bugzilla.gnome.org/show_bug.cgi?id=132300
gtkmm | general | Ver: 2.4





------- Additional Comments From daniel elstner gmx net  2004-05-13 11:48 -------
As it happens I had already written a little patch to fix this when Matthew
first told me about the problem, which then got lost due to my long absence from
gtkmm development.

Anyway, I stumbled over this issue again today and noticed that the current
solution doesn't implement the copy constructor properly, thus in effect relying
on the call being optimized away by the compiler.  To fix this pontential
problem, I now committed my older patch to both the glibmm and the gtkmm2 module:

2004-05-13  Daniel Elstner  <daniel elstner gmx net>

	* glib/glibmm/object.{cc,h} (ConstructParams::ConstructParams):
	Implement the copy constructor in a way that actually works if used.
	Relying on the compiler to optimize it away is a bad idea. (#132300)


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


--__--__--

Message: 4
From: bugzilla-daemon bugzilla gnome org
To: gtkmm-forge lists sourceforge net
Cc: 
Date: Fri, 14 May 2004 01:33:33 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 142516] New:  - libglademm won't compile with gcc 3.4

http://bugzilla.gnome.org/show_bug.cgi?id=142516
gnomemm | libglademm | Ver: 2.6

           Summary: libglademm won't compile with gcc 3.4
           Product: gnomemm
           Version: 2.6
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Urgent
         Component: libglademm
        AssignedTo: gtkmm-forge lists sourceforge net
        ReportedBy: bryan reigndropsfall net


All the library files compile fine, but when it gets to the derived example, I
get this:

../../libglade/libglademm/xml.h: In member function `T_Widget*
Gnome::Glade::Xml::get_widget_derived(const Glib::ustring&, T_Widget*&) [with
T_Widget = DerivedDialog]':
main.cc:42:   instantiated from here
../../libglade/libglademm/xml.h:248: error: no matching function for call to
`wrap(GtkDialog*&)'
/usr/include/glibmm-2.4/glibmm/wrap.h:55: note: candidates are:
Glib::RefPtr<Glib::Object> Glib::wrap(GObject*, bool)
/usr/include/glibmm-2.4/glibmm/main.h:438: note:                
Glib::RefPtr<Glib::MainContext> Glib::wrap(GMainContext*, bool)
/usr/include/glibmm-2.4/glibmm/main.h:496: note:                
Glib::RefPtr<Glib::MainLoop> Glib::wrap(GMainLoop*, bool)
/usr/include/glibmm-2.4/glibmm/iochannel.h:558: note:                
Glib::RefPtr<Glib::IOChannel> Glib::wrap(GIOChannel*, bool)
/usr/include/glibmm-2.4/glibmm/thread.h:333: note:                 Glib::Thread*
Glib::wrap(GThread*)
/usr/include/pangomm-1.4/pangomm/fontdescription.h:512: note:                
Pango::FontDescription Glib::wrap(PangoFontDescription*, bool)
/usr/include/pangomm-1.4/pangomm/fontmetrics.h:141: note:                
Pango::FontMetrics Glib::wrap(PangoFontMetrics*, bool)
/usr/include/pangomm-1.4/pangomm/language.h:234: note:                
Pango::Language Glib::wrap(PangoLanguage*, bool)
/usr/include/pangomm-1.4/pangomm/rectangle.h:155: note:                
Pango::Rectangle& Glib::wrap(PangoRectangle*)
/usr/include/pangomm-1.4/pangomm/rectangle.h:158: note:                 const
Pango::Rectangle& Glib::wrap(const PangoRectangle*)
/usr/include/pangomm-1.4/pangomm/glyph.h:202: note:                
Pango::GlyphInfo& Glib::wrap(PangoGlyphInfo*)
/usr/include/pangomm-1.4/pangomm/glyph.h:205: note:                 const
Pango::GlyphInfo& Glib::wrap(const PangoGlyphInfo*)
/usr/include/pangomm-1.4/pangomm/glyph.h:208: note:                
Pango::GlyphGeometry& Glib::wrap(PangoGlyphGeometry*)
/usr/include/pangomm-1.4/pangomm/glyph.h:211: note:                 const
Pango::GlyphGeometry& Glib::wrap(const PangoGlyphGeometry*)
/usr/include/pangomm-1.4/pangomm/coverage.h:164: note:                
Glib::RefPtr<Pango::Coverage> Glib::wrap(PangoCoverage*, bool)
/usr/include/pangomm-1.4/pangomm/font.h:189: note:                
Glib::RefPtr<Pango::Font> Glib::wrap(PangoFont*, bool)
/usr/include/pangomm-1.4/pangomm/fontset.h:149: note:                
Glib::RefPtr<Pango::Fontset> Glib::wrap(PangoFontset*, bool)
/usr/include/pangomm-1.4/pangomm/fontface.h:146: note:                
Glib::RefPtr<Pango::FontFace> Glib::wrap(PangoFontFace*, bool)
/usr/include/pangomm-1.4/pangomm/fontfamily.h:166: note:                
Glib::RefPtr<Pango::FontFamily> Glib::wrap(PangoFontFamily*, bool)
/usr/include/pangomm-1.4/pangomm/fontmap.h:148: note:                
Glib::RefPtr<Pango::FontMap> Glib::wrap(PangoFontMap*, bool)
/usr/include/pangomm-1.4/pangomm/color.h:117: note:                
Pango::Color& Glib::wrap(PangoColor*)
/usr/include/pangomm-1.4/pangomm/color.h:123: note:                 const
Pango::Color& Glib::wrap(const PangoColor*)
/usr/include/pangomm-1.4/pangomm/attributes.h:639: note:                
Pango::Attribute Glib::wrap(PangoAttribute*, bool)
/usr/include/pangomm-1.4/pangomm/attributes.h:642: note:                
Pango::AttrString Glib::wrap(PangoAttrString*, bool)
/usr/include/pangomm-1.4/pangomm/attributes.h:645: note:                
Pango::AttrLanguage Glib::wrap(PangoAttrLanguage*, bool)
/usr/include/pangomm-1.4/pangomm/attributes.h:648: note:                
Pango::AttrColor Glib::wrap(PangoAttrColor*, bool)
/usr/include/pangomm-1.4/pangomm/attributes.h:651: note:                
Pango::AttrInt Glib::wrap(PangoAttrInt*, bool)
/usr/include/pangomm-1.4/pangomm/attributes.h:654: note:                
Pango::AttrFloat Glib::wrap(PangoAttrFloat*, bool)
/usr/include/pangomm-1.4/pangomm/attributes.h:657: note:                
Pango::AttrFontDesc Glib::wrap(PangoAttrFontDesc*, bool)
/usr/include/pangomm-1.4/pangomm/attributes.h:660: note:                
Pango::AttrShape Glib::wrap(PangoAttrShape*, bool)
/usr/include/pangomm-1.4/pangomm/item.h:213: note:                
Pango::Analysis& Glib::wrap(PangoAnalysis*)
/usr/include/pangomm-1.4/pangomm/item.h:216: note:                 const
Pango::Analysis& Glib::wrap(const PangoAnalysis*)
/usr/include/pangomm-1.4/pangomm/item.h:219: note:                 Pango::Item
Glib::wrap(PangoItem*, bool)
/usr/include/pangomm-1.4/pangomm/attriter.h:141: note:                
Pango::AttrIter Glib::wrap(PangoAttrIterator*, bool)
/usr/include/pangomm-1.4/pangomm/attrlist.h:171: note:                
Pango::AttrList Glib::wrap(PangoAttrList*, bool)
/usr/include/pangomm-1.4/pangomm/context.h:311: note:                
Glib::RefPtr<Pango::Context> Glib::wrap(PangoContext*, bool)
/usr/include/pangomm-1.4/pangomm/tabarray.h:184: note:                
Pango::TabArray Glib::wrap(PangoTabArray*, bool)
/usr/include/pangomm-1.4/pangomm/layoutline.h:210: note:                
Glib::RefPtr<Pango::LayoutLine> Glib::wrap(PangoLayoutLine*, bool)
/usr/include/pangomm-1.4/pangomm/layoutrun.h:83: note:                
Pango::LayoutRun& Glib::wrap(PangoLayoutRun*)
/usr/include/pangomm-1.4/pangomm/layoutrun.h:86: note:                 const
Pango::LayoutRun& Glib::wrap(const PangoLayoutRun*)
/usr/include/pangomm-1.4/pangomm/layout.h:625: note:                
Glib::RefPtr<Pango::Layout> Glib::wrap(PangoLayout*, bool)
/usr/include/atkmm-1.6/atkmm/component.h:326: note:                
Glib::RefPtr<Atk::Component> Glib::wrap(AtkComponent*, bool)
/usr/include/atkmm-1.6/atkmm/relation.h:177: note:                
Glib::RefPtr<Atk::Relation> Glib::wrap(AtkRelation*, bool)
/usr/include/atkmm-1.6/atkmm/object.h:513: note:                
Glib::RefPtr<Atk::Object> Glib::wrap(AtkObject*, bool)
/usr/include/atkmm-1.6/atkmm/implementor.h:122: note:                
Glib::RefPtr<Atk::Implementor> Glib::wrap(AtkImplementor*, bool)
/usr/include/pangomm-1.4/pangomm/glyphstring.h:212: note:                
Pango::GlyphString Glib::wrap(PangoGlyphString*, bool)
/usr/include/gdkmm-2.4/gdkmm/types.h:361: note:                 Gdk::Point&
Glib::wrap(GdkPoint*)
/usr/include/gdkmm-2.4/gdkmm/types.h:364: note:                 const
Gdk::Point& Glib::wrap(const GdkPoint*)
/usr/include/gdkmm-2.4/gdkmm/rectangle.h:96: note:                
Gdk::Rectangle& Glib::wrap(GdkRectangle*)
/usr/include/gdkmm-2.4/gdkmm/rectangle.h:102: note:                 const
Gdk::Rectangle& Glib::wrap(const GdkRectangle*)
/usr/include/gdkmm-2.4/gdkmm/region.h:229: note:                 Gdk::Region
Glib::wrap(GdkRegion*, bool)
/usr/include/gdkmm-2.4/gdkmm/screen.h:418: note:                
Glib::RefPtr<Gdk::Screen> Glib::wrap(GdkScreen*, bool)
/usr/include/gdkmm-2.4/gdkmm/gc.h:521: note:                
Glib::RefPtr<Gdk::GC> Glib::wrap(GdkGC*, bool)
/usr/include/gdkmm-2.4/gdkmm/visual.h:248: note:                
Glib::RefPtr<Gdk::Visual> Glib::wrap(GdkVisual*, bool)
/usr/include/gdkmm-2.4/gdkmm/color.h:263: note:                 Gdk::Color
Glib::wrap(GdkColor*, bool)
/usr/include/gdkmm-2.4/gdkmm/colormap.h:222: note:                
Glib::RefPtr<Gdk::Colormap> Glib::wrap(GdkColormap*, bool)
/usr/include/gdkmm-2.4/gdkmm/image.h:226: note:                
Glib::RefPtr<Gdk::Image> Glib::wrap(GdkImage*, bool)
/usr/include/gdkmm-2.4/gdkmm/drawable.h:578: note:                
Glib::RefPtr<Gdk::Drawable> Glib::wrap(GdkDrawable*, bool)
/usr/include/gdkmm-2.4/gdkmm/pixmap.h:197: note:                
Glib::RefPtr<Gdk::Pixmap> Glib::wrap(GdkPixmapObject*, bool)
/usr/include/gdkmm-2.4/gdkmm/window.h:1846: note:                
Glib::RefPtr<Gdk::Window> Glib::wrap(GdkWindowObject*, bool)
/usr/include/gdkmm-2.4/gdkmm/event.h:386: note:                 Gdk::Event
Glib::wrap(GdkEvent*, bool)
/usr/include/gdkmm-2.4/gdkmm/pixbuf.h:576: note:                
Glib::RefPtr<Gdk::Pixbuf> Glib::wrap(GdkPixbuf*, bool)
/usr/include/gdkmm-2.4/gdkmm/dragcontext.h:364: note:                
Glib::RefPtr<Gdk::DragContext> Glib::wrap(GdkDragContext*, bool)
/usr/include/gdkmm-2.4/gdkmm/device.h:249: note:                
Glib::RefPtr<Gdk::Device> Glib::wrap(GdkDevice*, bool)
/usr/include/gdkmm-2.4/gdkmm/display.h:593: note:                
Glib::RefPtr<Gdk::Display> Glib::wrap(GdkDisplay*, bool)
/usr/include/gtkmm-2.4/gtkmm/targetlist.h:92: note:                
Glib::RefPtr<Gtk::TargetList> Glib::wrap(GtkTargetList*, bool)
/usr/include/gtkmm-2.4/gtkmm/object.h:161: note:                 Gtk::Object*
Glib::wrap(GtkObject*, bool)
/usr/include/gtkmm-2.4/gtkmm/iconsource.h:277: note:                
Gtk::IconSource Glib::wrap(GtkIconSource*, bool)
/usr/include/gtkmm-2.4/gtkmm/iconset.h:176: note:                 Gtk::IconSet
Glib::wrap(GtkIconSet*, bool)
/usr/include/gtkmm-2.4/gtkmm/style.h:775: note:                
Glib::RefPtr<Gtk::Style> Glib::wrap(GtkStyle*, bool)
/usr/include/gtkmm-2.4/gtkmm/rc.h:347: note:                
Glib::RefPtr<Gtk::RcStyle> Glib::wrap(GtkRcStyle*, bool)
/usr/include/gtkmm-2.4/gtkmm/selectiondata.h:175: note:                
Gtk::SelectionData Glib::wrap(GtkSelectionData*, bool)
/usr/include/gtkmm-2.4/gtkmm/clipboard.h:353: note:                
Glib::RefPtr<Gtk::Clipboard> Glib::wrap(GtkClipboard*, bool)
/usr/include/gtkmm-2.4/gtkmm/widget.h:2508: note:                 Gtk::Widget*
Glib::wrap(GtkWidget*, bool)
/usr/include/gtkmm-2.4/gtkmm/container.h:428: note:                
Gtk::Container* Glib::wrap(GtkContainer*, bool)

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


--__--__--

Message: 5
From: bugzilla-daemon bugzilla gnome org
To: gtkmm-forge lists sourceforge net
Cc: 
Date: Sat, 15 May 2004 09:04:49 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 136915]  - Improved string function

http://bugzilla.gnome.org/show_bug.cgi?id=136915
glibmm | strings | Ver: 2.4.x

murrayc murrayc com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |API



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


--__--__--

Message: 6
From: bugzilla-daemon bugzilla gnome org
To: gtkmm-forge lists sourceforge net
Cc: 
Date: Fri, 14 May 2004 01:47:24 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 142516]  - libglademm won't compile with gcc 3.4

http://bugzilla.gnome.org/show_bug.cgi?id=142516
gnomemm | libglademm | Ver: 2.6





------- Additional Comments From bryan reigndropsfall net  2004-05-14 01:47 -------
Created an attachment (id=27687)
 --> (http://bugzilla.gnome.org/attachment.cgi?id=27687&action=view)
Patch to fix this problem

I figured out the problem, but this doesn't seem like it should be this simple.
 Someone in #c++ suggested some namespace polluting is going on.  Not sure.  I
hope this patch helps figure this out.

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


--__--__--

Message: 7
From: bugzilla-daemon bugzilla gnome org
To: gtkmm-forge lists sourceforge net
Cc: 
Date: Sat, 15 May 2004 08:53:27 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 142126]  - broken Gtk::TextIter API

http://bugzilla.gnome.org/show_bug.cgi?id=142126
gtkmm | general | Ver: 2.4

murrayc murrayc com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |API



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


--__--__--

Message: 8
From: bugzilla-daemon bugzilla gnome org
To: gtkmm-forge lists sourceforge net
Cc: 
Date: Sat, 15 May 2004 08:53:59 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 142138]  - Gtk::FileChooser::get_filename() should return std::string

http://bugzilla.gnome.org/show_bug.cgi?id=142138
gtkmm | general | Ver: 2.4

murrayc murrayc com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |API



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


--__--__--

Message: 9
From: bugzilla-daemon bugzilla gnome org
To: gtkmm-forge lists sourceforge net
Cc: 
Date: Sat, 15 May 2004 09:04:27 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 126213]  - maybe signals-with-return-types should connect_before

http://bugzilla.gnome.org/show_bug.cgi?id=126213
glibmm | object | Ver: 2.4.x

murrayc murrayc com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |API



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


--__--__--

Message: 10
From: bugzilla-daemon bugzilla gnome org
To: gtkmm-forge lists sourceforge net
Cc: 
Date: Sat, 15 May 2004 09:05:14 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 104332]  - Make RefPtr<> a general-purpose smart pointer

http://bugzilla.gnome.org/show_bug.cgi?id=104332
glibmm | object | Ver: 2.4.x

murrayc murrayc com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |API



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


--__--__--

Message: 11
From: bugzilla-daemon bugzilla gnome org
To: gtkmm-forge lists sourceforge net
Cc: 
Date: Sun, 16 May 2004 00:32:10 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 142599] New:  - Inappropriate implementation of Gtk::TreeIter::operator bool()

http://bugzilla.gnome.org/show_bug.cgi?id=142599
gtkmm | TreeView | Ver: 2.4

           Summary: Inappropriate implementation of Gtk::TreeIter::operator
                    bool()
           Product: gtkmm
           Version: 2.4
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
          Severity: major
          Priority: Normal
         Component: TreeView
        AssignedTo: gtkmm-forge lists sourceforge net
        ReportedBy: daniel elstner gmx net


Apparently, using operator bool() on a virgin Gtk::TreeIter isn't valid anymore,
though it used to work with gtkmm 2.2.  I get the following runtime warning:

(regexxer:25515): gtkmm-WARNING **: Gtk::TreeIter::operator bool(): defaulting
to false because this iterator has no TreeModel.

By looking at the source code I discovered that operator bool() is now
implemented via TreeModel::iter_is_valid().  In regexxer's case, this in turn
results in a call to gtk_tree_store_iter_is_valid().  The GTK+ documentation for
this function says:

WARNING: This function is slow. Only use it for debugging and/or testing purposes.

This is no laughing matter.  Looking at gtktreestore.c, I see that
gtk_tree_store_iter_is_valid() performs a linear search of the entire tree for
the given iterator.  On top of that, operator bool() is most likely used within
loops that iterate over the tree's content.

Given all these problems, I propose to revert to the original implementation of
TreeIter::operator bool().  This can be done without breaking API nor ABI.

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


--__--__--

Message: 12
From: bugzilla-daemon bugzilla gnome org
To: gtkmm-forge lists sourceforge net
Cc: 
Date: Sun, 16 May 2004 00:32:29 -0400 (EDT)
Subject: [gtkmm bugzilla] [Bug 142599]  - Inappropriate implementation of Gtk::TreeIter::operator bool()

http://bugzilla.gnome.org/show_bug.cgi?id=142599
gtkmm | TreeView | Ver: 2.4

daniel elstner gmx net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
      everconfirmed|0                           |1



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



--__--__--

_______________________________________________
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]