Gtkmm-forge Digest, Vol 27, Issue 14



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 547909] New: NodeTree::find_child does not	work
      (glibmm (bugzilla.gnome.org))
   2. [Bug 547909] NodeTree::find_child does not work
      (glibmm (bugzilla.gnome.org))
   3. [Bug 548022] New: Crash on	Gtk::Builder::get_widget() when
      specifying unknown widget (gtkmm (bugzilla.gnome.org))
   4. [Bug 495762] need get_pointer for RefPtr<>
      (glibmm (bugzilla.gnome.org))
   5. [Bug 495762] need get_pointer for RefPtr<>
      (glibmm (bugzilla.gnome.org))
   6. [Bug 495762] need get_pointer for RefPtr<>
      (glibmm (bugzilla.gnome.org))
   7. [Bug 547427] working with json (gnomemm (bugzilla.gnome.org))
   8. [Bug 546485] Access control problem in NodeTree API
      (glibmm (bugzilla.gnome.org))


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

Message: 1
Date: Fri, 15 Aug 2008 13:47:04 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 547909] New: NodeTree::find_child does
	not	work
To: gtkmm-forge lists sourceforge net
Message-ID: <bug-547909-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=547909

  glibmm | general | Ver: 2.17.x
           Summary: NodeTree::find_child does not work
           Product: glibmm
           Version: 2.17.x
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: general
        AssignedTo: gtkmm-forge lists sourceforge net
        ReportedBy: szilard pfeiffer gmail com
         QAContact: gtkmm-forge lists sourceforge net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


Function always returns with 0.


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



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

Message: 2
Date: Fri, 15 Aug 2008 13:54:24 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 547909] NodeTree::find_child does not
	work
To: gtkmm-forge lists sourceforge net
Message-ID: <20080815135424 DDF0F23F504 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=547909

  glibmm | general | Ver: 2.17.x




------- Comment #1 from Szil?rd Pfeiffer  2008-08-15 13:54 UTC -------
Created an attachment (id=116665)
 --> (http://bugzilla.gnome.org/attachment.cgi?id=116665&action=view)
possible solution of problem mentioned in comment 0

ChangeLog:

2008-08-15  Szil?rd Pfeiffer  <szilard pfeiffer gmail com>

    * glib/src/nodetree.hg: Fixed pointer handling problem in find_child.
    Bug #547909.


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



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

Message: 3
Date: Sat, 16 Aug 2008 13:57:32 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 548022] New: Crash on
	Gtk::Builder::get_widget() when specifying unknown widget
To: gtkmm-forge lists sourceforge net
Message-ID: <bug-548022-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=548022

  gtkmm | general | Ver: 2.12.x
           Summary: Crash on Gtk::Builder::get_widget() when specifying
                    unknown widget
           Product: gtkmm
           Version: 2.12.x
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
          Severity: critical
          Priority: Normal
         Component: general
        AssignedTo: gtkmm-forge lists sourceforge net
        ReportedBy: ashaduri gmail com
         QAContact: gtkmm-forge lists sourceforge net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


Steps to reproduce:
Gtk::Builder's get_widget() crashes when a widget with the specified name
doesn't exist in the interface file.

The most straightforward way to reproduce this is to open gtkmm's
examples/book/builder/basic/main.cc
and change "DialogBasic" to "DialogBasic_" on line 30.

After that, the compiled program will exit with the following:

(main:4706): gtkmm-CRITICAL **: gtkmm: object `DialogBasic_' not found in
GtkBuilder file.
Segmentation fault

Btw, the documentation seems to be incorrect in which exception the Builder's
functions throw. It mentions Glib::FileError and Glib::MarkupError, while the
example says Glib::BuildError.


Stack trace:
#0  0xb7d77e75 in Gtk::Builder::get_widget_checked ()
   from /usr/lib/libgtkmm-2.4.so.1
#1  0x08049df2 in Gtk::Builder::get_widget<Gtk::Dialog> ()
#2  0x080498d3 in main ()


Other information:
gtkmm2-2.12.7, glibmm2-2.16.1, gtk2-2.12.11, glib2-2.16.5, gcc-4.2,
glibc-2.6.1. OpenSUSE 10.3.


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



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

Message: 4
Date: Sat, 16 Aug 2008 15:50:05 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 495762] need get_pointer for RefPtr<>
To: gtkmm-forge lists sourceforge net
Message-ID: <20080816155005 D0CCF23F544 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=495762

  glibmm | general | Ver: 2.14.x

Alexander Shaduri changed:

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




------- Comment #17 from Alexander Shaduri  2008-08-16 15:50 UTC -------
Another example (maybe there's another way, I don't know):

Glib::RefPtr<Gtk::Builder> b = Gtk::Builder::create_from_file("file.ui");
Glib::RefPtr<Glib::Object> o = b->get_object("some_action");  // it's
Gtk::Action, so get_widget() won't work

dynamic_cast<Gtk::Action*>(o->operator->())->signal_activate().connect(someslot);

If there's another way to connect slots to Gtk::Action objects from
Gtk::Builder, I certainly would like to know.
Thanks.


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



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

Message: 5
Date: Sat, 16 Aug 2008 16:25:18 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 495762] need get_pointer for RefPtr<>
To: gtkmm-forge lists sourceforge net
Message-ID: <20080816162518 A359423F544 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=495762

  glibmm | general | Ver: 2.14.x




------- Comment #18 from Hubert Figuiere  2008-08-16 16:25 UTC -------
(In reply to comment #17)
> Another example (maybe there's another way, I don't know):
> 

No. This is totally unrelated. get_pointer() is not meant to do hackish casting
and the exemple you give is actually an argument against.


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



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

Message: 6
Date: Sat, 16 Aug 2008 20:58:45 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 495762] need get_pointer for RefPtr<>
To: gtkmm-forge lists sourceforge net
Message-ID: <20080816205845 A3BFE23F58E 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=495762

  glibmm | general | Ver: 2.14.x




------- Comment #19 from Alexander Shaduri  2008-08-16 20:58 UTC -------
Now that I think about it, yes, it may be done using RefPtr's cast_dynamic.
However, I still think there are situations where get_pointer() would be nice.
I mean, you can certainly work around it (without operator->()), but there are
situations where you just don't want to do that - for interoperability,
consistency of API, etc...
Plus, some custom casts can't be applied (down_cast that works with both
polymorphic and non-polymorphic objects, etc...).
Anyway, operator->() works fine, so no real need to me.


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



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

Message: 7
Date: Sun, 17 Aug 2008 11:54:36 +0000 (UTC)
From: "gnomemm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 547427] working with json
To: gtkmm-forge lists sourceforge net
Message-ID: <20080817115436 F3EA823F51B 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=547427

  gnomemm | cluttermm | Ver: unspecified




------- Comment #2 from gonen  2008-08-17 11:54 UTC -------
(In reply to comment #1)
> Could you give us a small example of how you think an application should use
> the API? Then we can figure out how t make it work that way.
> 
> libglademm and Gtk::Builder both override a vfunc to give the underlying C code
> a chance to discover the gtkmm_* GType name to use.
> 

part of example json file

{
        "id" : "green-button",
        "type" : "ClutterRectangle",
        "color" : "#00ff00ff",
        "border-width" : 5,
        "border-color" : "#00cc00ff",
        "x" : 200,
        "y" : 50,
        "width" : 100,
        "height" : 100,
        "reactive" : true,
        "signals" : [
          { "name" : "button-press-event", "handler" : "clutter_main_quit" }
        ]
      }, 

When you load the script, a script parser will go over the script, and create
new glib objects as needed, in this example, it will create ClutterRectangle
object.
I would like to be able to inherit from clutter::actor, and then be able to use
the json script to create those objects, not sure how you specify that it isnt
a c object, but a c++ object, maybe you can define a special object c object
for that, and add parameter like c++type: to specify the c++ object that is
really needed.


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



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

Message: 8
Date: Mon, 18 Aug 2008 08:28:36 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 546485] Access control problem in
	NodeTree API
To: gtkmm-forge lists sourceforge net
Message-ID: <20080818082836 9AE3723F53B 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=546485

  glibmm | general | Ver: 2.17.x

Murray Cumming changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #115941|none                        |committed
               Flag|                            |
 Attachment #116640|none                        |committed
               Flag|                            |




------- Comment #9 from Murray Cumming  2008-08-18 08:28 UTC -------
Thanks. I have added uses of const_cast<> to those const functions. As I said
above, I prefer not to add the gobj_unconst() function.

I don't see how this could have worked anyway without a const_cast<> in here:

  inline GNode* gobj_unconst() const
  {
    return gobject_;
  }


Please remember to open closed bugs if you are adding an extra patch to them.
There's a risk they could be forgotten otherwise.


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



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

-------------------------------------------------------------------------
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 27, Issue 14
*******************************************


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