Gtkmm-forge Digest, Vol 8, Issue 5



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 392950] Wrapper Class For GTimer missing
      (glibmm (bugzilla.gnome.org))
   2. [Bug 392950] Wrapper Class For GTimer missing
      (glibmm (bugzilla.gnome.org))
   3. [Bug 391907] Glib::Error::throw_exception()	doesn't return
      Glib::Error instance in --disable-api-exceptions mode
      (glibmm (bugzilla.gnome.org))
   4. [Bug 393571] New: option parser ignores default	values
      (glibmm (bugzilla.gnome.org))
   5. [Bug 393571] option parser ignores default values
      (glibmm (bugzilla.gnome.org))
   6. [Bug 391907] Glib::Error::throw_exception()	doesn't return
      Glib::Error instance in --disable-api-exceptions mode
      (glibmm (bugzilla.gnome.org))


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

Message: 1
Date: Fri,  5 Jan 2007 20:57:06 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 392950] Wrapper Class For GTimer
	missing
To: gtkmm-forge lists sourceforge net
Message-ID: <20070105205706 9FA206C4175 box gnome org>
Content-Type: text/plain; charset=utf-8

Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=392950

  glibmm | general | Ver: 2.12.x


Marko Anastasov changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marko marko anastasov name




------- Comment #1 from Marko Anastasov  2007-01-05 20:55 UTC -------
> Hi! I'm missing a wrapper class for the GTimer.

It's there:
http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1Timer.html


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email



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

Message: 2
Date: Fri,  5 Jan 2007 22:46:56 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 392950] Wrapper Class For GTimer
	missing
To: gtkmm-forge lists sourceforge net
Message-ID: <20070105224656 695D56C417D box gnome org>
Content-Type: text/plain; charset=utf-8

Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=392950

  glibmm | general | Ver: 2.12.x





------- Comment #2 from Jan Niklas Hasse  2007-01-05 22:45 UTC -------
Oh, i couldn't find it in the class overview. sry...


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email



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

Message: 3
Date: Sat,  6 Jan 2007 00:06:04 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 391907] Glib::Error::throw_exception()
	doesn't return Glib::Error instance in --disable-api-exceptions mode
To: gtkmm-forge lists sourceforge net
Message-ID: <20070106000604 DC4796C416A box gnome org>
Content-Type: text/plain; charset=utf-8

Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=391907

  glibmm | general | Ver: 2.10.x





------- Comment #1 from Matt Hoosier  2007-01-06 00:04 UTC -------
It turns out that this is behavior is caused by a (mis)optimization that GCC
performs due to the stray "__noreturn__" annotation on
Glib::Error::throw_exception(), in error.h:

  #ifdef GLIBMM_EXCEPTIONS_ENABLED
    static void throw_exception(GError* gobject) G_GNUC_NORETURN;
  #else
    static std::auto_ptr<Glib::Error> throw_exception(GError* gobject)
    G_GNUC_NORETURN;
  #endif //GLIBMM_EXCEPTIONS_ENABLED

It is mistakenly assumed that control never returns to the sites which call
this function with !GLIBMM_EXCEPTIONS_ENABLED, so the "jump" instructions which
prevent the "then" clause from falling down into the "else" clause, are just
omitted.

This was already fixed in the 2.10.9 release, so I guess all that's left is for
me to point out that the issue is more serious than the ChangeLog entry which
said that removing the annotation avoided some compiler warnings. :)


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email



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

Message: 4
Date: Sat,  6 Jan 2007 16:27:57 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 393571] New: option parser ignores
	default	values
To: gtkmm-forge lists sourceforge net
Message-ID: <bug-393571-5595 http bugzilla gnome org/>
Content-Type: text/plain; charset=utf-8

Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=393571

  glibmm | general | Ver: 2.13.x

           Summary: option parser ignores default values
           Product: glibmm
           Version: 2.13.x
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: general
        AssignedTo: gtkmm-forge lists sourceforge net
        ReportedBy: daniel kitta gmail com
         QAContact: gtkmm-forge lists sourceforge net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


The contents of the option value passed to Glib::OptionGroup::add_entry() by
reference are always cleared.  E.g. if you do this:

bool do_foo = true;
Glib::OptionEntry entry;
Glib::OptionGroup group;
entry.set_long_description("no-foo");
entry.set_flags(Glib::OptionEntry::FLAG_REVERSE);
group.add_entry(entry, do_foo);
...

After parsing the options, do_foo will always be false, irrespective of whether
you pass the "--no-foo" option or not.  Looking at the code, it appears that
OptionGroup::CppOptionEntry::allocate_c_arg() just always initializes the
allocated value using the default constructor, instead of copying the value
from the location passed to OptionGroup::add_entry().


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email



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

Message: 5
Date: Sat,  6 Jan 2007 16:47:20 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 393571] option parser ignores default
	values
To: gtkmm-forge lists sourceforge net
Message-ID: <20070106164720 6C4796C41A3 box gnome org>
Content-Type: text/plain; charset=utf-8

Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=393571

  glibmm | general | Ver: 2.13.x


Daniel Elstner changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|gtkmm-                      |daniel kitta gmail com
                   |forge lists sourceforge net |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1




-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email



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

Message: 6
Date: Sat,  6 Jan 2007 19:55:32 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 391907] Glib::Error::throw_exception()
	doesn't return Glib::Error instance in --disable-api-exceptions mode
To: gtkmm-forge lists sourceforge net
Message-ID: <20070106195532 0D1B46C417D box gnome org>
Content-Type: text/plain; charset=utf-8

Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=391907

  glibmm | general | Ver: 2.10.x


Daniel Elstner changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel kitta gmail com
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED




------- Comment #2 from Daniel Elstner  2007-01-06 19:53 UTC -------
OK, I'm closing this bug since it is already fixed.

By the way, it's not a "(mis)optimization" of GCC but most definitely an error
in glibmm.  The fact that you hit this bug shows that the optimization is
working :) Note that the noreturn attribute makes GCC optimize at the caller
site, so it really can't just ignore the attribute if the function does return,
since it doesn't know the definition.  But there's definitely a warning when
compiling the function itself; I wonder why noone has seen that earlier.


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email



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

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

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

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


End of Gtkmm-forge Digest, Vol 8, Issue 5
*****************************************



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