<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-1344</id>
	<title>Nabble - Gtkmm</title>
	<updated>2009-11-25T15:38:03Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Gtkmm-f1344.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Gtkmm-f1344.html" />
	<subtitle type="html">gtkmm (previously known as Gtk--) is the official C++ interface for the popular GUI library GTK+.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26522280</id>
	<title>Re: Controlling the hardware volume</title>
	<published>2009-11-25T15:38:03Z</published>
	<updated>2009-11-25T15:38:03Z</updated>
	<author>
		<name>Carlo Wood</name>
	</author>
	<content type="html">Thanks! However I'm writing a recording application:
&lt;br&gt;I want to change the mixer settings in order to get the microphone
&lt;br&gt;signal from AlsaSrc. So, I need to set_record on the Mic and set
&lt;br&gt;the recording volume on Capture (and AC97, I think). I'll also
&lt;br&gt;set the rest to 0 ;).
&lt;br&gt;&lt;br&gt;On Wed, Nov 25, 2009 at 06:12:19PM -0500, José Alburquerque wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Wed, 2009-11-25 at 01:04 -0500, José Alburquerque wrote: 
&lt;br&gt;&amp;gt; &amp;gt; Finally, another element you might consider when working with volume
&lt;br&gt;&amp;gt; &amp;gt; control is the Gst::Volume plug-in. &amp;nbsp;According to the docs here:
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-volume.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-volume.html&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; It allows the control of the volume of audio through a pipeline.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; One other thing:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The new update[1] in the docs from the bug I filed resulting from the
&lt;br&gt;&amp;gt; original bug report you filed seems to suggest that the Gst::Mixer
&lt;br&gt;&amp;gt; interface might not be the best way to control volume in an app. &amp;nbsp;It
&lt;br&gt;&amp;gt; suggests that either a Gst::Volume element or a Gst::Playbin be used in
&lt;br&gt;&amp;gt; a pipeline, or use the audiosink's volume property if it has one.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; [1]
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=5a1c788d9a58a032442ea09f091306640a0a7069&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=5a1c788d9a58a032442ea09f091306640a0a7069&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; José
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;Carlo Wood &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26522280&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;carlo@...&lt;/a&gt;&amp;gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;gtkmm-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26522280&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtkmm-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtkmm-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtkmm-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ANNOUNCE%3A-gstreamermm-0.10.5-tp25267806p26522280.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26521981</id>
	<title>hide scrolledWindow hscrollbar</title>
	<published>2009-11-25T15:15:28Z</published>
	<updated>2009-11-25T15:15:28Z</updated>
	<author>
		<name>gafferuk</name>
	</author>
	<content type="html">hi, i have a scrolledwindow containing a table, this table contains 10 * 100 custom widgets.
&lt;br&gt;&lt;br&gt;i wish to hide the hscrollbar but if i set it's policy to NEVER the scrollbar does hide but the window is now huge as its showing all the 10 * 100 controls at once.
&lt;br&gt;&lt;br&gt;how do i hide the hscrollbar but still give me normal functionality?
&lt;br&gt;&lt;br&gt;I hope you understand, it should be simple really.
&lt;br&gt;&lt;br&gt;Thanks.
&lt;br&gt;Paul.</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/hide-scrolledWindow-hscrollbar-tp26521981p26521981.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26521952</id>
	<title>Re: Controlling the hardware volume</title>
	<published>2009-11-25T15:12:19Z</published>
	<updated>2009-11-25T15:12:19Z</updated>
	<author>
		<name>José Alburquerque-3</name>
	</author>
	<content type="html">On Wed, 2009-11-25 at 01:04 -0500, José Alburquerque wrote: 
&lt;br&gt;&amp;gt; Finally, another element you might consider when working with volume
&lt;br&gt;&amp;gt; control is the Gst::Volume plug-in. &amp;nbsp;According to the docs here:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-volume.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-volume.html&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; It allows the control of the volume of audio through a pipeline.
&lt;br&gt;&lt;br&gt;One other thing:
&lt;br&gt;&lt;br&gt;The new update[1] in the docs from the bug I filed resulting from the
&lt;br&gt;original bug report you filed seems to suggest that the Gst::Mixer
&lt;br&gt;interface might not be the best way to control volume in an app. &amp;nbsp;It
&lt;br&gt;suggests that either a Gst::Volume element or a Gst::Playbin be used in
&lt;br&gt;a pipeline, or use the audiosink's volume property if it has one.
&lt;br&gt;&lt;br&gt;[1]
&lt;br&gt;&lt;a href=&quot;http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=5a1c788d9a58a032442ea09f091306640a0a7069&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=5a1c788d9a58a032442ea09f091306640a0a7069&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;José
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;gtkmm-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26521952&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtkmm-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtkmm-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtkmm-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ANNOUNCE%3A-gstreamermm-0.10.5-tp25267806p26521952.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26521848</id>
	<title>Re: How to get mute and record state of a mixer?</title>
	<published>2009-11-25T15:03:37Z</published>
	<updated>2009-11-25T15:03:37Z</updated>
	<author>
		<name>José Alburquerque-3</name>
	</author>
	<content type="html">On Wed, 2009-11-25 at 15:00 -0500, José Alburquerque wrote: 
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Wed, 2009-11-25 at 15:48 +0100, Carlo Wood wrote: 
&lt;br&gt;&amp;gt; &amp;gt; Gst::Mixer has
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; set_volume, set_mute and set_record.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; But there is only get_volume.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Why isn't there a get_mute and get_record?
&lt;br&gt;&amp;gt; &amp;gt; Is that impossible, or is there another way I can get the current values?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Gst::Mixer wraps only the API that the C API exposes. &amp;nbsp;The GstMixer
&lt;br&gt;&amp;gt; functions available just don't provide functionality for the functions
&lt;br&gt;&amp;gt; you mention (see the GstMixer docs[1]).
&lt;/div&gt;&lt;br&gt;You know, rechecking the docs, the C API does have a macro called
&lt;br&gt;GST_MIXER_TRACK_HAS_FLAG() used to check what flags a Gst::MixerTrack
&lt;br&gt;has. &amp;nbsp;We'll try to add a convenience function for this. &amp;nbsp;For now, using
&lt;br&gt;the Gst::MixerTrack::property_flags() property and seeing if the
&lt;br&gt;appropriate flag from Gst::MixerTrackFlags is set should work just as
&lt;br&gt;well.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;José
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;gtkmm-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26521848&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtkmm-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtkmm-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtkmm-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-get-mute-and-record-state-of-a-mixer--tp26513964p26521848.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26519351</id>
	<title>Re: How to get mute and record state of a mixer?</title>
	<published>2009-11-25T12:00:45Z</published>
	<updated>2009-11-25T12:00:45Z</updated>
	<author>
		<name>José Alburquerque-3</name>
	</author>
	<content type="html">On Wed, 2009-11-25 at 15:48 +0100, Carlo Wood wrote: 
&lt;br&gt;&amp;gt; Gst::Mixer has
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; set_volume, set_mute and set_record.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; But there is only get_volume.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Why isn't there a get_mute and get_record?
&lt;br&gt;&amp;gt; Is that impossible, or is there another way I can get the current values?
&lt;br&gt;&lt;br&gt;Gst::Mixer wraps only the API that the C API exposes. &amp;nbsp;The GstMixer
&lt;br&gt;functions available just don't provide functionality for the functions
&lt;br&gt;you mention (see the GstMixer docs[1]).
&lt;br&gt;&lt;br&gt;You may want to look at the other alsa plug-ins such as Gst::AlsaSrc and
&lt;br&gt;Gst::AlsaSink. &amp;nbsp;Also, something that may be relevant in the GstMixer
&lt;br&gt;docs is found in the gst_mixer_list_tracks()[2] method. &amp;nbsp;I'll try to
&lt;br&gt;update the docs in gstreamermm to reflect that. &amp;nbsp;You may also file a bug
&lt;br&gt;about that if you'd like so it is not forgotten. &amp;nbsp;Thanks.
&lt;br&gt;&lt;br&gt;[1]
&lt;br&gt;&lt;a href=&quot;http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstmixer.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstmixer.html&lt;/a&gt;&lt;br&gt;[2]
&lt;br&gt;&lt;a href=&quot;http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstmixer.html#gst-mixer-list-tracks&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstmixer.html#gst-mixer-list-tracks&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;José
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;gtkmm-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26519351&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtkmm-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtkmm-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtkmm-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-get-mute-and-record-state-of-a-mixer--tp26513964p26519351.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26519327</id>
	<title>Re: Controlling the hardware volume</title>
	<published>2009-11-25T11:59:27Z</published>
	<updated>2009-11-25T11:59:27Z</updated>
	<author>
		<name>José Alburquerque-3</name>
	</author>
	<content type="html">On Wed, 2009-11-25 at 10:24 +0000, Chris Vine wrote: 
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Wed, 25 Nov 2009 01:04:06 -0500
&lt;br&gt;&amp;gt; José Alburquerque &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26519327&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jaalburquerque@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; On Tue, 2009-11-24 at 17:05 -0500, José Alburquerque wrote: 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; The problem is that your trying to initialize a Glib::RefPtr&amp;lt;&amp;gt;&amp;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; from a Glib::RefPtr&amp;lt;&amp;gt; (which the std::list&amp;lt;&amp;gt; contains). &amp;nbsp;A
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; std::list&amp;lt;&amp;gt; is not designed to store references.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; It doesn't seem clear what I was trying to say about lists not
&lt;br&gt;&amp;gt; &amp;gt; &amp;quot;storing&amp;quot; references. &amp;nbsp;I guess what I was trying to say is that I
&lt;br&gt;&amp;gt; &amp;gt; think trying to extract a reference by dereferencing a
&lt;br&gt;&amp;gt; &amp;gt; list&amp;lt;&amp;gt;::iterator is not doable. I was also trying to suggest another
&lt;br&gt;&amp;gt; &amp;gt; way get at the contents of the list.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; You would expect std::list&amp;lt;T&amp;gt;::iterator::operator*() to return a
&lt;br&gt;&amp;gt; reference rather than a value type (it does on my version of libstdc++),
&lt;br&gt;&amp;gt; so it shouldn't fall foul of the preclusion of binding a temporary to a
&lt;br&gt;&amp;gt; non-const reference.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Isn't the explanation simply that Glib::RefPtr&amp;lt;Gst::MixerTrack&amp;gt; and
&lt;br&gt;&amp;gt; Glib::RefPtr&amp;lt;Gst::MixerTrack const&amp;gt; are different types (as they are)?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Glib::RefPtr&amp;lt;Gst::MixerTrack const&amp;gt; track = *iter (ie instantiating a
&lt;br&gt;&amp;gt; new RefPtr object rather than a reference) should work because it will
&lt;br&gt;&amp;gt; cause the templated version of the RefPtr's copy constructor to be
&lt;br&gt;&amp;gt; invoked, which will allow implicit conversion of the RefPtr's value
&lt;br&gt;&amp;gt; type.
&lt;/div&gt;&lt;br&gt;Ah yes, that's right. &amp;nbsp;I don't know why I didn't see it in my testing of
&lt;br&gt;the code the OP posted. &amp;nbsp;It is possible to do:
&lt;br&gt;&lt;br&gt;Glib::RefPtr&amp;lt;...&amp;gt;&amp; var = *iter;
&lt;br&gt;&lt;br&gt;in the loop as long as the types aren't mixed. &amp;nbsp;So as you say
&lt;br&gt;dereferencing an iterator does in fact give back a reference.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;José
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;gtkmm-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26519327&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtkmm-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtkmm-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtkmm-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ANNOUNCE%3A-gstreamermm-0.10.5-tp25267806p26519327.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26513964</id>
	<title>How to get mute and record state of a mixer?</title>
	<published>2009-11-25T06:48:53Z</published>
	<updated>2009-11-25T06:48:53Z</updated>
	<author>
		<name>Carlo Wood</name>
	</author>
	<content type="html">Gst::Mixer has
&lt;br&gt;&lt;br&gt;set_volume, set_mute and set_record.
&lt;br&gt;&lt;br&gt;But there is only get_volume.
&lt;br&gt;&lt;br&gt;Why isn't there a get_mute and get_record?
&lt;br&gt;Is that impossible, or is there another way I can get the current values?
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Carlo Wood &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26513964&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;carlo@...&lt;/a&gt;&amp;gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;gtkmm-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26513964&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtkmm-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtkmm-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtkmm-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-get-mute-and-record-state-of-a-mixer--tp26513964p26513964.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26513182</id>
	<title>Next Stable Version of glibmm</title>
	<published>2009-11-25T06:04:25Z</published>
	<updated>2009-11-25T06:04:25Z</updated>
	<author>
		<name>michi7x7</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;&lt;br&gt;when is the next stable Version of glibmm, containing Gio::Socket and 
&lt;br&gt;others, supposed to be released?
&lt;br&gt;&lt;br&gt;With regards
&lt;br&gt;&lt;br&gt;Michi
&lt;br&gt;_______________________________________________
&lt;br&gt;gtkmm-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26513182&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtkmm-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtkmm-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtkmm-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Next-Stable-Version-of-glibmm-tp26513182p26513182.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26510437</id>
	<title>Re: Controlling the hardware volume</title>
	<published>2009-11-25T02:24:59Z</published>
	<updated>2009-11-25T02:24:59Z</updated>
	<author>
		<name>Chris Vine</name>
	</author>
	<content type="html">On Wed, 25 Nov 2009 01:04:06 -0500
&lt;br&gt;José Alburquerque &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510437&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jaalburquerque@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Tue, 2009-11-24 at 17:05 -0500, José Alburquerque wrote: 
&lt;br&gt;&amp;gt; &amp;gt; The problem is that your trying to initialize a Glib::RefPtr&amp;lt;&amp;gt;&amp;
&lt;br&gt;&amp;gt; &amp;gt; from a Glib::RefPtr&amp;lt;&amp;gt; (which the std::list&amp;lt;&amp;gt; contains). &amp;nbsp;A
&lt;br&gt;&amp;gt; &amp;gt; std::list&amp;lt;&amp;gt; is not designed to store references.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; It doesn't seem clear what I was trying to say about lists not
&lt;br&gt;&amp;gt; &amp;quot;storing&amp;quot; references. &amp;nbsp;I guess what I was trying to say is that I
&lt;br&gt;&amp;gt; think trying to extract a reference by dereferencing a
&lt;br&gt;&amp;gt; list&amp;lt;&amp;gt;::iterator is not doable. I was also trying to suggest another
&lt;br&gt;&amp;gt; way get at the contents of the list.
&lt;/div&gt;&lt;br&gt;You would expect std::list&amp;lt;T&amp;gt;::iterator::operator*() to return a
&lt;br&gt;reference rather than a value type (it does on my version of libstdc++),
&lt;br&gt;so it shouldn't fall foul of the preclusion of binding a temporary to a
&lt;br&gt;non-const reference.
&lt;br&gt;&lt;br&gt;Isn't the explanation simply that Glib::RefPtr&amp;lt;Gst::MixerTrack&amp;gt; and
&lt;br&gt;Glib::RefPtr&amp;lt;Gst::MixerTrack const&amp;gt; are different types (as they are)?
&lt;br&gt;&lt;br&gt;Glib::RefPtr&amp;lt;Gst::MixerTrack const&amp;gt; track = *iter (ie instantiating a
&lt;br&gt;new RefPtr object rather than a reference) should work because it will
&lt;br&gt;cause the templated version of the RefPtr's copy constructor to be
&lt;br&gt;invoked, which will allow implicit conversion of the RefPtr's value
&lt;br&gt;type.
&lt;br&gt;&lt;br&gt;Chris
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;gtkmm-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510437&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtkmm-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtkmm-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtkmm-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ANNOUNCE%3A-gstreamermm-0.10.5-tp25267806p26510437.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26507981</id>
	<title>Controlling the hardware volume</title>
	<published>2009-11-24T22:04:06Z</published>
	<updated>2009-11-24T22:04:06Z</updated>
	<author>
		<name>José Alburquerque-3</name>
	</author>
	<content type="html">On Tue, 2009-11-24 at 17:05 -0500, José Alburquerque wrote: 
&lt;br&gt;&amp;gt; The problem is that your trying to initialize a Glib::RefPtr&amp;lt;&amp;gt;&amp; from a
&lt;br&gt;&amp;gt; Glib::RefPtr&amp;lt;&amp;gt; (which the std::list&amp;lt;&amp;gt; contains). &amp;nbsp;A std::list&amp;lt;&amp;gt; is not
&lt;br&gt;&amp;gt; designed to store references.
&lt;br&gt;&lt;br&gt;It doesn't seem clear what I was trying to say about lists not &amp;quot;storing&amp;quot;
&lt;br&gt;references. &amp;nbsp;I guess what I was trying to say is that I think trying to
&lt;br&gt;extract a reference by dereferencing a list&amp;lt;&amp;gt;::iterator is not doable.
&lt;br&gt;I was also trying to suggest another way get at the contents of the
&lt;br&gt;list.
&lt;br&gt;&lt;br&gt;There are other ways to access the list, of course.
&lt;br&gt;std::list&amp;lt;&amp;gt;::pop_front(), for example, removes the first element of the
&lt;br&gt;list and std::list&amp;lt;&amp;gt;::front() does in fact return a reference so it
&lt;br&gt;would be fine to initialize a Glib::RefPtr&amp;lt;&amp;gt;&amp; with the result from that.
&lt;br&gt;I'm sure you probably know all this, but in case you don't I might as
&lt;br&gt;well add this comment in case it helps further.
&lt;br&gt;&lt;br&gt;Also, from the docs, a std::vector can be used instead of std::list.
&lt;br&gt;&lt;br&gt;Finally, another element you might consider when working with volume
&lt;br&gt;control is the Gst::Volume plug-in. &amp;nbsp;According to the docs here:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-volume.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-volume.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;It allows the control of the volume of audio through a pipeline. &amp;nbsp;I hope
&lt;br&gt;this all might be useful.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;José
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;gtkmm-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26507981&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtkmm-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtkmm-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtkmm-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ANNOUNCE%3A-gstreamermm-0.10.5-tp25267806p26507981.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26504106</id>
	<title>Re: ANNOUNCE: gstreamermm-0.10.5</title>
	<published>2009-11-24T14:05:57Z</published>
	<updated>2009-11-24T14:05:57Z</updated>
	<author>
		<name>José Alburquerque-3</name>
	</author>
	<content type="html">On Tue, 2009-11-24 at 13:55 +0100, Carlo Wood wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi, I have another question about gstreamermm. Trying to print the volume
&lt;br&gt;&amp;gt; of the given tracks:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; // List the tracks of the mixer.
&lt;br&gt;&amp;gt; &amp;nbsp; typedef std::list&amp;lt;Glib::RefPtr&amp;lt;Gst::MixerTrack&amp;gt; &amp;gt; tracks_type;
&lt;br&gt;&amp;gt; &amp;nbsp; tracks_type tracks = mixer-&amp;gt;list_tracks();
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; for (tracks_type::iterator iter = tracks.begin(); iter != tracks.end(); ++iter)
&lt;br&gt;&amp;gt; &amp;nbsp; {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Glib::RefPtr&amp;lt;Gst::MixerTrack const&amp;gt;&amp; track = *iter;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; std::cout &amp;lt;&amp;lt; track-&amp;gt;get_label() &amp;lt;&amp;lt; ' ' &amp;lt;&amp;lt; mixer-&amp;gt;get_volume(track) &amp;lt;&amp;lt; std::endl;
&lt;br&gt;&amp;gt; &amp;nbsp; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This doesn't work... First I tried &amp;nbsp;get_volume(*iter) &amp;nbsp;but that can't find
&lt;br&gt;&amp;gt; a 'get_volume', because the only get_volume that is there demands a
&lt;br&gt;&amp;gt; Glib::RefPtr&amp;lt;Gst::MixerTrack const&amp;gt; (note the 'const').
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; So, I tried to convert *iter (which is a Glib::RefPtr&amp;lt;Gst::MixerTrack&amp;gt;)
&lt;br&gt;&amp;gt; to a Glib::RefPtr&amp;lt;Gst::MixerTrack const&amp;gt; in the line before, and indeed,
&lt;br&gt;&amp;gt; that fails.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; How am I supposed to get the volume of the tracks now?
&lt;/div&gt;&lt;br&gt;The problem is that your trying to initialize a Glib::RefPtr&amp;lt;&amp;gt;&amp; from a
&lt;br&gt;Glib::RefPtr&amp;lt;&amp;gt; (which the std::list&amp;lt;&amp;gt; contains). &amp;nbsp;A std::list&amp;lt;&amp;gt; is not
&lt;br&gt;designed to store references. &amp;nbsp;You should just do something like:
&lt;br&gt;&lt;br&gt;Glib::RefPtr&amp;lt;..&amp;gt; ref = *iter;
&lt;br&gt;&lt;br&gt;Also, the std::cout line cannot work because the
&lt;br&gt;&amp;quot;mixer-&amp;gt;get_volume(track)&amp;quot; returns an array of integers.
&lt;br&gt;&lt;br&gt;I would suggest that you make sure you follow the docs so that you know
&lt;br&gt;what is supported. &amp;nbsp;One good chapter as far as ArrayHandle and
&lt;br&gt;ListHandle is in the &amp;quot;Intermediate types&amp;quot; section[1] of the online
&lt;br&gt;book[2].
&lt;br&gt;&lt;br&gt;[1]
&lt;br&gt;&lt;a href=&quot;http://library.gnome.org/devel/gtkmm-tutorial/unstable/sec-intermediate-types.html.en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://library.gnome.org/devel/gtkmm-tutorial/unstable/sec-intermediate-types.html.en&lt;/a&gt;&lt;br&gt;[2] &lt;a href=&quot;http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/index.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/index.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;José
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;gtkmm-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26504106&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtkmm-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtkmm-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtkmm-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ANNOUNCE%3A-gstreamermm-0.10.5-tp25267806p26504106.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26495747</id>
	<title>Re: ANNOUNCE: gstreamermm-0.10.5</title>
	<published>2009-11-24T04:55:17Z</published>
	<updated>2009-11-24T04:55:17Z</updated>
	<author>
		<name>Carlo Wood</name>
	</author>
	<content type="html">Hi, I have another question about gstreamermm. Trying to print the volume
&lt;br&gt;of the given tracks:
&lt;br&gt;&lt;br&gt;&amp;nbsp; // List the tracks of the mixer.
&lt;br&gt;&amp;nbsp; typedef std::list&amp;lt;Glib::RefPtr&amp;lt;Gst::MixerTrack&amp;gt; &amp;gt; tracks_type;
&lt;br&gt;&amp;nbsp; tracks_type tracks = mixer-&amp;gt;list_tracks();
&lt;br&gt;&lt;br&gt;&amp;nbsp; for (tracks_type::iterator iter = tracks.begin(); iter != tracks.end(); ++iter)
&lt;br&gt;&amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; Glib::RefPtr&amp;lt;Gst::MixerTrack const&amp;gt;&amp; track = *iter;
&lt;br&gt;&amp;nbsp; &amp;nbsp; std::cout &amp;lt;&amp;lt; track-&amp;gt;get_label() &amp;lt;&amp;lt; ' ' &amp;lt;&amp;lt; mixer-&amp;gt;get_volume(track) &amp;lt;&amp;lt; std::endl;
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;&lt;br&gt;&lt;br&gt;This doesn't work... First I tried &amp;nbsp;get_volume(*iter) &amp;nbsp;but that can't find
&lt;br&gt;a 'get_volume', because the only get_volume that is there demands a
&lt;br&gt;Glib::RefPtr&amp;lt;Gst::MixerTrack const&amp;gt; (note the 'const').
&lt;br&gt;&lt;br&gt;So, I tried to convert *iter (which is a Glib::RefPtr&amp;lt;Gst::MixerTrack&amp;gt;)
&lt;br&gt;to a Glib::RefPtr&amp;lt;Gst::MixerTrack const&amp;gt; in the line before, and indeed,
&lt;br&gt;that fails.
&lt;br&gt;&lt;br&gt;How am I supposed to get the volume of the tracks now?
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Carlo Wood &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26495747&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;carlo@...&lt;/a&gt;&amp;gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;gtkmm-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26495747&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtkmm-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtkmm-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtkmm-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ANNOUNCE%3A-gstreamermm-0.10.5-tp25267806p26495747.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26484437</id>
	<title>Re: How to add a custom cell renderer to a Gtk::IconView</title>
	<published>2009-11-23T11:31:57Z</published>
	<updated>2009-11-23T11:31:57Z</updated>
	<author>
		<name>Todor Todorov-3</name>
	</author>
	<content type="html">Thank you so much for your time and help! It worked as you suggested.
&lt;br&gt;&lt;br&gt;On 11/22/2009 11:38 PM, Jos Alburquerque wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Sun, 2009-11-22 at 20:57 -0500, Todor Todorov wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; Thanks again for the reply.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; It is not a problem to implement the renderer in gtkmm - as a matter of
&lt;br&gt;&amp;gt;&amp;gt; fact that's the first thing I did. As you know though, I can't add it to
&lt;br&gt;&amp;gt;&amp;gt; a Gtk::IconView, because it does not implement the CellLayout interface.
&lt;br&gt;&amp;gt;&amp;gt; That bit of info was in your first reply.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; Yes, I did mention the problem with Gtk::IconView not yet implementing
&lt;br&gt;&amp;gt; the Gtk::CellLayout interface. &amp;nbsp;I could be wrong, but what I was sort of
&lt;br&gt;&amp;gt; suggesting is that if you have the gtkmm cell renderer, you use it's
&lt;br&gt;&amp;gt; gobj() where necessary in your posted code. &amp;nbsp;For example, your code
&lt;br&gt;&amp;gt; would look like the following (the lines that have been modified are
&lt;br&gt;&amp;gt; distinguished with an asterisk as the first character):
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; ...
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; Gtk::IconView *browser = 0;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; builder-&amp;gt;get_widget( &amp;quot;browser&amp;quot;, browser );
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GtkIconView *view = browser-&amp;gt;gobj();
&lt;br&gt;&amp;gt; * &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Gtk::CellRenderer *cell = Gtk::CellRendererThumb::create();
&lt;br&gt;&amp;gt; * &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;gtk_cell_layout_pack_start( GTK_CELL_LAYOUT( view ),
&lt;br&gt;&amp;gt; cell-&amp;gt;gobj(), FALSE );
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; * &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Set cell renderer properties here using gtkmm
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; * &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;gtk_cell_layout_set_attributes( GTK_CELL_LAYOUT( view ),
&lt;br&gt;&amp;gt; cell-&amp;gt;gobj(),
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;thumb-name&amp;quot;, 0, &amp;quot;thumb-date&amp;quot;,
&lt;br&gt;&amp;gt; 1,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;thumb-image&amp;quot;, 2,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;thumb-checked&amp;quot;, 3,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;thumb-duplicate&amp;quot;, 4, NULL );
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; * &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Connect to cell signals here using sigc
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; browser-&amp;gt;set_model( thumblist );
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; ...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Now, of course, I'm by far not an expert so I'm just guessing.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; I guess I will have to look into subclassing Gtk::IconView itself ... Do
&lt;br&gt;&amp;gt;&amp;gt; you know of any examples for that? I suspect deriving from Gtk::ListView
&lt;br&gt;&amp;gt;&amp;gt; will be easier, and I'll find more code I could look up and take a note
&lt;br&gt;&amp;gt;&amp;gt; from, but I have no idea how to make the new class order the items in
&lt;br&gt;&amp;gt;&amp;gt; multiple columns.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; I don't have examples but others may. &amp;nbsp;The online book has good
&lt;br&gt;&amp;gt; information on custom widgets in chapter 25[1]. &amp;nbsp;Also the
&lt;br&gt;&amp;gt; gtkmm-documentation package[2] has examples.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; [1]
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://library.gnome.org/devel/gtkmm-tutorial/unstable/chapter-customwidgets.html.en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://library.gnome.org/devel/gtkmm-tutorial/unstable/chapter-customwidgets.html.en&lt;/a&gt;&lt;br&gt;&amp;gt; [2]&lt;a href=&quot;http://ftp.gnome.org/pub/GNOME/sources/gtkmm-documentation/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ftp.gnome.org/pub/GNOME/sources/gtkmm-documentation/&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;/div&gt;_______________________________________________
&lt;br&gt;gtkmm-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26484437&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtkmm-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtkmm-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtkmm-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-add-a-custom-cell-renderer-to-a-Gtk%3A%3AIconView-tp26402084p26484437.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26476721</id>
	<title>Re: ANNOUNCE: gstreamermm-0.10.5</title>
	<published>2009-11-23T03:51:22Z</published>
	<updated>2009-11-23T03:51:22Z</updated>
	<author>
		<name>Carlo Wood</name>
	</author>
	<content type="html">On Sun, Nov 22, 2009 at 11:38:30PM -0500, José Alburquerque wrote:
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://bugzilla.gnome.org/enter_bug.cgi?product=gstreamermm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://bugzilla.gnome.org/enter_bug.cgi?product=gstreamermm&lt;/a&gt;&lt;br&gt;&lt;br&gt;Done, &lt;a href=&quot;https://bugzilla.gnome.org/show_bug.cgi?id=602716&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://bugzilla.gnome.org/show_bug.cgi?id=602716&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Carlo Wood &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26476721&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;carlo@...&lt;/a&gt;&amp;gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;gtkmm-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26476721&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtkmm-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtkmm-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtkmm-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ANNOUNCE%3A-gstreamermm-0.10.5-tp25267806p26476721.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26475729</id>
	<title>another documentation bug</title>
	<published>2009-11-23T02:39:13Z</published>
	<updated>2009-11-23T02:39:13Z</updated>
	<author>
		<name>dexter-18</name>
	</author>
	<content type="html">This function description:
&lt;br&gt;&lt;a href=&quot;http://library.gnome.org/devel/gtkmm/unstable/classGtk_1_1TreeModelFilter.html#a1dfd71e0b35937d70cf7615c982cb09d&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://library.gnome.org/devel/gtkmm/unstable/classGtk_1_1TreeModelFilter.html#a1dfd71e0b35937d70cf7615c982cb09d&lt;/a&gt;&lt;br&gt;&lt;br&gt;is copypasted from treemodelsort. It should state filtered row instead 
&lt;br&gt;of sorted row.
&lt;br&gt;&lt;br&gt;Should I file these in bugzilla to get it fixed?
&lt;br&gt;_______________________________________________
&lt;br&gt;gtkmm-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26475729&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtkmm-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtkmm-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtkmm-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/another-documentation-bug-tp26475729p26475729.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26474538</id>
	<title>Re: wanna show check box in Gtk::TreeView column</title>
	<published>2009-11-23T00:56:39Z</published>
	<updated>2009-11-23T00:56:39Z</updated>
	<author>
		<name>dexter-18</name>
	</author>
	<content type="html">You can use:
&lt;br&gt;void Gtk::TreeViewColumn::set_widget(Gtk::Widget&amp; widget)
&lt;br&gt;&lt;a href=&quot;http://library.gnome.org/devel/gtkmm/unstable/classGtk_1_1TreeViewColumn.html#a3b8c4e3b7e8b579090440c50843efd26&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://library.gnome.org/devel/gtkmm/unstable/classGtk_1_1TreeViewColumn.html#a3b8c4e3b7e8b579090440c50843efd26&lt;/a&gt;&lt;br&gt;&lt;br&gt;Though it can only set the widget inside the TreeViewColumn button. If 
&lt;br&gt;you want to place it - let's say - next to the column header button, you 
&lt;br&gt;have to rewrite Gtk+ code.
&lt;br&gt;&lt;br&gt;Gitanshu Mehndiratta wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi All,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I am showing Gtk::CheckButton in a Gtk::TreeView one column. Now i want 
&lt;br&gt;&amp;gt; to show Gtk::CheckButton in place of column name also. So that by 
&lt;br&gt;&amp;gt; selecting that all the rows checkButton should be selected.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I basically want to know how to chow Gtk::CheckButton in Gtk::TreeView 
&lt;br&gt;&amp;gt; column,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Gitanshu
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; gtkmm-list mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26474538&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtkmm-list@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtkmm-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtkmm-list&lt;/a&gt;&lt;/div&gt;_______________________________________________
&lt;br&gt;gtkmm-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26474538&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtkmm-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtkmm-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtkmm-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/wanna-show-check-box-in-Gtk%3A%3ATreeView-column-tp26474456p26474538.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26474456</id>
	<title>wanna show check box in Gtk::TreeView column</title>
	<published>2009-11-23T00:50:40Z</published>
	<updated>2009-11-23T00:50:40Z</updated>
	<author>
		<name>gitanshu84</name>
	</author>
	<content type="html">Hi All,&lt;br&gt;&lt;br&gt;I am showing Gtk::CheckButton in a Gtk::TreeView one column. Now i want to show Gtk::CheckButton in place of column name also. So that by selecting that all the rows checkButton should be selected.&lt;br&gt;&lt;br&gt;I basically want to know how to chow Gtk::CheckButton in Gtk::TreeView column,&lt;br&gt;
&lt;br&gt;Thanks,&lt;br&gt;Gitanshu&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;gtkmm-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26474456&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtkmm-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtkmm-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtkmm-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/wanna-show-check-box-in-Gtk%3A%3ATreeView-column-tp26474456p26474456.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26473631</id>
	<title>Re: Gtkmm and mysql help</title>
	<published>2009-11-22T23:21:06Z</published>
	<updated>2009-11-22T23:21:06Z</updated>
	<author>
		<name>Murray Cumming</name>
	</author>
	<content type="html">On Sat, 2009-11-21 at 09:31 +0530, sankar bose wrote:
&lt;br&gt;&amp;gt; Thanks for your quick response.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; and thank you for giving me a direction to study.I am going to use
&lt;br&gt;&amp;gt; &amp;nbsp;libgdamm.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; can you please explain a little bit
&lt;br&gt;&amp;gt; Gnome::Gda::Connection::open_from_string function,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; i cant understand how to make a connection string for MySQL
&lt;br&gt;&lt;br&gt;This should be helpful:
&lt;br&gt;&lt;a href=&quot;http://library.gnome.org/devel/libgda/unstable/GdaConnection.html#gda-connection-open-from-string&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://library.gnome.org/devel/libgda/unstable/GdaConnection.html#gda-connection-open-from-string&lt;/a&gt;&lt;br&gt;&lt;br&gt;The &amp;quot;simple&amp;quot; libgdamm example creates a connection string here:
&lt;br&gt;&lt;a href=&quot;http://git.gnome.org/cgit/libgdamm/tree/examples/simple/main.cc#n180&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://git.gnome.org/cgit/libgdamm/tree/examples/simple/main.cc#n180&lt;/a&gt;&lt;br&gt;and I create a more complicated one here in Glom:
&lt;br&gt;&lt;a href=&quot;http://git.gnome.org/cgit/glom/tree/glom/libglom/connectionpool_backends/postgres.cc#n60&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://git.gnome.org/cgit/glom/tree/glom/libglom/connectionpool_backends/postgres.cc#n60&lt;/a&gt;&lt;br&gt;&lt;br&gt;&amp;gt; &amp;nbsp;and i
&lt;br&gt;&amp;gt; have &amp;nbsp;a another
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; question how to use regular expression in gtkmm
&lt;br&gt;&lt;br&gt;Glib::Regex can do that. I haven't used it much myself.
&lt;br&gt;&lt;a href=&quot;http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1Regex.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1Regex.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&amp;gt; &amp;nbsp;and &amp;nbsp;could you
&lt;br&gt;&amp;gt; name a database &amp;nbsp; related &amp;nbsp;project ( MySQL) in gtkmm so i can learn
&lt;br&gt;&amp;gt; from it.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26473631&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;murrayc@...&lt;/a&gt;
&lt;br&gt;www.murrayc.com
&lt;br&gt;www.openismus.com
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;gtkmm-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26473631&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtkmm-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtkmm-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtkmm-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Gtkmm-and-mysql-help-tp26441791p26473631.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26472749</id>
	<title>Re: How to add a custom cell renderer to a Gtk::IconView</title>
	<published>2009-11-22T20:38:59Z</published>
	<updated>2009-11-22T20:38:59Z</updated>
	<author>
		<name>José Alburquerque-3</name>
	</author>
	<content type="html">On Sun, 2009-11-22 at 20:57 -0500, Todor Todorov wrote: 
&lt;br&gt;&amp;gt; Thanks again for the reply.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; It is not a problem to implement the renderer in gtkmm - as a matter of 
&lt;br&gt;&amp;gt; fact that's the first thing I did. As you know though, I can't add it to 
&lt;br&gt;&amp;gt; a Gtk::IconView, because it does not implement the CellLayout interface. 
&lt;br&gt;&amp;gt; That bit of info was in your first reply.
&lt;br&gt;&lt;br&gt;Yes, I did mention the problem with Gtk::IconView not yet implementing
&lt;br&gt;the Gtk::CellLayout interface. &amp;nbsp;I could be wrong, but what I was sort of
&lt;br&gt;suggesting is that if you have the gtkmm cell renderer, you use it's
&lt;br&gt;gobj() where necessary in your posted code. &amp;nbsp;For example, your code
&lt;br&gt;would look like the following (the lines that have been modified are
&lt;br&gt;distinguished with an asterisk as the first character):
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;...
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Gtk::IconView *browser = 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;builder-&amp;gt;get_widget( &amp;quot;browser&amp;quot;, browser );
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;GtkIconView *view = browser-&amp;gt;gobj();
&lt;br&gt;* &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Gtk::CellRenderer *cell = Gtk::CellRendererThumb::create(); 
&lt;br&gt;* &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;gtk_cell_layout_pack_start( GTK_CELL_LAYOUT( view ),
&lt;br&gt;cell-&amp;gt;gobj(), FALSE );
&lt;br&gt;&lt;br&gt;* &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Set cell renderer properties here using gtkmm
&lt;br&gt;&lt;br&gt;* &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;gtk_cell_layout_set_attributes( GTK_CELL_LAYOUT( view ),
&lt;br&gt;cell-&amp;gt;gobj(),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;thumb-name&amp;quot;, 0, &amp;quot;thumb-date&amp;quot;,
&lt;br&gt;1,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;thumb-image&amp;quot;, 2, 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;thumb-checked&amp;quot;, 3,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;thumb-duplicate&amp;quot;, 4, NULL );
&lt;br&gt;&lt;br&gt;* &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Connect to cell signals here using sigc
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;browser-&amp;gt;set_model( thumblist );
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;...
&lt;br&gt;&lt;br&gt;Now, of course, I'm by far not an expert so I'm just guessing.
&lt;br&gt;&lt;br&gt;&amp;gt; I guess I will have to look into subclassing Gtk::IconView itself ... Do 
&lt;br&gt;&amp;gt; you know of any examples for that? I suspect deriving from Gtk::ListView 
&lt;br&gt;&amp;gt; will be easier, and I'll find more code I could look up and take a note 
&lt;br&gt;&amp;gt; from, but I have no idea how to make the new class order the items in 
&lt;br&gt;&amp;gt; multiple columns.
&lt;br&gt;&lt;br&gt;I don't have examples but others may. &amp;nbsp;The online book has good
&lt;br&gt;information on custom widgets in chapter 25[1]. &amp;nbsp;Also the
&lt;br&gt;gtkmm-documentation package[2] has examples.
&lt;br&gt;&lt;br&gt;[1]
&lt;br&gt;&lt;a href=&quot;http://library.gnome.org/devel/gtkmm-tutorial/unstable/chapter-customwidgets.html.en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://library.gnome.org/devel/gtkmm-tutorial/unstable/chapter-customwidgets.html.en&lt;/a&gt;&lt;br&gt;[2] &lt;a href=&quot;http://ftp.gnome.org/pub/GNOME/sources/gtkmm-documentation/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ftp.gnome.org/pub/GNOME/sources/gtkmm-documentation/&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;José
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;gtkmm-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26472749&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtkmm-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtkmm-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtkmm-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-add-a-custom-cell-renderer-to-a-Gtk%3A%3AIconView-tp26402084p26472749.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26472747</id>
	<title>Re: ANNOUNCE: gstreamermm-0.10.5</title>
	<published>2009-11-22T20:38:30Z</published>
	<updated>2009-11-22T20:38:30Z</updated>
	<author>
		<name>José Alburquerque-3</name>
	</author>
	<content type="html">On Sun, 2009-11-22 at 14:36 +0100, Carlo Wood wrote: 
&lt;br&gt;&amp;gt; Hi, I'm trying to use gstreamermm, but run into problems.
&lt;br&gt;&amp;gt; Anything I'm doing wrong here:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; hikaru:~/projects/speech/speech-objdir/src&amp;gt;./speech
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ** (speech:16125): CRITICAL **: gst_alsa_mixer_element_list_tracks: assertion `this-&amp;gt;mixer != NULL' failed
&lt;br&gt;&lt;br&gt;This looks like a bug. &amp;nbsp;Could you file a bugzilla report here please:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;https://bugzilla.gnome.org/enter_bug.cgi?product=gstreamermm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://bugzilla.gnome.org/enter_bug.cgi?product=gstreamermm&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; The relevant code is:
&lt;br&gt;&amp;gt; [...]
&lt;br&gt;&amp;gt; int
&lt;br&gt;&amp;gt; main (int argc, char *argv[])
&lt;br&gt;&amp;gt; {
&lt;br&gt;&amp;gt; &amp;nbsp; Gtk::Main kit(argc, argv);
&lt;br&gt;&amp;gt; &amp;nbsp; Gst::init(argc, argv);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; // mixer gives access to the alsamixer.
&lt;br&gt;&amp;gt; &amp;nbsp; Glib::RefPtr&amp;lt;Gst::Mixer&amp;gt; mixer = Gst::AlsaMixer::create(&amp;quot;mixer&amp;quot;);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; if(!mixer)
&lt;br&gt;&amp;gt; &amp;nbsp; {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; std::cerr &amp;lt;&amp;lt; &amp;quot;The mixer could not be created.&amp;quot; &amp;lt;&amp;lt; std::endl;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; return -1;
&lt;br&gt;&amp;gt; &amp;nbsp; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; // List the tracks of the mixer.
&lt;br&gt;&amp;gt; &amp;nbsp; typedef Glib::ListHandle&amp;lt;Glib::RefPtr&amp;lt;Gst::MixerTrack&amp;gt; &amp;gt; mixer_list_handle_type;
&lt;br&gt;&amp;gt; &amp;nbsp; mixer_list_handle_type mixer_list_handle = mixer-&amp;gt;list_tracks();	// THIS LINE CAUSES THE ERROR
&lt;br&gt;&amp;gt; [...]
&lt;/div&gt;&lt;br&gt;The only thing I think is wrong is that getting tracks from a mixer
&lt;br&gt;should be done using standard C++ containers like so:
&lt;br&gt;&lt;br&gt;std::list&amp;lt; Glib::RefPtr&amp;lt;Gst::MixerTrack&amp;gt; &amp;gt; tracks = mixer-&amp;gt;get_tracks();
&lt;br&gt;&lt;br&gt;or:
&lt;br&gt;&lt;br&gt;std::list&amp;lt; Glib::RefPtr&amp;lt;const Gst::MixerTrack&amp;gt; &amp;gt; tracks =
&lt;br&gt;mixer-&amp;gt;get_tracks();
&lt;br&gt;&lt;br&gt;However, once the above bug is fixed getting tracks as above should work
&lt;br&gt;just fine.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;José
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;gtkmm-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26472747&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtkmm-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtkmm-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtkmm-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ANNOUNCE%3A-gstreamermm-0.10.5-tp25267806p26472747.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26471718</id>
	<title>Re: How to add a custom cell renderer to a Gtk::IconView</title>
	<published>2009-11-22T17:57:44Z</published>
	<updated>2009-11-22T17:57:44Z</updated>
	<author>
		<name>Todor Todorov-3</name>
	</author>
	<content type="html">Thanks again for the reply.
&lt;br&gt;&lt;br&gt;It is not a problem to implement the renderer in gtkmm - as a matter of 
&lt;br&gt;fact that's the first thing I did. As you know though, I can't add it to 
&lt;br&gt;a Gtk::IconView, because it does not implement the CellLayout interface. 
&lt;br&gt;That bit of info was in your first reply.
&lt;br&gt;&lt;br&gt;I guess I will have to look into subclassing Gtk::IconView itself ... Do 
&lt;br&gt;you know of any examples for that? I suspect deriving from Gtk::ListView 
&lt;br&gt;will be easier, and I'll find more code I could look up and take a note 
&lt;br&gt;from, but I have no idea how to make the new class order the items in 
&lt;br&gt;multiple columns.
&lt;br&gt;&lt;br&gt;Best regads,
&lt;br&gt;&lt;br&gt;Todor
&lt;br&gt;&lt;br&gt;On 11/22/2009 05:20 AM, Jos Alburquerque wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Fri, 2009-11-20 at 23:59 -0500, Todor Todorov wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; Thanks for the reply. I only recently subscribed to the list and need
&lt;br&gt;&amp;gt;&amp;gt; yet to find a searchable archive online, with somewhat usable
&lt;br&gt;&amp;gt;&amp;gt; interface... Anyway, I really appreciate your time in helping me solve
&lt;br&gt;&amp;gt;&amp;gt; this problem.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; From the main gtkmm page[1], select the Mailing Lists link. &amp;nbsp;The &amp;quot;List
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; Archives&amp;quot; section provides links to searchable archives.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; [1] &lt;a href=&quot;http://www.gtkmm.org/index.shtml&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gtkmm.org/index.shtml&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; The only thing I don't know how to do is how to adapt the C/gtk+
&lt;br&gt;&amp;gt;&amp;gt; renderer to the gtkmm/sigc signal-slot mechanism. My custom renderer has
&lt;br&gt;&amp;gt;&amp;gt; a vfunc declared in the (gtk+ _class) struct as:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; void ( *toggled )( GtkCellRendererThumb* renderer, gchar* path, gpointer
&lt;br&gt;&amp;gt;&amp;gt; data );
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I obviously need it in order to tell the model when a thumbnail in my
&lt;br&gt;&amp;gt;&amp;gt; icon view has been permanently selected via its checkbox.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; It should be possible to wrap the renderer object in a Gtk::CellRenderer
&lt;br&gt;&amp;gt; casting it to a GtkCellRenderer and using Glib::wrap(). &amp;nbsp;Using the
&lt;br&gt;&amp;gt; standard Gtk::Renderer signals would then be possible. &amp;nbsp;On the other
&lt;br&gt;&amp;gt; hand, you could also implement your renderer in C++. &amp;nbsp;There are two good
&lt;br&gt;&amp;gt; good examples of how to do that here:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://git.gnome.org/cgit/gtkmm-documentation/tree/examples/others/cellrenderercustom&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://git.gnome.org/cgit/gtkmm-documentation/tree/examples/others/cellrenderercustom&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; I tried the
&lt;br&gt;&amp;gt;&amp;gt; following:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; ...
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; Gtk::IconView *browser = 0;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; builder-&amp;gt;get_widget( &amp;quot;browser&amp;quot;, browser );
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GtkIconView *view = browser-&amp;gt;gobj();
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GtkCellRenderer *cell = gtk_cell_renderer_thumb_new();
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gtk_cell_layout_pack_start( GTK_CELL_LAYOUT( view ), cell, FALSE );
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; g_object_set( cell, &amp;quot;thumb-checkable&amp;quot;, TRUE, &amp;quot;xpad&amp;quot;, 2, &amp;quot;ypad&amp;quot;,
&lt;br&gt;&amp;gt;&amp;gt; 2, NULL );
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gtk_cell_layout_set_attributes( GTK_CELL_LAYOUT( view ), cell,
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;thumb-name&amp;quot;, 0, &amp;quot;thumb-date&amp;quot;, 1,
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;thumb-image&amp;quot;, 2,
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;thumb-checked&amp;quot;, 3,
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;thumb-duplicate&amp;quot;, 4, NULL );
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; g_signal_connect( G_OBJECT( cell ), &amp;quot;toggled&amp;quot;, G_CALLBACK(
&lt;br&gt;&amp;gt;&amp;gt; &amp;MainWindow::on_thumbnail_checked ), NULL );
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; browser-&amp;gt;set_model( thumblist );
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; ...
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; The callback is a member function declared as
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; void on_thumbnail_checked( GtkCellRendererThumb* renderer, gchar* path,
&lt;br&gt;&amp;gt;&amp;gt; gpointer data )
&lt;br&gt;&amp;gt;&amp;gt; {
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; std::cout&amp;lt;&amp;lt; &amp;nbsp;&amp;quot;test, path is &amp;quot;&amp;lt;&amp;lt; &amp;nbsp;path&amp;lt;&amp;lt; &amp;nbsp;std::endl;
&lt;br&gt;&amp;gt;&amp;gt; }
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Everything works up to the call of the function. It is called once, the
&lt;br&gt;&amp;gt;&amp;gt; first time one of the thumbnails is activated, and it prints out &amp;quot;test,
&lt;br&gt;&amp;gt;&amp;gt; path is&amp;quot;.
&lt;br&gt;&amp;gt;&amp;gt; Any subsequent click on a thumbnail does not trigger the callback,
&lt;br&gt;&amp;gt;&amp;gt; although the activate function of the renderer itself is called every
&lt;br&gt;&amp;gt;&amp;gt; time - verified thorugh g_print statements, which print out the tree
&lt;br&gt;&amp;gt;&amp;gt; path as well....
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; Maybe the signal emission implementation in you renderer class is a
&lt;br&gt;&amp;gt; little off. &amp;nbsp;If the callback function is called once then it seems that
&lt;br&gt;&amp;gt; the mechanism does work, just not exactly as desired. &amp;nbsp;The logic may
&lt;br&gt;&amp;gt; need a little consideration. &amp;nbsp;For example, does the logic of the
&lt;br&gt;&amp;gt; renderer class dictate that the signal be emitted when the checkbox is
&lt;br&gt;&amp;gt; toggled? only selected? &amp;nbsp;Is the class designed so that the signal is
&lt;br&gt;&amp;gt; emitted when the icon is clicked? etc. &amp;nbsp;It's hard to know for certain
&lt;br&gt;&amp;gt; but these are just ideas to possibly help get your own ideas working.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;/div&gt;_______________________________________________
&lt;br&gt;gtkmm-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26471718&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtkmm-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtkmm-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtkmm-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-add-a-custom-cell-renderer-to-a-Gtk%3A%3AIconView-tp26402084p26471718.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26465391</id>
	<title>Re: ANNOUNCE: gstreamermm-0.10.5</title>
	<published>2009-11-22T05:36:09Z</published>
	<updated>2009-11-22T05:36:09Z</updated>
	<author>
		<name>Carlo Wood</name>
	</author>
	<content type="html">Hi, I'm trying to use gstreamermm, but run into problems.
&lt;br&gt;Anything I'm doing wrong here:
&lt;br&gt;&lt;br&gt;hikaru:~/projects/speech/speech-objdir/src&amp;gt;./speech
&lt;br&gt;&lt;br&gt;** (speech:16125): CRITICAL **: gst_alsa_mixer_element_list_tracks: assertion `this-&amp;gt;mixer != NULL' failed
&lt;br&gt;&lt;br&gt;&lt;br&gt;The relevant code is:
&lt;br&gt;[...]
&lt;br&gt;int
&lt;br&gt;main (int argc, char *argv[])
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; Gtk::Main kit(argc, argv);
&lt;br&gt;&amp;nbsp; Gst::init(argc, argv);
&lt;br&gt;&lt;br&gt;&amp;nbsp; // mixer gives access to the alsamixer.
&lt;br&gt;&amp;nbsp; Glib::RefPtr&amp;lt;Gst::Mixer&amp;gt; mixer = Gst::AlsaMixer::create(&amp;quot;mixer&amp;quot;);
&lt;br&gt;&lt;br&gt;&amp;nbsp; if(!mixer)
&lt;br&gt;&amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; std::cerr &amp;lt;&amp;lt; &amp;quot;The mixer could not be created.&amp;quot; &amp;lt;&amp;lt; std::endl;
&lt;br&gt;&amp;nbsp; &amp;nbsp; return -1;
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; // List the tracks of the mixer.
&lt;br&gt;&amp;nbsp; typedef Glib::ListHandle&amp;lt;Glib::RefPtr&amp;lt;Gst::MixerTrack&amp;gt; &amp;gt; mixer_list_handle_type;
&lt;br&gt;&amp;nbsp; mixer_list_handle_type mixer_list_handle = mixer-&amp;gt;list_tracks();	// THIS LINE CAUSES THE ERROR
&lt;br&gt;[...]
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Carlo Wood &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26465391&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;carlo@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;PS Note that using typedef Glib::ListHandle&amp;lt;Glib::RefPtr&amp;lt;const Gst::MixerTrack&amp;gt; &amp;gt; mixer_list_handle_type;
&lt;br&gt;&amp;nbsp; &amp;nbsp;doesn't even compile:
&lt;br&gt;&amp;nbsp; &amp;nbsp;/usr/include/glibmm-2.4/glibmm/listhandle.h:45: error: no match for ‘operator--’ in ‘--pend’
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;gtkmm-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26465391&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtkmm-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtkmm-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtkmm-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ANNOUNCE%3A-gstreamermm-0.10.5-tp25267806p26465391.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26464023</id>
	<title>Re: How to add a custom cell renderer to a Gtk::IconView</title>
	<published>2009-11-22T02:20:16Z</published>
	<updated>2009-11-22T02:20:16Z</updated>
	<author>
		<name>José Alburquerque-3</name>
	</author>
	<content type="html">On Fri, 2009-11-20 at 23:59 -0500, Todor Todorov wrote: 
&lt;br&gt;&amp;gt; Thanks for the reply. I only recently subscribed to the list and need 
&lt;br&gt;&amp;gt; yet to find a searchable archive online, with somewhat usable 
&lt;br&gt;&amp;gt; interface... Anyway, I really appreciate your time in helping me solve 
&lt;br&gt;&amp;gt; this problem.
&lt;br&gt;&lt;br&gt;&amp;gt;From the main gtkmm page[1], select the Mailing Lists link. &amp;nbsp;The &amp;quot;List
&lt;br&gt;Archives&amp;quot; section provides links to searchable archives.
&lt;br&gt;&lt;br&gt;[1] &lt;a href=&quot;http://www.gtkmm.org/index.shtml&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gtkmm.org/index.shtml&lt;/a&gt;&lt;br&gt;&lt;br&gt;&amp;gt; The only thing I don't know how to do is how to adapt the C/gtk+ 
&lt;br&gt;&amp;gt; renderer to the gtkmm/sigc signal-slot mechanism. My custom renderer has 
&lt;br&gt;&amp;gt; a vfunc declared in the (gtk+ _class) struct as:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; void ( *toggled )( GtkCellRendererThumb* renderer, gchar* path, gpointer 
&lt;br&gt;&amp;gt; data );
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I obviously need it in order to tell the model when a thumbnail in my 
&lt;br&gt;&amp;gt; icon view has been permanently selected via its checkbox.
&lt;br&gt;&lt;br&gt;It should be possible to wrap the renderer object in a Gtk::CellRenderer
&lt;br&gt;casting it to a GtkCellRenderer and using Glib::wrap(). &amp;nbsp;Using the
&lt;br&gt;standard Gtk::Renderer signals would then be possible. &amp;nbsp;On the other
&lt;br&gt;hand, you could also implement your renderer in C++. &amp;nbsp;There are two good
&lt;br&gt;good examples of how to do that here:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://git.gnome.org/cgit/gtkmm-documentation/tree/examples/others/cellrenderercustom&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://git.gnome.org/cgit/gtkmm-documentation/tree/examples/others/cellrenderercustom&lt;/a&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I tried the 
&lt;br&gt;&amp;gt; following:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;...
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;Gtk::IconView *browser = 0;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;builder-&amp;gt;get_widget( &amp;quot;browser&amp;quot;, browser );
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;GtkIconView *view = browser-&amp;gt;gobj();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;GtkCellRenderer *cell = gtk_cell_renderer_thumb_new();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;gtk_cell_layout_pack_start( GTK_CELL_LAYOUT( view ), cell, FALSE );
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;g_object_set( cell, &amp;quot;thumb-checkable&amp;quot;, TRUE, &amp;quot;xpad&amp;quot;, 2, &amp;quot;ypad&amp;quot;, 
&lt;br&gt;&amp;gt; 2, NULL );
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;gtk_cell_layout_set_attributes( GTK_CELL_LAYOUT( view ), cell,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;thumb-name&amp;quot;, 0, &amp;quot;thumb-date&amp;quot;, 1,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;thumb-image&amp;quot;, 2, 
&lt;br&gt;&amp;gt; &amp;quot;thumb-checked&amp;quot;, 3,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;thumb-duplicate&amp;quot;, 4, NULL );
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;g_signal_connect( G_OBJECT( cell ), &amp;quot;toggled&amp;quot;, G_CALLBACK( 
&lt;br&gt;&amp;gt; &amp;MainWindow::on_thumbnail_checked ), NULL );
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;browser-&amp;gt;set_model( thumblist );
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The callback is a member function declared as
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; void on_thumbnail_checked( GtkCellRendererThumb* renderer, gchar* path, 
&lt;br&gt;&amp;gt; gpointer data )
&lt;br&gt;&amp;gt; {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;std::cout &amp;lt;&amp;lt; &amp;quot;test, path is &amp;quot; &amp;lt;&amp;lt; path &amp;lt;&amp;lt; std::endl;
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Everything works up to the call of the function. It is called once, the 
&lt;br&gt;&amp;gt; first time one of the thumbnails is activated, and it prints out &amp;quot;test, 
&lt;br&gt;&amp;gt; path is&amp;quot;.
&lt;br&gt;&amp;gt; Any subsequent click on a thumbnail does not trigger the callback, 
&lt;br&gt;&amp;gt; although the activate function of the renderer itself is called every 
&lt;br&gt;&amp;gt; time - verified thorugh g_print statements, which print out the tree 
&lt;br&gt;&amp;gt; path as well....
&lt;/div&gt;&lt;br&gt;Maybe the signal emission implementation in you renderer class is a
&lt;br&gt;little off. &amp;nbsp;If the callback function is called once then it seems that
&lt;br&gt;the mechanism does work, just not exactly as desired. &amp;nbsp;The logic may
&lt;br&gt;need a little consideration. &amp;nbsp;For example, does the logic of the
&lt;br&gt;renderer class dictate that the signal be emitted when the checkbox is
&lt;br&gt;toggled? only selected? &amp;nbsp;Is the class designed so that the signal is
&lt;br&gt;emitted when the icon is clicked? etc. &amp;nbsp;It's hard to know for certain
&lt;br&gt;but these are just ideas to possibly help get your own ideas working.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;José
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;gtkmm-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26464023&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtkmm-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtkmm-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtkmm-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-add-a-custom-cell-renderer-to-a-Gtk%3A%3AIconView-tp26402084p26464023.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26460646</id>
	<title>Gnome::Gda::DataSelect &amp; Gnome::Gda::DataModel</title>
	<published>2009-11-21T13:46:18Z</published>
	<updated>2009-11-21T13:46:18Z</updated>
	<author>
		<name>Debarshi Ray</name>
	</author>
	<content type="html">I am getting a compile time error when trying to pass a
&lt;br&gt;Glib::RefPtr&amp;lt;Gnome::Gda::DataSelect&amp;gt; to a function accepting
&lt;br&gt;Glib::RefPtr&amp;lt;Gnome::Gda::DataModel&amp;gt; &amp;. It complains about a mismatch
&lt;br&gt;in the types. Since DataSelect is an implementation of DataModel, I am
&lt;br&gt;confused.
&lt;br&gt;&lt;br&gt;A bit of background:
&lt;br&gt;&lt;br&gt;I need to invoke the compute_modification_statements method on the
&lt;br&gt;pointer returned from statement_execute_select. So I have used
&lt;br&gt;Glib::RefPtr&amp;lt;Gnome::Gda::DataSelect&amp;gt;::cast_dynamic on the DataModelPtr
&lt;br&gt;and stored it as a DataSelectPtr. However I am unable to pass this
&lt;br&gt;later as a DataModelPtr to methods.
&lt;br&gt;&lt;br&gt;Am I doing something wrong? I discussed this with Siavash on IRC, but
&lt;br&gt;could not figure out much.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Debarshi
&lt;br&gt;-- 
&lt;br&gt;One reason that life is complex is that it has a real part and an
&lt;br&gt;imaginary part.
&lt;br&gt;&amp;nbsp; &amp;nbsp; -- Andrew Koenig
&lt;br&gt;_______________________________________________
&lt;br&gt;gtkmm-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26460646&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtkmm-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtkmm-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtkmm-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Gnome%3A%3AGda%3A%3ADataSelect---Gnome%3A%3AGda%3A%3ADataModel-tp26460646p26460646.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26453830</id>
	<title>Re: How to add a custom cell renderer to a Gtk::IconView</title>
	<published>2009-11-20T20:59:20Z</published>
	<updated>2009-11-20T20:59:20Z</updated>
	<author>
		<name>Todor Todorov-3</name>
	</author>
	<content type="html">Thanks for the reply. I only recently subscribed to the list and need 
&lt;br&gt;yet to find a searchable archive online, with somewhat usable 
&lt;br&gt;interface... Anyway, I really appreciate your time in helping me solve 
&lt;br&gt;this problem.
&lt;br&gt;&lt;br&gt;The only thing I don't know how to do is how to adapt the C/gtk+ 
&lt;br&gt;renderer to the gtkmm/sigc signal-slot mechanism. My custom renderer has 
&lt;br&gt;a vfunc declared in the (gtk+ _class) struct as:
&lt;br&gt;&lt;br&gt;void ( *toggled )( GtkCellRendererThumb* renderer, gchar* path, gpointer 
&lt;br&gt;data );
&lt;br&gt;&lt;br&gt;I obviously need it in order to tell the model when a thumbnail in my 
&lt;br&gt;icon view has been permanently selected via its checkbox. I tried the 
&lt;br&gt;following:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;...
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Gtk::IconView *browser = 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;builder-&amp;gt;get_widget( &amp;quot;browser&amp;quot;, browser );
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;GtkIconView *view = browser-&amp;gt;gobj();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;GtkCellRenderer *cell = gtk_cell_renderer_thumb_new();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;gtk_cell_layout_pack_start( GTK_CELL_LAYOUT( view ), cell, FALSE );
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;g_object_set( cell, &amp;quot;thumb-checkable&amp;quot;, TRUE, &amp;quot;xpad&amp;quot;, 2, &amp;quot;ypad&amp;quot;, 
&lt;br&gt;2, NULL );
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;gtk_cell_layout_set_attributes( GTK_CELL_LAYOUT( view ), cell,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;thumb-name&amp;quot;, 0, &amp;quot;thumb-date&amp;quot;, 1,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;thumb-image&amp;quot;, 2, 
&lt;br&gt;&amp;quot;thumb-checked&amp;quot;, 3,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;thumb-duplicate&amp;quot;, 4, NULL );
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;g_signal_connect( G_OBJECT( cell ), &amp;quot;toggled&amp;quot;, G_CALLBACK( 
&lt;br&gt;&amp;MainWindow::on_thumbnail_checked ), NULL );
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;browser-&amp;gt;set_model( thumblist );
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;...
&lt;br&gt;&lt;br&gt;The callback is a member function declared as
&lt;br&gt;&lt;br&gt;void on_thumbnail_checked( GtkCellRendererThumb* renderer, gchar* path, 
&lt;br&gt;gpointer data )
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;std::cout &amp;lt;&amp;lt; &amp;quot;test, path is &amp;quot; &amp;lt;&amp;lt; path &amp;lt;&amp;lt; std::endl;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;Everything works up to the call of the function. It is called once, the 
&lt;br&gt;first time one of the thumbnails is activated, and it prints out &amp;quot;test, 
&lt;br&gt;path is&amp;quot;.
&lt;br&gt;Any subsequent click on a thumbnail does not trigger the callback, 
&lt;br&gt;although the activate function of the renderer itself is called every 
&lt;br&gt;time - verified thorugh g_print statements, which print out the tree 
&lt;br&gt;path as well....
&lt;br&gt;&lt;br&gt;Obviously I'm doing something wrong, but what exactly? I could not find 
&lt;br&gt;any examples that not only mix gtk+ and gtkmm widgets, but also glib and 
&lt;br&gt;sigc signaling.
&lt;br&gt;&lt;br&gt;I would appreciate an example and/or a hint very much! Thanks in advance.
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;&lt;br&gt;Todor
&lt;br&gt;&lt;br&gt;On 11/20/2009 12:32 AM, Jos Alburquerque wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Tue, 2009-11-17 at 22:58 -0500, Todor Todorov wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; I need to clarify. What I tried was:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Glib::RefPtr&amp;lt;Gtk::CellLayout&amp;gt; &amp;nbsp;cl = Glib::wrap( GTK_CELL_LAYOUT( my_icon_view.gobj() ) );
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; And the error was: &amp;quot;Glib::wrap_auto_interface(): The C++ instance
&lt;br&gt;&amp;gt;&amp;gt; (N3Gtk8IconViewE) does not dynamic_cast to the interface.&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On 11/17/2009 10:47 PM, Todor Todorov wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hello list,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I encountered the following problem: Under Gtk+ it is possible to have a
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; GktIconView and cast it to a GtkCellLayout via the GTK_CELL_LAYOUT(obj)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; macro. Then I could add a custom cell renderer and set attributes to it.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Now I have implemented my cell renderer in C++/Gtkmm and would like to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; add it to my Gtk::IconView. And since the class does not provide a
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; pack_start() functionality like TreeView, I would have to go and find my
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; own way to do it...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; The first problem is that the IconView class does not inherit (in the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; traditional C++ way) from Gtk::CellLayout. Second, the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; reinterpret_cast&amp;lt;&amp;gt; &amp;nbsp;did not work either. There is no function in the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Gtk::IconView API that lets me convert to a CellLayout, or in the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Gtk::CellLayout API to create it from an IconView... Third, I tried to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; do something like
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Gtk::CellLayout *cl = Glib::wrap( GTK_CELL_LAYOUT( my_icon_view.gobj() ) );
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; cl-&amp;gt;pack_start( renderer, false );
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; cl-&amp;gt;add_attribute( renderer-&amp;gt;property_blah(), columns.blah );
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ....
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; While it compiles, the application crashed with a reinterpret_cast
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; failure reported. The only thing that worked so far was to take my Gtk+
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; implementation of the renderer, add it to my project and create a
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; GtkIconView, cast it to GTK_CELL_LAYOUT, add the renderer with
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; properties, and at the end wrap it into a Gtk::IconView and work from
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; there as it were pure Gtkmm.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I wonder though, is this the best way? I would like to not handle Gtk+
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; objects directly in my code. Can anyone make a suggestion as to how to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; add a custom cell renderer to a Gtk::IconView in a &amp;quot;best practice&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; approach? Your help and time are greatly appreciated.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; The problem is that Gtk::IconView does not implement the Gtk::CellLayout
&lt;br&gt;&amp;gt; interface because the change was done in Gtk+ at a time when gtkmm could
&lt;br&gt;&amp;gt; not break ABI (I think searching on the list will provide more info).
&lt;br&gt;&amp;gt; For now you're probably doing it the right way until the change can be
&lt;br&gt;&amp;gt; made to gtkmm.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;/div&gt;_______________________________________________
&lt;br&gt;gtkmm-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26453830&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtkmm-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtkmm-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtkmm-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-add-a-custom-cell-renderer-to-a-Gtk%3A%3AIconView-tp26402084p26453830.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26453790</id>
	<title>Re: How to add a custom cell renderer to a Gtk::IconView</title>
	<published>2009-11-20T20:49:09Z</published>
	<updated>2009-11-20T20:49:09Z</updated>
	<author>
		<name>Todor Todorov-3</name>
	</author>
	<content type="html">Thanks for the reply. The only thing I don't know how to do is how to 
&lt;br&gt;adapt the C/gtk+ renderer to the gtkmm/sigc signal-slot mechanism. My 
&lt;br&gt;custom renderer has a vfunc declared in the class as:
&lt;br&gt;&lt;br&gt;void ( *toggled )( GtkCellRendererThumb* renderer, gchar* path, gpointer 
&lt;br&gt;data );
&lt;br&gt;&lt;br&gt;I obviously need it in order to tell the model when a thumbnail in my 
&lt;br&gt;icon view has been permanently selected via its checkbox. I tried the 
&lt;br&gt;following:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;...
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Gtk::IconView *browser = 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;builder-&amp;gt;get_widget( &amp;quot;browser&amp;quot;, browser );
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;GtkIconView *view = browser-&amp;gt;gobj();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;GtkCellRenderer *cell = gtk_cell_renderer_thumb_new();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;gtk_cell_layout_pack_start( GTK_CELL_LAYOUT( view ), cell, FALSE );
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;g_object_set( cell, &amp;quot;thumb-checkable&amp;quot;, TRUE, &amp;quot;xpad&amp;quot;, 2, &amp;quot;ypad&amp;quot;, 
&lt;br&gt;2, NULL );
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;gtk_cell_layout_set_attributes( GTK_CELL_LAYOUT( view ), cell,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;thumb-name&amp;quot;, 0, &amp;quot;thumb-date&amp;quot;, 1,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;thumb-image&amp;quot;, 2, 
&lt;br&gt;&amp;quot;thumb-checked&amp;quot;, 3,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;thumb-duplicate&amp;quot;, 4, NULL );
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;g_signal_connect( G_OBJECT( cell ), &amp;quot;toggled&amp;quot;, G_CALLBACK( 
&lt;br&gt;&amp;MainWindow::on_thumbnail_checked ), NULL );
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;browser-&amp;gt;set_model( thumblist );
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;...
&lt;br&gt;&lt;br&gt;The callback is a member function declared as
&lt;br&gt;&lt;br&gt;&lt;br&gt;Everything works up to the call of
&lt;br&gt;&lt;br&gt;On 11/20/2009 12:32 AM, Jos Alburquerque wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Tue, 2009-11-17 at 22:58 -0500, Todor Todorov wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; I need to clarify. What I tried was:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Glib::RefPtr&amp;lt;Gtk::CellLayout&amp;gt; &amp;nbsp;cl = Glib::wrap( GTK_CELL_LAYOUT( my_icon_view.gobj() ) );
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; And the error was: &amp;quot;Glib::wrap_auto_interface(): The C++ instance
&lt;br&gt;&amp;gt;&amp;gt; (N3Gtk8IconViewE) does not dynamic_cast to the interface.&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On 11/17/2009 10:47 PM, Todor Todorov wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hello list,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I encountered the following problem: Under Gtk+ it is possible to have a
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; GktIconView and cast it to a GtkCellLayout via the GTK_CELL_LAYOUT(obj)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; macro. Then I could add a custom cell renderer and set attributes to it.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Now I have implemented my cell renderer in C++/Gtkmm and would like to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; add it to my Gtk::IconView. And since the class does not provide a
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; pack_start() functionality like TreeView, I would have to go and find my
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; own way to do it...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; The first problem is that the IconView class does not inherit (in the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; traditional C++ way) from Gtk::CellLayout. Second, the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; reinterpret_cast&amp;lt;&amp;gt; &amp;nbsp;did not work either. There is no function in the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Gtk::IconView API that lets me convert to a CellLayout, or in the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Gtk::CellLayout API to create it from an IconView... Third, I tried to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; do something like
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Gtk::CellLayout *cl = Glib::wrap( GTK_CELL_LAYOUT( my_icon_view.gobj() ) );
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; cl-&amp;gt;pack_start( renderer, false );
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; cl-&amp;gt;add_attribute( renderer-&amp;gt;property_blah(), columns.blah );
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ....
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; While it compiles, the application crashed with a reinterpret_cast
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; failure reported. The only thing that worked so far was to take my Gtk+
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; implementation of the renderer, add it to my project and create a
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; GtkIconView, cast it to GTK_CELL_LAYOUT, add the renderer with
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; properties, and at the end wrap it into a Gtk::IconView and work from
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; there as it were pure Gtkmm.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I wonder though, is this the best way? I would like to not handle Gtk+
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; objects directly in my code. Can anyone make a suggestion as to how to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; add a custom cell renderer to a Gtk::IconView in a &amp;quot;best practice&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; approach? Your help and time are greatly appreciated.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; The problem is that Gtk::IconView does not implement the Gtk::CellLayout
&lt;br&gt;&amp;gt; interface because the change was done in Gtk+ at a time when gtkmm could
&lt;br&gt;&amp;gt; not break ABI (I think searching on the list will provide more info).
&lt;br&gt;&amp;gt; For now you're probably doing it the right way until the change can be
&lt;br&gt;&amp;gt; made to gtkmm.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;/div&gt;_______________________________________________
&lt;br&gt;gtkmm-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26453790&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtkmm-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtkmm-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtkmm-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-add-a-custom-cell-renderer-to-a-Gtk%3A%3AIconView-tp26402084p26453790.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26453597</id>
	<title>Re: Gtkmm and mysql help</title>
	<published>2009-11-20T20:01:02Z</published>
	<updated>2009-11-20T20:01:02Z</updated>
	<author>
		<name>sankar bose</name>
	</author>
	<content type="html">Thanks for your quick response.
&lt;br&gt;&amp;nbsp; &amp;nbsp; and thank you for giving me a direction to study.I am going to use
&lt;br&gt;&amp;nbsp;libgdamm.
&lt;br&gt;&amp;nbsp; &amp;nbsp; can you please explain a little bit
&lt;br&gt;Gnome::Gda::Connection::open_from_string function,
&lt;br&gt;&amp;nbsp; &amp;nbsp; i cant understand how to make a connection string for MySQL and i
&lt;br&gt;have &amp;nbsp;a another
&lt;br&gt;&amp;nbsp; &amp;nbsp; question how to use regular expression in gtkmm and &amp;nbsp;could you
&lt;br&gt;name a database &amp;nbsp; related &amp;nbsp;project ( MySQL) in gtkmm so i can learn
&lt;br&gt;from it.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; with regards.........................
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On 11/20/09, Murray Cumming &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26453597&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;murrayc@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Fri, 2009-11-20 at 16:56 +0530, sankar bose wrote:
&lt;br&gt;&amp;gt;&amp;gt; Hi
&lt;br&gt;&amp;gt;&amp;gt; everybody
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;i have to make a mysql app in gtkmm , i am completely new to c++
&lt;br&gt;&amp;gt;&amp;gt; (just learning).
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Please can anybody give me a tutorial on this topic , i
&lt;br&gt;&amp;gt;&amp;gt; mean how to use gtkmm and
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mysql &amp;nbsp;,packages that i have to download, how to send sql
&lt;br&gt;&amp;gt;&amp;gt; commands to mysql
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;server and display the results in gtkmm ( Label or in the
&lt;br&gt;&amp;gt;&amp;gt; Entry). A simple example
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;will be enough .Thanks in advance .
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I strongly recommend that you use libgda or libgdamm. Not only is it a
&lt;br&gt;&amp;gt; better API but you then have some built-in backend independence. MySQL's
&lt;br&gt;&amp;gt; own APIs are awful.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26453597&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;murrayc@...&lt;/a&gt;
&lt;br&gt;&amp;gt; www.murrayc.com
&lt;br&gt;&amp;gt; www.openismus.com
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;_______________________________________________
&lt;br&gt;gtkmm-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26453597&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtkmm-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtkmm-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtkmm-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Gtkmm-and-mysql-help-tp26441791p26453597.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26443372</id>
	<title>Re: Gtkmm and mysql help</title>
	<published>2009-11-20T05:37:41Z</published>
	<updated>2009-11-20T05:37:41Z</updated>
	<author>
		<name>Murray Cumming</name>
	</author>
	<content type="html">On Fri, 2009-11-20 at 16:56 +0530, sankar bose wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi
&lt;br&gt;&amp;gt; everybody
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;i have to make a mysql app in gtkmm , i am completely new to c++
&lt;br&gt;&amp;gt; (just learning).
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Please can anybody give me a tutorial on this topic , i
&lt;br&gt;&amp;gt; mean how to use gtkmm and
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mysql &amp;nbsp;,packages that i have to download, how to send sql
&lt;br&gt;&amp;gt; commands to mysql
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;server and display the results in gtkmm ( Label or in the
&lt;br&gt;&amp;gt; Entry). A simple example
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;will be enough .Thanks in advance .
&lt;/div&gt;&lt;br&gt;I strongly recommend that you use libgda or libgdamm. Not only is it a
&lt;br&gt;better API but you then have some built-in backend independence. MySQL's
&lt;br&gt;own APIs are awful.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26443372&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;murrayc@...&lt;/a&gt;
&lt;br&gt;www.murrayc.com
&lt;br&gt;www.openismus.com
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;gtkmm-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26443372&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtkmm-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtkmm-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtkmm-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Gtkmm-and-mysql-help-tp26441791p26443372.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26442369</id>
	<title>Re: Login-session-wide accelerators?</title>
	<published>2009-11-20T04:14:16Z</published>
	<updated>2009-11-20T04:14:16Z</updated>
	<author>
		<name>Paul Davis</name>
	</author>
	<content type="html">On Mon, Oct 19, 2009 at 7:39 AM, Fatman_UK &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26442369&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fatman@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi all! Gtkmm newbie here.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Apologies if this has been posted already. Searched but didn't find it. I
&lt;br&gt;&amp;gt; looked at AccelMaps in the online Doxygen pages, but got confused.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; My program starts at login and runs in the background. There is a hidden
&lt;br&gt;&amp;gt; window. When the user presses a (configurable) hotkey combo - for instance,
&lt;br&gt;&amp;gt; Super+W - the window shows itself.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; That's the plan, anyway. I can't figure out how to assign a hotkey that
&lt;br&gt;&amp;gt; works regardless of which window has focus (including the desktop).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Can someone point me to some relevant docs? I did think of assigning a
&lt;br&gt;&amp;gt; hotkey in [name of window manager], but I want this to be crossplatform so
&lt;br&gt;&amp;gt; ideally I'd like to do it in Gtkmm.
&lt;/div&gt;&lt;br&gt;there is really no straightforward way to do this. gtkmm and gtk
&lt;br&gt;primarily concern themselves with the needs of normal GUI
&lt;br&gt;applications, and at least under X Window, the concept of getting
&lt;br&gt;notified of *all* key events, whether they occured while your window
&lt;br&gt;had key focus (let alone being unmapped) instantly puts it into
&lt;br&gt;&amp;quot;non-normal GUI applications&amp;quot;. obviously, it is possible to do this -
&lt;br&gt;window managers do it. and obviously it is possible to do this in the
&lt;br&gt;context of gtk/gtkmm, since the metacity WM was written using GTK.
&lt;br&gt;however, i believe its not possible to do with just GTK calls - i
&lt;br&gt;believe you need some interaction with the underlying windowing system
&lt;br&gt;(X, Aqua, win32's GDI or whatever). and clearly you need to plan for
&lt;br&gt;the situation that your desires are overridden by the &amp;quot;real&amp;quot; WM or
&lt;br&gt;some other similar application that wants to look at, and potentially
&lt;br&gt;handle, the same key events as you.
&lt;br&gt;_______________________________________________
&lt;br&gt;gtkmm-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26442369&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtkmm-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtkmm-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtkmm-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Login-session-wide-accelerators--tp25955854p26442369.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26441791</id>
	<title>Gtkmm and mysql help</title>
	<published>2009-11-20T03:26:45Z</published>
	<updated>2009-11-20T03:26:45Z</updated>
	<author>
		<name>sankar bose</name>
	</author>
	<content type="html">Hi
&lt;br&gt;everybody
&lt;br&gt;&amp;nbsp; &amp;nbsp;i have to make a mysql app in gtkmm , i am completely new to c++
&lt;br&gt;(just learning).
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Please can anybody give me a tutorial on this topic , i
&lt;br&gt;mean how to use gtkmm and
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mysql &amp;nbsp;,packages that i have to download, how to send sql
&lt;br&gt;commands to mysql
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;server and display the results in gtkmm ( Label or in the
&lt;br&gt;Entry). A simple example
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;will be enough .Thanks in advance .
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;With regards................
&lt;br&gt;_______________________________________________
&lt;br&gt;gtkmm-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26441791&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtkmm-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtkmm-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtkmm-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Gtkmm-and-mysql-help-tp26441791p26441791.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26440486</id>
	<title>Documentation of TreeSelection::set_select_function SlotSelect</title>
	<published>2009-11-20T01:28:16Z</published>
	<updated>2009-11-20T01:28:16Z</updated>
	<author>
		<name>dexter-18</name>
	</author>
	<content type="html">The docs of SlotSelect here:
&lt;br&gt;&lt;a href=&quot;http://library.gnome.org/devel/gtkmm/unstable/classGtk_1_1TreeSelection.html#a7c408b8e2b45b4a65a2a9ad66d9602cf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://library.gnome.org/devel/gtkmm/unstable/classGtk_1_1TreeSelection.html#a7c408b8e2b45b4a65a2a9ad66d9602cf&lt;/a&gt;&lt;br&gt;&lt;br&gt;points to a general sigc docs, which is useless here. It should point to 
&lt;br&gt;something like this:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;/** For instance, bool on_select_function(const 
&lt;br&gt;Glib::RefPtr&amp;lt;TreeModel&amp;gt;&amp; model, const TreeModel::Path&amp; path, bool 
&lt;br&gt;path_currently_selected)
&lt;br&gt;&amp;nbsp; &amp;nbsp; * The select function should return true if the state of the node 
&lt;br&gt;may be toggled,
&lt;br&gt;&amp;nbsp; &amp;nbsp; * and false if the state of the node should be left unchanged.
&lt;br&gt;&amp;nbsp; &amp;nbsp; */
&lt;br&gt;_______________________________________________
&lt;br&gt;gtkmm-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26440486&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtkmm-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtkmm-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtkmm-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Documentation-of-TreeSelection%3A%3Aset_select_function-SlotSelect-tp26440486p26440486.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26439025</id>
	<title>Re: Custom CellRenderer</title>
	<published>2009-11-19T22:41:14Z</published>
	<updated>2009-11-19T22:41:14Z</updated>
	<author>
		<name>Juan A. Moreno</name>
	</author>
	<content type="html">&lt;div class=&quot;gmail_quote&quot;&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;div class=&quot;gmail_quote&quot;&gt;&lt;div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div&gt;Check out these screenshots, the cellrenderers used are pretty similar to what you describe.&lt;/div&gt;
&lt;div&gt;&lt;a href=&quot;http://code.google.com/p/gejengel/wiki/Screenshots&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://code.google.com/p/gejengel/wiki/Screenshots&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;The code is available here: &lt;a href=&quot;http://code.google.com/p/gejengel/source/browse/trunk/src/ui/cellrendereralbum.cpp&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://code.google.com/p/gejengel/source/browse/trunk/src/ui/cellrendereralbum.cpp&lt;/a&gt;&lt;/div&gt;

&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Dirk&lt;/div&gt;&lt;/div&gt;&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;Hi Dirk&lt;br&gt;Thank you for the links but this is not what I need, this could be done easily with gtkmm.&lt;br&gt;I attach a image made with Glade to show something similar to what I need.&lt;br&gt;&lt;br&gt;Greetings&lt;br&gt;
Jamf
&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;gtkmm-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26439025&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtkmm-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtkmm-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtkmm-list&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;shot.png&lt;/strong&gt; (7K) &lt;a href=&quot;http://old.nabble.com/attachment/26439025/0/shot.png&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Custom-CellRenderer-tp26429786p26439025.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26438650</id>
	<title>Re: How to add a custom cell renderer to a Gtk::IconView?</title>
	<published>2009-11-19T21:33:10Z</published>
	<updated>2009-11-19T21:33:10Z</updated>
	<author>
		<name>José Alburquerque-3</name>
	</author>
	<content type="html">On Thu, 2009-11-19 at 23:35 -0500, Todor Todorov wrote: 
&lt;br&gt;&amp;gt; Hello list,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I apologize for repeating myself, but after a couple of days of trial
&lt;br&gt;&amp;gt; and errors - mostly errors - I am at my wits' end.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Could anyone give an example ( or point me to an application ) on how to
&lt;br&gt;&amp;gt; add a custom Gtk::CellRenderer to a Gtk::IconView? I looked on my own
&lt;br&gt;&amp;gt; but did not find any pointers. It would be preferable, if the cell
&lt;br&gt;&amp;gt; renderer is implemented in Gtkmm, so it supports sigc signals and slots...
&lt;br&gt;&lt;br&gt;I hope the reply to your original posts helps.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;José
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;gtkmm-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26438650&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtkmm-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtkmm-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtkmm-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-add-a-custom-cell-renderer-to-a-Gtk%3A%3AIconView--tp26438269p26438650.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26438646</id>
	<title>Re: How to add a custom cell renderer to a Gtk::IconView</title>
	<published>2009-11-19T21:32:52Z</published>
	<updated>2009-11-19T21:32:52Z</updated>
	<author>
		<name>José Alburquerque-3</name>
	</author>
	<content type="html">On Tue, 2009-11-17 at 22:58 -0500, Todor Todorov wrote: 
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I need to clarify. What I tried was:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Glib::RefPtr&amp;lt;Gtk::CellLayout&amp;gt; cl = Glib::wrap( GTK_CELL_LAYOUT( my_icon_view.gobj() ) );
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; And the error was: &amp;quot;Glib::wrap_auto_interface(): The C++ instance
&lt;br&gt;&amp;gt; (N3Gtk8IconViewE) does not dynamic_cast to the interface.&amp;quot;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On 11/17/2009 10:47 PM, Todor Todorov wrote:
&lt;br&gt;&amp;gt; &amp;gt; Hello list,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I encountered the following problem: Under Gtk+ it is possible to have a
&lt;br&gt;&amp;gt; &amp;gt; GktIconView and cast it to a GtkCellLayout via the GTK_CELL_LAYOUT(obj)
&lt;br&gt;&amp;gt; &amp;gt; macro. Then I could add a custom cell renderer and set attributes to it.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Now I have implemented my cell renderer in C++/Gtkmm and would like to
&lt;br&gt;&amp;gt; &amp;gt; add it to my Gtk::IconView. And since the class does not provide a
&lt;br&gt;&amp;gt; &amp;gt; pack_start() functionality like TreeView, I would have to go and find my
&lt;br&gt;&amp;gt; &amp;gt; own way to do it...
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; The first problem is that the IconView class does not inherit (in the
&lt;br&gt;&amp;gt; &amp;gt; traditional C++ way) from Gtk::CellLayout. Second, the
&lt;br&gt;&amp;gt; &amp;gt; reinterpret_cast&amp;lt;&amp;gt; did not work either. There is no function in the
&lt;br&gt;&amp;gt; &amp;gt; Gtk::IconView API that lets me convert to a CellLayout, or in the
&lt;br&gt;&amp;gt; &amp;gt; Gtk::CellLayout API to create it from an IconView... Third, I tried to
&lt;br&gt;&amp;gt; &amp;gt; do something like
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Gtk::CellLayout *cl = Glib::wrap( GTK_CELL_LAYOUT( my_icon_view.gobj() ) );
&lt;br&gt;&amp;gt; &amp;gt; cl-&amp;gt;pack_start( renderer, false );
&lt;br&gt;&amp;gt; &amp;gt; cl-&amp;gt;add_attribute( renderer-&amp;gt;property_blah(), columns.blah );
&lt;br&gt;&amp;gt; &amp;gt; ....
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; While it compiles, the application crashed with a reinterpret_cast
&lt;br&gt;&amp;gt; &amp;gt; failure reported. The only thing that worked so far was to take my Gtk+
&lt;br&gt;&amp;gt; &amp;gt; implementation of the renderer, add it to my project and create a
&lt;br&gt;&amp;gt; &amp;gt; GtkIconView, cast it to GTK_CELL_LAYOUT, add the renderer with
&lt;br&gt;&amp;gt; &amp;gt; properties, and at the end wrap it into a Gtk::IconView and work from
&lt;br&gt;&amp;gt; &amp;gt; there as it were pure Gtkmm.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I wonder though, is this the best way? I would like to not handle Gtk+
&lt;br&gt;&amp;gt; &amp;gt; objects directly in my code. Can anyone make a suggestion as to how to
&lt;br&gt;&amp;gt; &amp;gt; add a custom cell renderer to a Gtk::IconView in a &amp;quot;best practice&amp;quot;
&lt;br&gt;&amp;gt; &amp;gt; approach? Your help and time are greatly appreciated.
&lt;/div&gt;&lt;br&gt;The problem is that Gtk::IconView does not implement the Gtk::CellLayout
&lt;br&gt;interface because the change was done in Gtk+ at a time when gtkmm could
&lt;br&gt;not break ABI (I think searching on the list will provide more info).
&lt;br&gt;For now you're probably doing it the right way until the change can be
&lt;br&gt;made to gtkmm.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;José
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;gtkmm-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26438646&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtkmm-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtkmm-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtkmm-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-add-a-custom-cell-renderer-to-a-Gtk%3A%3AIconView-tp26402084p26438646.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26438269</id>
	<title>How to add a custom cell renderer to a Gtk::IconView?</title>
	<published>2009-11-19T20:35:52Z</published>
	<updated>2009-11-19T20:35:52Z</updated>
	<author>
		<name>Todor Todorov-3</name>
	</author>
	<content type="html">Hello list,
&lt;br&gt;&lt;br&gt;I apologize for repeating myself, but after a couple of days of trial
&lt;br&gt;and errors - mostly errors - I am at my wits' end.
&lt;br&gt;&lt;br&gt;Could anyone give an example ( or point me to an application ) on how to
&lt;br&gt;add a custom Gtk::CellRenderer to a Gtk::IconView? I looked on my own
&lt;br&gt;but did not find any pointers. It would be preferable, if the cell
&lt;br&gt;renderer is implemented in Gtkmm, so it supports sigc signals and slots...
&lt;br&gt;&lt;br&gt;Thanks in advance.
&lt;br&gt;&lt;br&gt;Kind regards,
&lt;br&gt;&lt;br&gt;Todor
&lt;br&gt;_______________________________________________
&lt;br&gt;gtkmm-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26438269&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtkmm-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtkmm-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtkmm-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-add-a-custom-cell-renderer-to-a-Gtk%3A%3AIconView--tp26438269p26438269.html" />
</entry>

</feed>
