Gtkmm-forge Digest, Vol 29, Issue 1



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-owner 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 539891] Can't use doxygen commands in	*_override.xml
      (glibmm (bugzilla.gnome.org))
   2. [Bug 537319] EntryCompletion not emitting
      signal_match_selected () (gtkmm (bugzilla.gnome.org))
   3. [Bug 537319] EntryCompletion not emitting
      signal_match_selected () (gtkmm (bugzilla.gnome.org))
   4. [Bug 554484] New: Patch to silence an 'unused	parameter'
      warning (gnomemm (bugzilla.gnome.org))
   5. [Bug 554484] Patch to silence an 'unused	parameter' warning
      (gnomemm (bugzilla.gnome.org))
   6. [Bug 554889] New: Gtk::ListStore::reverse_iterator	doesn't
      work (gtkmm (bugzilla.gnome.org))
   7. [Bug 529496] Gio::Error::HOST_NOT_FOUND clashes	with a
      netdb.h #define (glibmm (bugzilla.gnome.org))


----------------------------------------------------------------------

Message: 1
Date: Mon, 29 Sep 2008 21:55:04 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 539891] Can't use doxygen commands in
	*_override.xml
To: gtkmm-forge lists sourceforge net
Message-ID: <20080929215504 BBA7323F526 label gnome org>
Content-Type: text/plain; charset=utf-8

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=539891

  glibmm | documentation | Ver: unspecified

Murray Cumming changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #4 from Murray Cumming  2008-09-29 21:55 UTC -------
Thanks. Sorry for not seeing this until now.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=539891.



------------------------------

Message: 2
Date: Tue, 30 Sep 2008 12:18:09 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 537319] EntryCompletion not emitting
	signal_match_selected ()
To: gtkmm-forge lists sourceforge net
Message-ID: <20080930121810 014DF23F591 label gnome org>
Content-Type: text/plain; charset=utf-8

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=537319

  gtkmm | general | Ver: 2.13.x




------- Comment #7 from Marko Anastasov  2008-09-30 12:18 UTC -------
Created an attachment (id=119640)
 --> (http://bugzilla.gnome.org/attachment.cgi?id=119640&action=view)
proposed addition to the signal proxy doc text


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=537319.



------------------------------

Message: 3
Date: Tue, 30 Sep 2008 12:29:13 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 537319] EntryCompletion not emitting
	signal_match_selected ()
To: gtkmm-forge lists sourceforge net
Message-ID: <20080930122913 2C57523F58E label gnome org>
Content-Type: text/plain; charset=utf-8

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=537319

  gtkmm | general | Ver: 2.13.x




------- Comment #8 from Murray Cumming  2008-09-30 12:29 UTC -------
Please apply, but mention a little more about about why. For instance, "so that
it is called before the default signal handler, which would otherwise claim to
have fully handled the signal by returning false/true/iforget"


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=537319.



------------------------------

Message: 4
Date: Tue, 30 Sep 2008 18:50:35 +0000 (UTC)
From: "gnomemm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 554484] New: Patch to silence an
	'unused	parameter' warning
To: gtkmm-forge lists sourceforge net
Message-ID: <bug-554484-5595 http bugzilla gnome org/>
Content-Type: text/plain; charset=utf-8

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=554484

  gnomemm | libgdamm | Ver: unspecified
           Summary: Patch to silence an 'unused parameter' warning
           Product: gnomemm
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: libgdamm
        AssignedTo: gtkmm-forge lists sourceforge net
        ReportedBy: manphiz gmail com
         QAContact: gtkmm-forge lists sourceforge net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


[Forwarded from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=472834 ,
reported by Norbert Kiesel <nkiesel tbdnetworks com>]
An unused parameter in libgda/libgdamm/value.h may cause a warning using strict
g++ option, which in turn can be promoted in to an error with -Werror and is
not good for software depending on it.  The patch from Norbert silences it by
commenting out the unused parameter.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=554484.



------------------------------

Message: 5
Date: Tue, 30 Sep 2008 19:18:58 +0000 (UTC)
From: "gnomemm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 554484] Patch to silence an 'unused
	parameter' warning
To: gtkmm-forge lists sourceforge net
Message-ID: <20080930191858 67CEA23F58D label gnome org>
Content-Type: text/plain; charset=utf-8

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=554484

  gnomemm | libgdamm | Ver: unspecified

Murray Cumming changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |murrayc murrayc com




------- Comment #2 from Murray Cumming  2008-09-30 19:18 UTC -------
Looks good. Someone please apply.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=554484.



------------------------------

Message: 6
Date: Fri,  3 Oct 2008 16:42:56 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 554889] New:
	Gtk::ListStore::reverse_iterator	doesn't work
To: gtkmm-forge lists sourceforge net
Message-ID: <bug-554889-5595 http bugzilla gnome org/>
Content-Type: text/plain; charset=utf-8

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=554889

  gtkmm | TreeView | Ver: 2.12.x
           Summary: Gtk::ListStore::reverse_iterator doesn't work
           Product: gtkmm
           Version: 2.12.x
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
          Severity: critical
          Priority: Normal
         Component: TreeView
        AssignedTo: gtkmm-forge lists sourceforge net
        ReportedBy: pavelo centrum sk
         QAContact: gtkmm-forge lists sourceforge net
     GNOME version: 2.21/2.22
   GNOME milestone: Unspecified


Steps to reproduce:
$ cat rev_iter.cc
#include <iostream>
#include <gtkmm.h>

struct Columns : public Gtk::TreeModelColumnRecord {
    Gtk::TreeModelColumn<int> col;

    Columns()
    { add(col); }
};

int main(int argc, char *argv[])
{
    Gtk::Main m(argc, argv);

    Columns columns;

    Glib::RefPtr<Gtk::ListStore> model = Gtk::ListStore::create(columns);

    (*model->append())[columns.col] = 1;
    (*model->append())[columns.col] = 2;
    (*model->append())[columns.col] = 3;
    (*model->append())[columns.col] = 4;
    (*model->append())[columns.col] = 5;

    for(Gtk::ListStore::iterator i = model->children().begin();
            i != model->children().end(); ++i)
        std::cerr << (*i)[columns.col] << std::endl;

    for(Gtk::ListStore::reverse_iterator i = model->children().rbegin();
            i != model->children().rend(); ++i)
        std::cerr << (*i)[columns.col] << std::endl;

    return 0;
}
$ g++ `pkg-config gtkmm-2.4 --cflags --libs` rev_iter.cc
$ ./a.out 
1
2
3
4
5
/usr/libexec/a.out: No such file or directory.  /BugBuddy Opens/


Stack trace:
a not-so-very useful stack trace:

#0  0x00000000213582a3 in ?? ()
#1  0x00000000004022f2 in Gtk::TreeRow::get_value<int> (this=0x7fff66bf2570,
column= 0x7fff66bf2630) at /usr/include/gtkmm-2.4/gtkmm/treeiter.h:482
#2  0x0000000000402354 in Gtk::TreeValueProxy<int>::operator int
(this=0x7fff66bf2920) at /usr/include/gtkmm-2.4/gtkmm/treeiter.h:436
#3  0x0000000000401c2e in main (argc=1, argv=0x7fff66bf2a28) at rev_iter.cc:31

Other information:
the crash happens because:
a) Gtk::TreeRow inherits from Gtk::TreeIter
and so when you dereference an TreeIter it just returns a reference to itself
TreeIter::reference TreeIter::operator*() const
{
  return static_cast<const TreeRow&>(*this);
}

b) when you dereference a std::reverse_iterator it does:
reference
operator*() const
{
    _Iterator __tmp = current;
    return *--__tmp;
}

of course, what reverse_iterator doesn't know, is that it is in fact returning
a reference to __tmp. And since __tmp is a local variable, it deletes it just
before returning (and thereby deleting the value which it is returning)

so, basically, it returns some random value, and using that value buys you a
ticket to core dump land

as for solutions, i can think of a few, but none of them is really good or
easily doable:
1) make your own reverse_iterator that somehow avoids this kind of thing
  - doesn't solve the real problem, since a similar thing can creep up in other
situations
2) make a _real_ iterator instead of having TreeRow inherit from TreeIter
  - takes a lot of coding and breaks all kinds of APIs and ABIs


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=554889.



------------------------------

Message: 7
Date: Sat,  4 Oct 2008 10:21:54 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 529496] Gio::Error::HOST_NOT_FOUND
	clashes	with a netdb.h #define
To: gtkmm-forge lists sourceforge net
Message-ID: <20081004102154 8164023F502 label gnome org>
Content-Type: text/plain; charset=utf-8

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=529496

  glibmm | io | Ver: 2.16.x

drago01 gmail com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |drago01 gmail com




-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=529496.



------------------------------

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

------------------------------

_______________________________________________
Gtkmm-forge mailing list
Gtkmm-forge lists sourceforge net
https://lists.sourceforge.net/lists/listinfo/gtkmm-forge


End of Gtkmm-forge Digest, Vol 29, Issue 1
******************************************


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]