Gtkmm-forge Digest, Vol 23, Issue 9



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 529496] Compilation failure in	gnome-system-monitor
      because of HOST_NOT_FOUND (glibmm (bugzilla.gnome.org))
   2. [Bug 529496] Compilation failure in	gnome-system-monitor
      because of HOST_NOT_FOUND (glibmm (bugzilla.gnome.org))
   3. [Bug 529533] New: Warning about wrapping unwrapped
      implementation types (e.g. GHalMount) (glibmm (bugzilla.gnome.org))
   4. [Bug 529533] Warning about wrapping unwrapped	implementation
      types (e.g. GHalMount) (glibmm (bugzilla.gnome.org))
   5. [Bug 529533] Warning about wrapping unwrapped	implementation
      types (e.g. GHalMount) (glibmm (bugzilla.gnome.org))
   6. [Bug 529533] Warning about wrapping unwrapped	implementation
      types (e.g. GHalMount) (glibmm (bugzilla.gnome.org))
   7. [Bug 529533] Warning about wrapping unwrapped	implementation
      types (e.g. GHalMount) (glibmm (bugzilla.gnome.org))


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

Message: 1
Date: Wed, 23 Apr 2008 09:43:31 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 529496] Compilation failure in
	gnome-system-monitor because of HOST_NOT_FOUND
To: gtkmm-forge lists sourceforge net
Message-ID: <20080423094331 B259023F590 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

Murray Cumming changed:

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




------- Comment #2 from Murray Cumming  2008-04-23 09:43 UTC -------
I guess we need to rename and deprecated the enum value in glibmm, with an
#ifdefined to avoid the clash. But I'd prefer not to do that in the middle of a
stable series.

Can you just #undef HOST_NOT_FOUND in gnome-system-monitor to fix its build?


-- 
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.



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

Message: 2
Date: Wed, 23 Apr 2008 09:52:30 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 529496] Compilation failure in
	gnome-system-monitor because of HOST_NOT_FOUND
To: gtkmm-forge lists sourceforge net
Message-ID: <20080423095230 B687523F58F 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




------- Comment #3 from Vincent Untz  2008-04-23 09:52 UTC -------
(In reply to comment #2)
> I guess we need to rename and deprecated the enum value in glibmm, with an
> #ifdefined to avoid the clash. But I'd prefer not to do that in the middle of a
> stable series.

Agree with you.

> Can you just #undef HOST_NOT_FOUND in gnome-system-monitor to fix its build?

Yes, this fixes the build. I'll open a gnome-system-monitor bug to have this
workaround for now in trunk. I doubt I'll get a new tarball in time for 2.23.1,
so I might release with a stable gtkmm if needed. Hopefully, this will be fixed
one way or another for 2.23.2.


-- 
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.



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

Message: 3
Date: Wed, 23 Apr 2008 12:56:48 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 529533] New: Warning about wrapping
	unwrapped	implementation types (e.g. GHalMount)
To: gtkmm-forge lists sourceforge net
Message-ID: <bug-529533-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=529533

  glibmm | general | Ver: unspecified
           Summary: Warning about wrapping unwrapped implementation types
                    (e.g. GHalMount)
           Product: glibmm
           Version: unspecified
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: general
        AssignedTo: gtkmm-forge lists sourceforge net
        ReportedBy: jonathon quotidian org
         QAContact: gtkmm-forge lists sourceforge net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


When I run the following program, I get the following output:

(process:11780): glibmm-WARNING **: failed to wrap type of 'GHalMount'
Mounts 1

You will get this warning once for each mount that is found, so if you have 0
mounts, you won't see the warning.  You may need to insert a cdrom or something
to get a GHalMount to appear, I'm not sure.

================ Test case ===============

#include <iostream>
#include <ostream>
#include <vector>

#include <giomm.h>

int main()
{
        Gio::init();

        using namespace Glib;
        using namespace Gio;

        RefPtr<VolumeMonitor> monitor = VolumeMonitor::get();

        std::vector<RefPtr<Mount> > mounts = monitor->get_mounts();

        std::cout << "Mounts " << mounts.size() << '\n';
}


-- 
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=529533.



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

Message: 4
Date: Wed, 23 Apr 2008 12:58:13 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 529533] Warning about wrapping
	unwrapped	implementation types (e.g. GHalMount)
To: gtkmm-forge lists sourceforge net
Message-ID: <20080423125813 F253D23F4E6 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=529533

  glibmm | giomm | Ver: unspecified

Jonathon Jongsma (jonner) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|general                     |giomm




-- 
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=529533.



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

Message: 5
Date: Wed, 23 Apr 2008 16:35:36 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 529533] Warning about wrapping
	unwrapped	implementation types (e.g. GHalMount)
To: gtkmm-forge lists sourceforge net
Message-ID: <20080423163536 DE54423F4E1 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=529533

  glibmm | giomm | Ver: unspecified

Beno?t Dejean changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |benoit placenet org




-- 
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=529533.



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

Message: 6
Date: Wed, 23 Apr 2008 18:10:10 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 529533] Warning about wrapping
	unwrapped	implementation types (e.g. GHalMount)
To: gtkmm-forge lists sourceforge net
Message-ID: <20080423181010 C098423F4E6 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=529533

  glibmm | giomm | Ver: unspecified

Murray Cumming changed:

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




------- Comment #1 from Murray Cumming  2008-04-23 18:10 UTC -------
The backtrace when the warning is printed:

(gdb) bt
#0  IA__g_log (log_domain=0xb7e9aa21 "glibmm", log_level=G_LOG_LEVEL_WARNING,
format=0xb7e9ca94 "failed to wrap type of '%s'") at gmessages.c:516
#1  0xb7e9996b in Glib::wrap_auto (object=0x804ce78, take_copy=true) at
wrap.cc:190
#2  0x08049385 in Glib::Container_Helpers::TypeTraits<Glib::RefPtr<Gio::Mount>
>::to_cpp_type ()
#3  0x080493f5 in
Glib::Container_Helpers::ListHandleIterator<Glib::Container_Helpers::TypeTraits<Glib::RefPtr<Gio::Mount>
> >::operator* ()
#4  0x08049423 in
std::__uninitialized_copy_aux<Glib::Container_Helpers::ListHandleIterator<Glib::Container_Helpers::TypeTraits<Glib::RefPtr<Gio::Mount>
> >, Glib::RefPtr<Gio::Mount>*> ()
#5  0x080494f5 in
std::uninitialized_copy<Glib::Container_Helpers::ListHandleIterator<Glib::Container_Helpers::TypeTraits<Glib::RefPtr<Gio::Mount>
> >, Glib::RefPtr<Gio::Mount>*> ()
#6  0x08049517 in
std::__uninitialized_copy_a<Glib::Container_Helpers::ListHandleIterator<Glib::Container_Helpers::TypeTraits<Glib::RefPtr<Gio::Mount>
> >, Glib::RefPtr<Gio::Mount>*, Glib::RefPtr<Gio::Mount> > ()
#7  0x0804959e in std::vector<Glib::RefPtr<Gio::Mount>,
std::allocator<Glib::RefPtr<Gio::Mount> >
>::_M_range_initialize<Glib::Container_Helpers::ListHandleIterator<Glib::Container_Helpers::TypeTraits<Glib::RefPtr<Gio::Mount>
> > > ()
#8  0x080495fd in std::vector<Glib::RefPtr<Gio::Mount>,
std::allocator<Glib::RefPtr<Gio::Mount> >
>::_M_initialize_dispatch<Glib::Container_Helpers::ListHandleIterator<Glib::Container_Helpers::TypeTraits<Glib::RefPtr<Gio::Mount>
> > >
    ()
#9  0x080496bc in std::vector<Glib::RefPtr<Gio::Mount>,
std::allocator<Glib::RefPtr<Gio::Mount> >
>::vector<Glib::Container_Helpers::ListHandleIterator<Glib::Container_Helpers::TypeTraits<Glib::RefPtr<Gio::Mount>
> > > ()
#10 0x08049740 in
_ZNK4Glib10ListHandleINS_6RefPtrIN3Gio5MountEEENS_17Container_Helpers10TypeTraitsIS4_EEEcvSt6vectorIT_SaISA_EEIS4_EEv
()
#11 0x08048e14 in main ()


-- 
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=529533.



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

Message: 7
Date: Wed, 23 Apr 2008 18:19:34 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 529533] Warning about wrapping
	unwrapped	implementation types (e.g. GHalMount)
To: gtkmm-forge lists sourceforge net
Message-ID: <20080423181934 EC54F23F590 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=529533

  glibmm | giomm | Ver: unspecified




------- Comment #2 from Murray Cumming  2008-04-23 18:19 UTC -------
We might need to implement a TypeTraits< Glib::RefPtr<Gio::Mount> > (and use it
in the return type for get_mounts()) to ensure that it calls the wrap(GMount*,
bool) function rather than a generic wrap(GObject*) function.

That way, it would call wrap_auto_interface() instead of wrap_auto().
wrap_auto_interface() can wrap implementations of interfaces even if the
implementor type is unknown. A generic wrap(GObject*) function can't know which
type (an implemented interface or an implementing type) we want.


-- 
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=529533.



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

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

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

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


End of Gtkmm-forge Digest, Vol 23, Issue 9
******************************************


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