Gtkmm-forge digest, Vol 1 #1023 - 8 msgs



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-admin 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 134161] get_widget_derived() alternative (gnomemm (bugzilla.gnome.org))
   2. [Bug 303044] arbitary constructors for Glade::Xml::get_widget_derived (gnomemm (bugzilla.gnome.org))
   3. [Bug 317406] Printable tutorial would be useful. (gtkmm (bugzilla.gnome.org))
   4. [Bug 324422] Add tutorial documentation for drawing with Cairo (gtkmm (bugzilla.gnome.org))
   5. [Bug 324422] Add tutorial documentation for drawing with Cairo (gtkmm (bugzilla.gnome.org))
   6. [Bug 324422] Add tutorial documentation for drawing with Cairo (gtkmm (bugzilla.gnome.org))
   7. [Bug 324422] Add tutorial documentation for drawing with Cairo (gtkmm (bugzilla.gnome.org))
   8. [Bug 324422] Add tutorial documentation for drawing with Cairo (gtkmm (bugzilla.gnome.org))

--__--__--

Message: 1
To: gtkmm-forge lists sourceforge net
From: "gnomemm (bugzilla.gnome.org)" <bugzilla-daemon bugzilla gnome org>
Date: Mon, 19 Dec 2005 04:25:39 -0500 (EST)
Subject: [gtkmm bugzilla] [Bug 134161] get_widget_derived() alternative

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=3D134161
 gnomemm | libglademm | Ver: unspecified


Murray Cumming changed:

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




------- Comment #8 from Murray Cumming  2005-12-19 09:25 UTC -------
I've finally had the chance to look at the patch. It looks pretty good, a=
nd
seems to work.

In summary, it lets you do this:

class HelloDialog : public Gnome::Glade::Derived<Gtk::Dialog>
{
public
  HelloDialog()
  : Gnome::Glade::Derived<Gtk::Dialog>("derivedclass.glade", "exampleDial=
og")
  {}
};

or

class HelloButton : public Gnome::Glade::Derived<Gtk::Button>
{
public
  HelloDialog(const Glib::RefPtr<Gnome::Glade::Xml>& xml)
  : Gnome::Glade::Derived<Gtk::Dialog>(xml, "exampleButton")
  {}
};

However, in almost all cases you would want the constructor to take a
Glade::Xml, so you can do this:

class HelloDialog : public Gnome::Glade::Derived<Gtk::Dialog>
{
public
  HelloDialog()
  : Gnome::Glade::Derived<Gtk::Dialog>("derivedclass.glade", "exampleDial=
og"),
    m_button(get_xml(), "button")
  {}
};

So the only advantage to this method that I see is that it requires less =
code,
and can be used in the initializer list. That's good though.

However,=20
1. it uses the SomeWidget(cobject) constructor directly, without checking
whether there is an existing instance that it should return (See
ObjectBase::_get_current_wrapper() in the existing get_widget_derived()),=
 so
this would cause problems if two widgets were instantiated for the same i=
tem in
the glade file.
2. It doesn't check whether the instantiated C widget is of the expected =
type.
But that should be easy to add.


--=20
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=3Demail
------- You are receiving this mail because: -------
You are the assignee for the bug.


--__--__--

Message: 2
To: gtkmm-forge lists sourceforge net
From: "gnomemm (bugzilla.gnome.org)" <bugzilla-daemon bugzilla gnome org>
Date: Mon, 19 Dec 2005 04:32:08 -0500 (EST)
Subject: [gtkmm bugzilla] [Bug 303044] arbitary constructors for Glade::Xml::get_widget_derived

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=3D303044
 gnomemm | libglademm | Ver: unspecified


Murray Cumming changed:

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




------- Comment #3 from Murray Cumming  2005-12-19 09:32 UTC -------
Thanks. Sorry for the delay.

So, get_widget_derived() takes a slot and calls to instantiate the widget=
, so
that the widget's constructor can have the Glade::Xml parameter at any po=
sition
in the parameter list. However, derived widgets would still need/want to =
take
the Glade::Xml parameter in their constructor.

When would this be helpful?


--=20
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=3Demail
------- You are receiving this mail because: -------
You are the assignee for the bug.


--__--__--

Message: 3
To: gtkmm-forge lists sourceforge net
From: "gtkmm (bugzilla.gnome.org)" <bugzilla-daemon bugzilla gnome org>
Date: Mon, 19 Dec 2005 04:33:51 -0500 (EST)
Subject: [gtkmm bugzilla] [Bug 317406] Printable tutorial would be useful.

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=3D317406
 gtkmm | reference documentation | Ver: 2.6.x


Murray Cumming changed:

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




------- Comment #4 from Murray Cumming  2005-12-19 09:33 UTC -------
I suggest that you contact the gnome-doc people on one of their mailing l=
ists
if you need help. This should be a fairly generic GNOME documentation sys=
tem
issue.


--=20
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=3Demail
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


--__--__--

Message: 4
To: gtkmm-forge lists sourceforge net
From: "gtkmm (bugzilla.gnome.org)" <bugzilla-daemon bugzilla gnome org>
Date: Mon, 19 Dec 2005 04:42:43 -0500 (EST)
Subject: [gtkmm bugzilla] [Bug 324422] Add tutorial documentation for drawing with Cairo

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=3D324422
 gtkmm | reference documentation | Ver: unspecified


Murray Cumming changed:

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




------- Comment #3 from Murray Cumming  2005-12-19 09:42 UTC -------
This is fantastic.

I suggest avoiding stuff such as "Because Gdk is older and more mature th=
an
Cairo, it tends to be somewhat faster and more efficient at the moment.",
because it will become outdated very quickly. Instead, I suggest recommen=
ding
the new methods wherever possible, and only mention Gdk where there is no
alternative and/or it's really meant to still be used together with Cairo=
. Put
the historical stuff in an appendix if you think it's really necessary.

Please avoid using gint in gtkmm examples - We only use g types where the=
y
offer some platform independence. And I'd prefer "event" to "e".

We might need to update this slightly if I apply this patch:
http://lists.freedesktop.org/archives/cairo/2005-December/005877.html


--=20
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=3Demail
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


--__--__--

Message: 5
To: gtkmm-forge lists sourceforge net
From: "gtkmm (bugzilla.gnome.org)" <bugzilla-daemon bugzilla gnome org>
Date: Mon, 19 Dec 2005 09:41:27 -0500 (EST)
Subject: [gtkmm bugzilla] [Bug 324422] Add tutorial documentation for drawing with Cairo

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=3D324422
 gtkmm | reference documentation | Ver: unspecified


jonner changed:

           What    |Removed                     |Added
-------------------------------------------------------------------------=
---
                 CC|                            |jonathon jongsma gmail c=
om




------- Comment #4 from jonner  2005-12-19 14:41 UTC -------
Good points.  I'll make the changes you've mentioned. =20

Have you made a decision about whether you'll apply that RefPtr patch or =
not?=20
The email sounded like you're leaning toward it.  If this bug is still op=
en
when you make a decision, will you add a comment here so I'm sure to catc=
h it?
(although I suppose compilation of the examples will fail when I update m=
y
working directory, so I'll almost certainly notice)

I also just realized that all of my screenshots use the clearlooks theme.=
=20
Since this is the new default theme for GNOME (right?) it seems like the =
thing
to do, but it doesn't match the existing screenshots.  Any thoughts on th=
at?

Another question: I've used some of the 'tip' or 'note' docbook elements
because I find them useful for mentioning things that are related but don=
't
flow as well within the text.  I've noticed that the existing tutorial do=
esn't
make use of these elements -- was it an intentional decision to avoid the=
m?

Also, in the examples, I've used the C enum values (e.g. CAIRO_LINE_CAP_R=
OUND).
 Is this the intended way to use these, or will there be wrapped enum typ=
es
within the Cairo namespace in the future (or are there already?) such as
Cairo::LINE_CAP_ROUND or something similar?

I apologize for the extra crap (dotfiles, etc) that was accidentally incl=
uded
in the tarball of new files.  I'll post an updated one when I make the ch=
anges
above.


--=20
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=3Demail
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


--__--__--

Message: 6
To: gtkmm-forge lists sourceforge net
From: "gtkmm (bugzilla.gnome.org)" <bugzilla-daemon bugzilla gnome org>
Date: Mon, 19 Dec 2005 10:01:17 -0500 (EST)
Subject: [gtkmm bugzilla] [Bug 324422] Add tutorial documentation for drawing with Cairo

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=3D324422
 gtkmm | reference documentation | Ver: unspecified





------- Comment #5 from Murray Cumming  2005-12-19 15:01 UTC -------
> Have you made a decision about whether you'll apply that RefPtr patch o=
r not?

I probably will apply it, but I'm waiting for people to object. Do you mi=
nd it?

You might want to wait a day or two.

> clearlooks theme

Yes, that's OK. Some time we must update all the screenshots.

> 'tip' or 'note' docbook elements

I didn't know about them. Feel free.

> will there be wrapped enum types within the Cairo namespace in the futu=
re

Yes, I think so, though it will require copy/pasting.


--=20
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=3Demail
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


--__--__--

Message: 7
To: gtkmm-forge lists sourceforge net
From: "gtkmm (bugzilla.gnome.org)" <bugzilla-daemon bugzilla gnome org>
Date: Mon, 19 Dec 2005 21:13:44 -0500 (EST)
Subject: [gtkmm bugzilla] [Bug 324422] Add tutorial documentation for drawing with Cairo

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=3D324422
 gtkmm | reference documentation | Ver: unspecified


jonner changed:

           What    |Removed                     |Added
-------------------------------------------------------------------------=
---
  Attachment #56125|0                           |1
        is obsolete|                            |




------- Comment #6 from jonner  2005-12-20 02:13 UTC -------
Created an attachment (id=3D56183)
 --> (http://bugzilla.gnome.org/attachment.cgi?id=3D56183&action=3Dview)
Updated patch for cairo documentation in tutorial

Made changes mentioned in the comment above. =20


--=20
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=3Demail
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


--__--__--

Message: 8
To: gtkmm-forge lists sourceforge net
From: "gtkmm (bugzilla.gnome.org)" <bugzilla-daemon bugzilla gnome org>
Date: Mon, 19 Dec 2005 21:14:41 -0500 (EST)
Subject: [gtkmm bugzilla] [Bug 324422] Add tutorial documentation for drawing with Cairo

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=3D324422
 gtkmm | reference documentation | Ver: unspecified


jonner changed:

           What    |Removed                     |Added
-------------------------------------------------------------------------=
---
  Attachment #56126|0                           |1
        is obsolete|                            |




------- Comment #7 from jonner  2005-12-20 02:14 UTC -------
Created an attachment (id=3D56184)
 --> (http://bugzilla.gnome.org/attachment.cgi?id=3D56184&action=3Dview)
updated tarball of new files to add to CVS


--=20
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=3Demail
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



--__--__--

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


End of Gtkmm-forge Digest



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