Send Gtkmm-forge mailing list submissions to
[email protected]
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
[email protected]
You can reach the person managing the list at
[email protected]
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 582996] goocanvasmm: missing return value
(gnomemm (bugzilla.gnome.org))
2. [Bug 582997] Missing return value (gnomemm (bugzilla.gnome.org))
3. [Bug 582981] an editable TreeViewColumn when a
TreeModelFilter is used as TreeModel doesn't work properly
(gtkmm (bugzilla.gnome.org))
4. [Bug 582439] [PATCH] Fix build on maemo platform
(gnomemm (bugzilla.gnome.org))
5. [Bug 582439] [PATCH] Fix build on maemo platform
(gnomemm (bugzilla.gnome.org))
6. [Bug 583037] New: Reference counting for return value of
Gtk::IconView::get_model() is not proper (gtkmm (bugzilla.gnome.org))
7. [Bug 582981] an editable TreeViewColumn when a
TreeModelFilter is used as TreeModel doesn't work properly
(gtkmm (bugzilla.gnome.org))
----------------------------------------------------------------------
Message: 1
Date: Mon, 18 May 2009 08:59:22 +0000 (UTC)
From: "gnomemm (bugzilla.gnome.org)"
<[email protected]>
Subject: [gtkmm bugzilla] [Bug 582996] goocanvasmm: missing return
value
To: [email protected]
Message-ID: <[email protected]>
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=582996
gnomemm | goocanvasmm | Ver: unspecified
Murray Cumming changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Comment #2 from Murray Cumming 2009-05-18 08:59 UTC -------
Fixed in git. Thanks. The .h/cc files are generated from the .hg/.ccg files.
--
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=582996.
------------------------------
Message: 2
Date: Mon, 18 May 2009 09:06:45 +0000 (UTC)
From: "gnomemm (bugzilla.gnome.org)"
<[email protected]>
Subject: [gtkmm bugzilla] [Bug 582997] Missing return value
To: [email protected]
Message-ID: <[email protected]>
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=582997
gnomemm | libgdamm | Ver: unspecified
Murray Cumming changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Comment #2 from Murray Cumming 2009-05-18 09:06 UTC -------
Fixed in git. 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=582997.
------------------------------
Message: 3
Date: Mon, 18 May 2009 09:11:37 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
<[email protected]>
Subject: [gtkmm bugzilla] [Bug 582981] an editable TreeViewColumn when
a TreeModelFilter is used as TreeModel doesn't work properly
To: [email protected]
Message-ID: <[email protected]>
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=582981
gtkmm | TreeView | Ver: 2.16.x
Murray Cumming changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
------- Comment #2 from Murray Cumming 2009-05-18 09:11 UTC -------
I thought I had fixed this ages ago in this commit:
2004-10-30 Murray Cumming <[email protected]>
* gtk/src/treemodelfilter.[hg|ccg]: Added implementations of
set_value_impl() to ouput a warning when it is used instead of
the child model. Added const versions of patch convert methods.
* gtk/src/treeview.[hg|ccg]: Added _get_base_model() non-public API
member method to get the child model, if necessary. Used it in the
cell renderer signal handlers instead of get_model().
* Added examples/book/treeview/filter, from the gtkmm-2-4 branch.
Maybe you could investigate why that is not working.
Of course there are only convenience methods, so in the worst case you can just
construct the view columns manually.
--
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=582981.
------------------------------
Message: 4
Date: Mon, 18 May 2009 09:22:28 +0000 (UTC)
From: "gnomemm (bugzilla.gnome.org)"
<[email protected]>
Subject: [gtkmm bugzilla] [Bug 582439] [PATCH] Fix build on maemo
platform
To: [email protected]
Message-ID: <[email protected]>
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=582439
gnomemm | gstreamermm | Ver: unspecified
------- Comment #16 from Johannes Schmid 2009-05-18 09:22 UTC -------
Regarding the exceptions I have a question:
Bin::add and Bin::remove throw std::exceptions. IMHO it would be better to just
print the message ("Cannot add/remove null element) to stderr when using no
exceptions because this is something usually handled by a g_return_if_fail() in
gtk+.
Doing things like
bin->add(e1)->add(e2)
will most likely crash anyway because the exceptions are never catched and this
seems more a check for a programming error than a real use-case for exceptions.
--
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=582439.
------------------------------
Message: 5
Date: Mon, 18 May 2009 09:29:47 +0000 (UTC)
From: "gnomemm (bugzilla.gnome.org)"
<[email protected]>
Subject: [gtkmm bugzilla] [Bug 582439] [PATCH] Fix build on maemo
platform
To: [email protected]
Message-ID: <[email protected]>
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=582439
gnomemm | gstreamermm | Ver: unspecified
------- Comment #17 from Murray Cumming 2009-05-18 09:29 UTC -------
I think that's OK for a first attempt. You could create a handle_error() method
that had the ifdef only inside there, to keep it simple.
Later we probably do need a version of add() and remove() that take an error
output parameter. That means that the "chaining" syntax can't be used, but I
don't see a way around that.
> Doing things like
> bin->add(e1)->add(e2)
> will most likely crash anyway because the exceptions are never catched
Well they should be caught. Please correct any example code that doesn't catch
the exceptions.
--
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=582439.
------------------------------
Message: 6
Date: Mon, 18 May 2009 12:52:44 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
<[email protected]>
Subject: [gtkmm bugzilla] [Bug 583037] New: Reference counting for
return value of Gtk::IconView::get_model() is not proper
To: [email protected]
Message-ID: <[email protected]/>
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=583037
gtkmm | general | Ver: unspecified
Summary: Reference counting for return value of
Gtk::IconView::get_model() is not proper
Product: gtkmm
Version: unspecified
Platform: Other
OS/Version: Linux
Status: UNCONFIRMED
Severity: major
Priority: Normal
Component: general
AssignedTo: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]
CC: [email protected]
GNOME version: Unspecified
GNOME milestone: Unspecified
Please check: http://git.gnome.org/cgit/gtkmm/tree/gtk/src/iconview.hg line:58
Now look at: http://git.gnome.org/cgit/gtkmm/tree/gtk/src/treeview.hg line 124
in iconview.hg the definition should be:
_WRAP_METHOD(Glib::RefPtr<TreeModel> get_model(), gtk_icon_view_get_model,
refreturn)
Due to this the following code will lead to overall application crash:
Item SomeDerivedClassFromIconView::get_item_from_path(
const Gtk::TreeModel::Path &path )
{
const TreeViewPtr &model = get_model();
//Do some thing to get item
return item;
}
As a work-around we are using:
Item SomeDerivedClassFromIconView::get_item_from_path(
const Gtk::TreeModel::Path &path )
{
const TreeViewPtr &model = get_model();
g_object_ref( model->gobj() );
//Do some thing to get item
return item;
}
--
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=583037.
------------------------------
Message: 7
Date: Mon, 18 May 2009 15:19:57 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
<[email protected]>
Subject: [gtkmm bugzilla] [Bug 582981] an editable TreeViewColumn when
a TreeModelFilter is used as TreeModel doesn't work properly
To: [email protected]
Message-ID: <[email protected]>
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=582981
gtkmm | TreeView | Ver: 2.16.x
------- Comment #3 from Luca Wehrstedt 2009-05-18 15:19 UTC -------
I've tried to workaround the bug by creating the column manually, and by doing
it I think I've discovered what causes it. I'll try to explain it as good as I
can.
When connecting the "toggled" signal to the cellrenderer, the callback function
receives as argument the path of the row, in the form of a ustring.
If it tries to get the iter using the treemodelfilter (by doing
filter->get_iter(path)), it doesn't work and gtkmm prints a warning, I think
because of the changes you've made in the commit you've mentioned above.
If it tries to get the iter using the treemodel on which the treemodelfilter is
based (by doing filter->get_model()->get_iter(path)) it gets the wrong iter,
because the path (which is simply a number) is not referred to that treemodel.
This is the actual behavior of gtkmm, and because of this the bug appears.
If it tries to get the iter using the treemodelfilter, but then it converts it
to a treemodel iter (using filter->convert_iter_to_child_iter) it gets the
right iter and behaves as expected.
Resuming: the bug is related to the fact that the model passed to
TreeView::_auto_store_on_cellrenderer_toggle_edited_with_model is obtained
using TreeView::_get_base_model.
There should be a control inside the first function (or inside the function
which calls it) to check whether the model is a treemodelfilter or not, and, if
it is, to modify the iter opportunely.
--
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=582981.
------------------------------
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
------------------------------
_______________________________________________
Gtkmm-forge mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkmm-forge
End of Gtkmm-forge Digest, Vol 36, Issue 10
*******************************************
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list