<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-1331</id>
	<title>Nabble - Gtk+ - Apps Dev</title>
	<updated>2009-12-18T19:08:11Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Gtk+---Apps-Dev-f1331.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Gtk%2B---Apps-Dev-f1331.html" />
	<subtitle type="html">Writing Apps with GTK+.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26852399</id>
	<title>gtkhtml fonts</title>
	<published>2009-12-18T19:08:11Z</published>
	<updated>2009-12-18T19:08:11Z</updated>
	<author>
		<name>Matthew Talbert</name>
	</author>
	<content type="html">It used to be possible to change the font that gtkhtml used (for the
&lt;br&gt;entire document) by calling gtk_widget_modify_font on the widget. It
&lt;br&gt;seems in recent versions that this no longer works. I've played around
&lt;br&gt;with setting styles on the widget and haven't gotten that to work
&lt;br&gt;either. Does anyone know the reason for this or how to accomplish
&lt;br&gt;this?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Matthew
&lt;br&gt;_______________________________________________
&lt;br&gt;gtk-app-devel-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26852399&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/gtkhtml-fonts-tp26852399p26852399.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26832295</id>
	<title>GtkComboBox submenus</title>
	<published>2009-12-17T09:55:02Z</published>
	<updated>2009-12-17T09:55:02Z</updated>
	<author>
		<name>Carlos Pereira-3</name>
	</author>
	<content type="html">Is there a way to create GtkComboBox menus with submenus?
&lt;br&gt;&lt;br&gt;The logical way to achieve this would be to use a GtkTreeStore model, 
&lt;br&gt;and indeed it works as expected,
&lt;br&gt;except that each first level item appears also as a second level title, 
&lt;br&gt;that can be selected...
&lt;br&gt;&lt;br&gt;disabling a first level item disables the whole subtree, so this cannot 
&lt;br&gt;be used to disable the second level titles...
&lt;br&gt;&lt;br&gt;Or the only solution is to use
&lt;br&gt;gtk_combo_box_set_wrap_width (GTK_COMBO_BOX (combo), width)
&lt;br&gt;with width &amp;gt; 1? My data has some nice structure, so the submenus 
&lt;br&gt;approach looks slightly better...
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Carlos
&lt;br&gt;_______________________________________________
&lt;br&gt;gtk-app-devel-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26832295&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/GtkComboBox-submenus-tp26832295p26832295.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26819688</id>
	<title>Re: GtkTreeView auto selecting row</title>
	<published>2009-12-16T14:32:50Z</published>
	<updated>2009-12-16T14:32:50Z</updated>
	<author>
		<name>Tadej Borovšak</name>
	</author>
	<content type="html">Hello.
&lt;br&gt;&lt;br&gt;Just call gtk_tree_selection_select_iter/path() and you should be good.
&lt;br&gt;&lt;br&gt;Tadej
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Tadej Borovšak
&lt;br&gt;tadeboro.blogspot.com
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26819688&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tadeboro@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26819688&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tadej.borovsak@...&lt;/a&gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;gtk-app-devel-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26819688&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/GtkTreeView-auto-selecting-row-tp26819625p26819688.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26819625</id>
	<title>GtkTreeView auto selecting row</title>
	<published>2009-12-16T14:27:36Z</published>
	<updated>2009-12-16T14:27:36Z</updated>
	<author>
		<name>Andrew Wood-16</name>
	</author>
	<content type="html">Is there a way to pre-select a row when the tree &amp;nbsp;is first displayed. In 
&lt;br&gt;other words if the user hasnt yet selected a row it defaults to one
&lt;br&gt;_______________________________________________
&lt;br&gt;gtk-app-devel-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26819625&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/GtkTreeView-auto-selecting-row-tp26819625p26819625.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26818750</id>
	<title>Re: Storing images in GtkTreeView model</title>
	<published>2009-12-16T13:26:12Z</published>
	<updated>2009-12-16T13:26:12Z</updated>
	<author>
		<name>Andrew Wood-16</name>
	</author>
	<content type="html">Excellent thank you.
&lt;br&gt;&lt;br&gt;Tadej Borovšak wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; /lhs_store=gtk_list_store_new(2,G_TYPE_STRING,G_TYPE_PIXBUF); //2 cols, 1st
&lt;br&gt;&amp;gt;&amp;gt; is string, 2nd is icon/
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Store creation should be done like this:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; lhs_store = gtk_list_store_new( 2, G_TYPE_STRING, GDK_TYPE_PIXBUF );
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hint: For most of GTK+/GDK types, you can get tybe by this simple convention:
&lt;br&gt;&amp;gt; GtkWidget -&amp;gt; GTK_TYPE_WIDGET
&lt;br&gt;&amp;gt; GdkPixbuf -&amp;gt; GDK_TYPE_PIXBUF
&lt;br&gt;&amp;gt; ...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; /gtk_list_store_set(lhs_store,&amp;lhs_treeiter,0,&amp;quot;Subscribers&amp;quot;,-1); //put
&lt;br&gt;&amp;gt;&amp;gt; string in col0/
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; To store pixbuf in second column, do something like this:
&lt;br&gt;&amp;gt; gtk_list_store_set( lhs_store, &amp;lhs_treeiter, 0, &amp;quot;Subscribers&amp;quot;, 1, pixbuf, -1 );
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Tadej
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;gtk-app-devel-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26818750&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Storing-images-in-GtkTreeView-model-tp26816901p26818750.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26817120</id>
	<title>Re: Storing images in GtkTreeView model</title>
	<published>2009-12-16T11:34:58Z</published>
	<updated>2009-12-16T11:34:58Z</updated>
	<author>
		<name>Tadej Borovšak</name>
	</author>
	<content type="html">Hello.
&lt;br&gt;&lt;br&gt;&amp;gt; /lhs_store=gtk_list_store_new(2,G_TYPE_STRING,G_TYPE_PIXBUF); //2 cols, 1st
&lt;br&gt;&amp;gt; is string, 2nd is icon/
&lt;br&gt;&lt;br&gt;Store creation should be done like this:
&lt;br&gt;&lt;br&gt;lhs_store = gtk_list_store_new( 2, G_TYPE_STRING, GDK_TYPE_PIXBUF );
&lt;br&gt;&lt;br&gt;Hint: For most of GTK+/GDK types, you can get tybe by this simple convention:
&lt;br&gt;GtkWidget -&amp;gt; GTK_TYPE_WIDGET
&lt;br&gt;GdkPixbuf -&amp;gt; GDK_TYPE_PIXBUF
&lt;br&gt;...
&lt;br&gt;&lt;br&gt;&amp;gt; /gtk_list_store_set(lhs_store,&amp;lhs_treeiter,0,&amp;quot;Subscribers&amp;quot;,-1); //put
&lt;br&gt;&amp;gt; string in col0/
&lt;br&gt;&lt;br&gt;To store pixbuf in second column, do something like this:
&lt;br&gt;gtk_list_store_set( lhs_store, &amp;lhs_treeiter, 0, &amp;quot;Subscribers&amp;quot;, 1, pixbuf, -1 );
&lt;br&gt;&lt;br&gt;Tadej
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Tadej Borovšak
&lt;br&gt;tadeboro.blogspot.com
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26817120&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tadeboro@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26817120&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tadej.borovsak@...&lt;/a&gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;gtk-app-devel-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26817120&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Storing-images-in-GtkTreeView-model-tp26816901p26817120.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26816901</id>
	<title>Storing images in GtkTreeView model</title>
	<published>2009-12-16T11:22:13Z</published>
	<updated>2009-12-16T11:22:13Z</updated>
	<author>
		<name>Andrew Wood-16</name>
	</author>
	<content type="html">Im using a GtkTreeView with a GtkListStore to display a list of rows 
&lt;br&gt;with both text and a picture.
&lt;br&gt;&lt;br&gt;I can declare the model with just the text as follows:
&lt;br&gt;&lt;br&gt;&lt;br&gt;/lhs_store=gtk_list_store_new(1,G_TYPE_STRING,); //1 cols(string)
&lt;br&gt;/
&lt;br&gt;&lt;br&gt;&lt;br&gt;but how do I decalre it to have a picture as well e.g the following- 
&lt;br&gt;which doesnt work. What type do I use for the second col?
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;/lhs_store=gtk_list_store_new(2,G_TYPE_STRING,G_TYPE_PIXBUF); //2 cols, 
&lt;br&gt;1st is string, 2nd is icon/
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;I can then add the text to the model easily with:
&lt;br&gt;&lt;br&gt;&lt;br&gt;/gtk_list_store_set(lhs_store,&amp;lhs_treeiter,0,&amp;quot;Subscribers&amp;quot;,-1); //put 
&lt;br&gt;string in col0/
&lt;br&gt;&lt;br&gt;&lt;br&gt;what I also want to do is put an image file in the other column
&lt;br&gt;&lt;br&gt;I know how to set up a pixbuf renderer in the view to display it but I 
&lt;br&gt;cant find an example showing how to store images in the model.
&lt;br&gt;_______________________________________________
&lt;br&gt;gtk-app-devel-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26816901&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Storing-images-in-GtkTreeView-model-tp26816901p26816901.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26804142</id>
	<title>Re: Addind 2 Widget in 1 Container....</title>
	<published>2009-12-15T16:03:32Z</published>
	<updated>2009-12-15T16:03:32Z</updated>
	<author>
		<name>Thibault Duponchelle</name>
	</author>
	<content type="html">Hi !
&lt;br&gt;&lt;br&gt;&lt;br&gt;GtkWindow is a container that can contain exactly one other widget.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Other containers, e.g. Gtk[HV]Box, GtkTable, GtkLayout, ..., can contain
&lt;br&gt;&amp;gt; more widgets organized in different ways. &amp;nbsp;So put on of them to the
&lt;br&gt;&amp;gt; window and pack the widgets to it.
&lt;br&gt;&amp;gt; [...]
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Yeti
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;Thank you Yeti and Lars Wirzenius for your help.
&lt;br&gt;&lt;br&gt;I studied GtkLayout with the Gnome tutoriel and I found the solution.
&lt;br&gt;&lt;br&gt;I post it if it could help someone.
&lt;br&gt;&lt;br&gt;GtkWidget* draw_screen(GLOBAL_SKIN_INFOS *gsi) &amp;nbsp;{
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; SKIN_INFOS *si;
&lt;br&gt;&amp;nbsp; &amp;nbsp; si=malloc(sizeof(SKIN_INFOS));
&lt;br&gt;&amp;nbsp; &amp;nbsp; gsi-&amp;gt;si=(SKIN_INFOS*)si;
&lt;br&gt;&amp;nbsp; &amp;nbsp; skin_load(gsi-&amp;gt;si,gsi-&amp;gt;SkinFileName);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; /* Create the window */
&lt;br&gt;&amp;nbsp; &amp;nbsp; GtkWidget *pImage;
&lt;br&gt;&amp;nbsp; &amp;nbsp; GtkWidget *pWindow;
&lt;br&gt;&amp;nbsp; &amp;nbsp; GtkWidget *pLayout;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; GtkWidget *gtk_window_new(GtkWindowType type);
&lt;br&gt;&amp;nbsp; &amp;nbsp; pWindow=gtk_window_new(GTK_WINDOW_TOPLEVEL);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gtk_window_set_title(GTK_WINDOW(pWindow),&amp;quot;tilem&amp;quot;);// define title of
&lt;br&gt;the window
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gtk_window_set_position(GTK_WINDOW(pWindow),GTK_WIN_POS_CENTER);
&lt;br&gt;&lt;br&gt;gtk_window_set_default_size(GTK_WINDOW(pWindow),gsi-&amp;gt;si-&amp;gt;width,gsi-&amp;gt;si-&amp;gt;height);
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; pImage=gtk_image_new_from_pixbuf(gsi-&amp;gt;si-&amp;gt;image);
&lt;br&gt;&amp;nbsp; &amp;nbsp; gsi-&amp;gt;pImage=pImage;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; GtkWidget *pAf;
&lt;br&gt;&amp;nbsp; &amp;nbsp; int screenwidth=gsi-&amp;gt;si-&amp;gt;lcd_pos.right-gsi-&amp;gt;si-&amp;gt;lcd_pos.left;
&lt;br&gt;&amp;nbsp; &amp;nbsp; int screenheight=gsi-&amp;gt;si-&amp;gt;lcd_pos.bottom-gsi-&amp;gt;si-&amp;gt;lcd_pos.top;
&lt;br&gt;&amp;nbsp; &amp;nbsp; pAf = gtk_aspect_frame_new(NULL, 0.5, 0.5, 1.0, TRUE);
&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;gtk_frame_set_shadow_type(GTK_FRAME(pAf),
&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;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;GTK_SHADOW_NONE);
&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;{
&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;gsi-&amp;gt;emu-&amp;gt;lcdwin = gtk_drawing_area_new();
&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;gtk_widget_set_name(gsi-&amp;gt;emu-&amp;gt;lcdwin,
&lt;br&gt;&amp;quot;tilem-lcd&amp;quot;);
&lt;br&gt;&lt;br&gt;&lt;br&gt;gtk_widget_set_size_request(gsi-&amp;gt;emu-&amp;gt;lcdwin,
&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;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;screenwidth,
&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;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;screenheight);
&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;gtk_container_add(GTK_CONTAINER(pAf),
&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;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;gsi-&amp;gt;emu-&amp;gt;lcdwin);
&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;gtk_widget_show(gsi-&amp;gt;emu-&amp;gt;lcdwin);
&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;}
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; /* ###SOLUTION### */
&lt;br&gt;&amp;nbsp; &amp;nbsp; pLayout=gtk_layout_new(NULL,NULL);
&lt;br&gt;&amp;nbsp; &amp;nbsp; gtk_widget_show(pAf);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; /* Into GtkLayout : I put the GtkImage (x=0, y=0) and the drawarea (on
&lt;br&gt;the GtkImage) :D */
&lt;br&gt;&amp;nbsp; &amp;nbsp; gtk_layout_put(GTK_LAYOUT(pLayout),pImage,0,0);
&lt;br&gt;&lt;br&gt;gtk_layout_put(GTK_LAYOUT(pLayout),pAf,gsi-&amp;gt;si-&amp;gt;lcd_pos.left,gsi-&amp;gt;si-&amp;gt;lcd_pos.top);
&lt;br&gt;&amp;nbsp; &amp;nbsp; /* Now I add the GtkLayout to the pWindow */
&lt;br&gt;&amp;nbsp; &amp;nbsp; gtk_container_add(GTK_CONTAINER(pWindow),pLayout);
&lt;br&gt;&amp;nbsp; &amp;nbsp; /* ###END### */
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;g_signal_connect(G_OBJECT(pWindow),&amp;quot;destroy&amp;quot;,G_CALLBACK(OnDestroy),NULL);
&lt;br&gt;&amp;nbsp; &amp;nbsp; /* Connection signal keyboard key press */
&lt;br&gt;&amp;nbsp; &amp;nbsp; gtk_widget_add_events(pWindow, GDK_KEY_RELEASE_MASK);
&lt;br&gt;&amp;nbsp; &amp;nbsp; gtk_signal_connect(GTK_OBJECT(pWindow), &amp;quot;key_press_event&amp;quot;,
&lt;br&gt;G_CALLBACK(keyboard_event), NULL);
&lt;br&gt;&amp;nbsp; &amp;nbsp; gtk_widget_add_events(pWindow, GDK_BUTTON_PRESS_MASK |
&lt;br&gt;GDK_BUTTON_RELEASE_MASK);
&lt;br&gt;&amp;nbsp; &amp;nbsp; gtk_signal_connect(GTK_OBJECT(pWindow), &amp;quot;button_press_event&amp;quot;,
&lt;br&gt;G_CALLBACK(mouse_event),(gpointer)gsi);
&lt;br&gt;&amp;nbsp; &amp;nbsp; gtk_widget_show_all(pWindow);
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; return pWindow;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;One more times thank you.
&lt;br&gt;&lt;br&gt;Best regards.
&lt;br&gt;&lt;br&gt;Thibault Duponchelle
&lt;br&gt;_______________________________________________
&lt;br&gt;gtk-app-devel-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26804142&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Addind-2-Widget-in-1-Container....-tp26794253p26804142.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26794368</id>
	<title>Re: Addind 2 Widget in 1 Container....</title>
	<published>2009-12-15T04:59:26Z</published>
	<updated>2009-12-15T04:59:26Z</updated>
	<author>
		<name>Lars Wirzenius-5</name>
	</author>
	<content type="html">On Tue, 2009-12-15 at 13:50 +0100, Thibault Duponchelle wrote:
&lt;br&gt;&amp;gt; So I &amp;quot;simply&amp;quot; search for a solution to contain a pixmap AND a drawarea .
&lt;br&gt;&amp;gt; Use GtkBox is &amp;nbsp;impossible because the pixmap must be in background and the
&lt;br&gt;&amp;gt; drawarea center ON it.
&lt;br&gt;&lt;br&gt;Could you use only a GtkDrawingArea widget in the container and draw the
&lt;br&gt;pixmap on the drawing area?
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;gtk-app-devel-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26794368&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Addind-2-Widget-in-1-Container....-tp26794253p26794368.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26794341</id>
	<title>Re: Addind 2 Widget in 1 Container....</title>
	<published>2009-12-15T04:57:25Z</published>
	<updated>2009-12-15T04:57:25Z</updated>
	<author>
		<name>David Nečas (Yeti)-2</name>
	</author>
	<content type="html">On Tue, Dec 15, 2009 at 01:50:56PM +0100, Thibault Duponchelle wrote:
&lt;br&gt;&amp;gt; I 'm actually trying to add a GtkDrawingArea in a window that already
&lt;br&gt;&amp;gt; contains a GtkImage.
&lt;br&gt;&amp;gt; There's probably an easy solution for this but I didn't know it... :(
&lt;br&gt;&amp;gt; So I show my code and I wait for suggestions... :D
&lt;br&gt;&lt;br&gt;GtkWindow is a container that can contain exactly one other widget.
&lt;br&gt;&lt;br&gt;Other containers, e.g. Gtk[HV]Box, GtkTable, GtkLayout, ..., can contain
&lt;br&gt;more widgets organized in different ways. &amp;nbsp;So put on of them to the
&lt;br&gt;window and pack the widgets to it.
&lt;br&gt;&lt;br&gt;You may also wish to read the tutorial as it explains the concept of
&lt;br&gt;widget packing.
&lt;br&gt;&lt;br&gt;Yeti
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;gtk-app-devel-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26794341&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Addind-2-Widget-in-1-Container....-tp26794253p26794341.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26794253</id>
	<title>Addind 2 Widget in 1 Container....</title>
	<published>2009-12-15T04:50:56Z</published>
	<updated>2009-12-15T04:50:56Z</updated>
	<author>
		<name>Thibault Duponchelle</name>
	</author>
	<content type="html">Hi !
&lt;br&gt;&lt;br&gt;Firstly thank you for your help.
&lt;br&gt;&lt;br&gt;I 'm actually trying to add a GtkDrawingArea in a window that already
&lt;br&gt;contains a GtkImage.
&lt;br&gt;There's probably an easy solution for this but I didn't know it... :(
&lt;br&gt;So I show my code and I wait for suggestions... :D
&lt;br&gt;&lt;br&gt;&lt;br&gt;GtkWidget* draw_screen(GLOBAL_SKIN_INFOS *gsi) &amp;nbsp;{
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; SKIN_INFOS *si;
&lt;br&gt;&amp;nbsp; &amp;nbsp; si=malloc(sizeof(SKIN_INFOS));
&lt;br&gt;&amp;nbsp; &amp;nbsp; gsi-&amp;gt;si=(SKIN_INFOS*)si;
&lt;br&gt;&amp;nbsp; &amp;nbsp; skin_load(gsi-&amp;gt;si,gsi-&amp;gt;SkinFileName);
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; /* Create the window */
&lt;br&gt;&amp;nbsp; &amp;nbsp; GtkWidget *pImage;
&lt;br&gt;&amp;nbsp; &amp;nbsp; GtkWidget *pWindow;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; GtkWidget *gtk_window_new(GtkWindowType type);
&lt;br&gt;&amp;nbsp; &amp;nbsp; pWindow=gtk_window_new(GTK_WINDOW_TOPLEVEL); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//
&lt;br&gt;GTK_WINDOW_LEVEL : define how is the window
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gtk_window_set_title(GTK_WINDOW(pWindow),&amp;quot;tilem&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; // define title of the window
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gtk_window_set_position(GTK_WINDOW(pWindow),GTK_WIN_POS_CENTER); //
&lt;br&gt;GTK_WIN_POS_CENTER : define how the window is displayed
&lt;br&gt;&lt;br&gt;gtk_window_set_default_size(GTK_WINDOW(pWindow),gsi-&amp;gt;si-&amp;gt;width,gsi-&amp;gt;si-&amp;gt;height);
&lt;br&gt;// define size of the window
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; pImage=gtk_image_new_from_pixbuf(gsi-&amp;gt;si-&amp;gt;image); //Load a pixbuf
&lt;br&gt;&amp;nbsp; &amp;nbsp; gsi-&amp;gt;pImage=pImage;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; GtkWidget *pAf;
&lt;br&gt;&amp;nbsp; &amp;nbsp; int screenwidth=94; &amp;nbsp; &amp;nbsp;// fixed for the test
&lt;br&gt;&amp;nbsp; &amp;nbsp; int screenheight=61; &amp;nbsp; &amp;nbsp;// idem
&lt;br&gt;&amp;nbsp; &amp;nbsp; pAf = gtk_aspect_frame_new(NULL, 0.5, 0.5, 1.0, TRUE); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// et pAf
&lt;br&gt;! ça fait des Chocapic !!
&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;gtk_frame_set_shadow_type(GTK_FRAME(pAf),
&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;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;GTK_SHADOW_NONE);
&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;{
&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;gsi-&amp;gt;emu.lcdwin = gtk_drawing_area_new();
&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;gtk_widget_set_name(gsi-&amp;gt;emu.lcdwin,
&lt;br&gt;&amp;quot;tilem-lcd&amp;quot;);
&lt;br&gt;&lt;br&gt;&lt;br&gt;gtk_widget_set_size_request(gsi-&amp;gt;emu.lcdwin,
&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;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;screenwidth *
&lt;br&gt;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;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;screenheight *
&lt;br&gt;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;gtk_container_add(GTK_CONTAINER(pAf),
&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;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;gsi-&amp;gt;emu.lcdwin);
&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;gtk_widget_show(gsi-&amp;gt;emu.lcdwin);
&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;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;/* HERE IS MY PROBLEM ! */
&lt;br&gt;&amp;nbsp; &amp;nbsp; //gtk_container_add(GTK_CONTAINER(pImage),pAf);
&lt;br&gt;&amp;nbsp; &amp;nbsp; /* OR */
&lt;br&gt;&amp;nbsp; &amp;nbsp; //gtk_container_add(GTK_CONTAINER(pWindow),pAf);
&lt;br&gt;&amp;nbsp; &amp;nbsp; /* END */
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; gtk_widget_show(pAf);
&lt;br&gt;&amp;nbsp; &amp;nbsp; gtk_container_add(GTK_CONTAINER(pWindow),pImage);
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;g_signal_connect(G_OBJECT(pWindow),&amp;quot;destroy&amp;quot;,G_CALLBACK(OnDestroy),NULL);
&lt;br&gt;&amp;nbsp; &amp;nbsp; /* Connection signal keyboard key press */
&lt;br&gt;&amp;nbsp; &amp;nbsp; gtk_widget_add_events(pWindow, GDK_KEY_RELEASE_MASK); // Get the event
&lt;br&gt;on the window (leftclick, rightclick)
&lt;br&gt;&amp;nbsp; &amp;nbsp; /*gtk_signal_connect(GTK_OBJECT(pWindow), &amp;quot;key_press_event&amp;quot;,
&lt;br&gt;GTK_SIGNAL_FUNC(keyboard_event), NULL); */
&lt;br&gt;&amp;nbsp; &amp;nbsp; gtk_signal_connect(GTK_OBJECT(pWindow), &amp;quot;key_press_event&amp;quot;,
&lt;br&gt;G_CALLBACK(keyboard_event), NULL);
&lt;br&gt;&amp;nbsp; &amp;nbsp; gtk_widget_add_events(pWindow, GDK_BUTTON_PRESS_MASK |
&lt;br&gt;GDK_BUTTON_RELEASE_MASK);
&lt;br&gt;&amp;nbsp; &amp;nbsp; gtk_signal_connect(GTK_OBJECT(pWindow), &amp;quot;button_press_event&amp;quot;,
&lt;br&gt;G_CALLBACK(mouse_event),(gpointer)gsi);
&lt;br&gt;&amp;nbsp; &amp;nbsp; gtk_widget_show_all(pWindow); &amp;nbsp; &amp;nbsp;// display the window and all that it
&lt;br&gt;contains.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; return pWindow;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;This code works but I can't add both widget...
&lt;br&gt;&lt;br&gt;So I &amp;quot;simply&amp;quot; search for a solution to contain a pixmap AND a drawarea .
&lt;br&gt;Use GtkBox is &amp;nbsp;impossible because the pixmap must be in background and the
&lt;br&gt;drawarea center ON it.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thank you for all.
&lt;br&gt;&lt;br&gt;I hope my english is not too bad.
&lt;br&gt;&lt;br&gt;Best regards.
&lt;br&gt;&lt;br&gt;Thibault Duponchelle
&lt;br&gt;_______________________________________________
&lt;br&gt;gtk-app-devel-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26794253&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Addind-2-Widget-in-1-Container....-tp26794253p26794253.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26790026</id>
	<title>How to make GdkPixbuf round-cornered</title>
	<published>2009-12-14T22:25:07Z</published>
	<updated>2009-12-14T22:25:07Z</updated>
	<author>
		<name>Jianchun Zhou</name>
	</author>
	<content type="html">Hi, all:
&lt;br&gt;&lt;br&gt;I want to load an image as a GdkPixbuf from a image file, then make it's
&lt;br&gt;CORNERS totally transparency to create a round corner picture, and save it
&lt;br&gt;back into an image file.
&lt;br&gt;&lt;br&gt;Now I just don't know how to make CORNERS transparency.
&lt;br&gt;&lt;br&gt;Anybody can help me?
&lt;br&gt;&lt;br&gt;Thank you in advance.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Best Regards
&lt;br&gt;_______________________________________________
&lt;br&gt;gtk-app-devel-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26790026&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-make-GdkPixbuf-round-cornered-tp26790026p26790026.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26785497</id>
	<title>TreeView column headers</title>
	<published>2009-12-14T13:46:45Z</published>
	<updated>2009-12-14T13:46:45Z</updated>
	<author>
		<name>Sebastian Pająk</name>
	</author>
	<content type="html">How can I make GtkTreeView column header clickable and non focusable
&lt;br&gt;at the same time?
&lt;br&gt;&lt;br&gt;I want GtkTreeView not to pass focus to header area, but to keep it
&lt;br&gt;ALWAYS inside (for items it contains) whenever focus enters (e.g. from
&lt;br&gt;TAB key) or header is clicked.
&lt;br&gt;&lt;br&gt;Is this possible? &amp; How?
&lt;br&gt;&lt;br&gt;Sebastian
&lt;br&gt;_______________________________________________
&lt;br&gt;gtk-app-devel-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26785497&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/TreeView-column-headers-tp26785497p26785497.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26774311</id>
	<title>Problems with print preview</title>
	<published>2009-12-14T00:22:15Z</published>
	<updated>2009-12-14T00:22:15Z</updated>
	<author>
		<name>Miroslav Rajcic</name>
	</author>
	<content type="html">I knew that GTK toolkit on Windows has major problems with drawing print 
&lt;br&gt;preview of a document, but it seems that the new GTK 2.18.x has the same 
&lt;br&gt;problem on Linux too.
&lt;br&gt;&lt;br&gt;Starting with Ubuntu 9.10 and Fedora 12, my print preview code just displays 
&lt;br&gt;blank pages now :( &amp;nbsp;Note that the same code is tested and works on older 
&lt;br&gt;releases reaching as far back as Fedora 6 (haven't tested before).
&lt;br&gt;&lt;br&gt;The actual printing (tested printing to PDF) generates correct content, it 
&lt;br&gt;is just print preview that seems to be broken.
&lt;br&gt;&lt;br&gt;Can anyone confirm this ? Does anyone notice similar problems in other 
&lt;br&gt;programs ?
&lt;br&gt;Any workaround ?
&lt;br&gt;&lt;br&gt;TIA,
&lt;br&gt;&amp;nbsp; Miroslav 
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;gtk-app-devel-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26774311&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problems-with-print-preview-tp26774311p26774311.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26772620</id>
	<title>Re: getting button_press event for gtk_drawing_area</title>
	<published>2009-12-13T19:41:44Z</published>
	<updated>2009-12-13T19:41:44Z</updated>
	<author>
		<name>Eigo Mori</name>
	</author>
	<content type="html">&lt;br&gt;Hi Carlos,
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; This has been working fine until being compiled with gtk+-2.18.0 but
&lt;br&gt;&amp;gt; &amp;gt; does not work after that. Now I found that it worked with the later
&lt;br&gt;&amp;gt; &amp;gt; gtk if I add GDK_BUTTON_RELEASE_MASK when calling
&lt;br&gt;&amp;gt; &amp;gt; gtk_widget_set_events(). I don't know why... I even don't have the
&lt;br&gt;&amp;gt; &amp;gt; callback for the event.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I guess I am simply wrong with my coding. I appreciate if someone can
&lt;br&gt;&amp;gt; &amp;gt; educate me a bit how this should be done correctly. The sample below
&lt;br&gt;&amp;gt; &amp;gt; is still valid. (if you add GDK_BUTTON_RELEASE_MASK, it works) 
&lt;br&gt;&amp;gt; I know nothing about your problem, but it seems that in my GTK 2.18.3, 
&lt;br&gt;&amp;gt; button press events in drawing areas need GDK_BUTTON_RELEASE_MASK to 
&lt;br&gt;&amp;gt; properly work. This was not the case in older GTK versions (tested it 
&lt;br&gt;&amp;gt; with GTK 2.12.8).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; In my case, what I notice is: if I press a button over a drawing area, 
&lt;br&gt;&amp;gt; then I need to press twice a Cancel or a Ok button in a (window widget) 
&lt;br&gt;&amp;gt; dialog for this to be effective. It seems a problem of focus grab... 
&lt;br&gt;&amp;gt; adding GDK_BUTTON_RELEASE_MASK with gtk_widget_set_events the problem 
&lt;br&gt;&amp;gt; disappears...
&lt;/div&gt;&lt;br&gt;Thanks. Sounds like the similar case. In my case if I press somewhere in
&lt;br&gt;the window but out of the drawing_area(s), I can make the next press
&lt;br&gt;effective. Indeed it looks like a focus problem.
&lt;br&gt;&lt;br&gt;If I am correct GDK_BUTTON_RELEASE_MASK has been set internally until the
&lt;br&gt;specific commit. But it needs to be set by the application after the
&lt;br&gt;change to work properly. I don't know how this works. Maybe there also is
&lt;br&gt;some internal callback for this event and is doing some magic.
&lt;br&gt;&lt;br&gt;But thanks anyway. It was good to hear that someone else has the similar
&lt;br&gt;issue and is workarounding the same way.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Eigo
&lt;br&gt;_______________________________________________
&lt;br&gt;gtk-app-devel-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26772620&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/calling-gdk_x11_drawable_get_xid%28%29-causes-corruption-with-button_press_event-handler-tp26617592p26772620.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26771721</id>
	<title>Re: How to create a thumbnail of a picture?</title>
	<published>2009-12-13T17:10:06Z</published>
	<updated>2009-12-13T17:10:06Z</updated>
	<author>
		<name>Jianchun Zhou</name>
	</author>
	<content type="html">Thanks Lars.
&lt;br&gt;&lt;br&gt;On Fri, Dec 11, 2009 at 6:10 PM, Lars Wirzenius &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26771721&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;liw@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Fri, 2009-12-11 at 17:50 +0800, Jianchun Zhou wrote:
&lt;br&gt;&amp;gt; &amp;gt; Hi, All:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Any body knows how to create a thumbnail of a picture in GTK+?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I want to load an image, then output a file which is the resized image.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The GdkPixbuf object is probably what you want. See
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://library.gnome.org/devel/gdk-pixbuf/stable/gdk-pixbuf-file-loading.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://library.gnome.org/devel/gdk-pixbuf/stable/gdk-pixbuf-file-loading.html&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://library.gnome.org/devel/gdk-pixbuf/stable/gdk-pixbuf-file-saving.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://library.gnome.org/devel/gdk-pixbuf/stable/gdk-pixbuf-file-saving.html&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://library.gnome.org/devel/gdk-pixbuf/stable/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://library.gnome.org/devel/gdk-pixbuf/stable/&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://library.gnome.org/devel/gdk-pixbuf/stable/GdkPixbufLoader.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://library.gnome.org/devel/gdk-pixbuf/stable/GdkPixbufLoader.html&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; gtk-app-devel-list mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26771721&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Best Regards
&lt;br&gt;_______________________________________________
&lt;br&gt;gtk-app-devel-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26771721&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-create-a-thumbnail-of-a-picture--tp26741455p26771721.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26764378</id>
	<title>getting button_press event for gtk_drawing_area  (was: calling gdk_x11_drawable_get_xid() causes corruption...)</title>
	<published>2009-12-13T00:36:18Z</published>
	<updated>2009-12-13T00:36:18Z</updated>
	<author>
		<name>Eigo Mori</name>
	</author>
	<content type="html">&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;In short what I want is &amp;quot;packing multiple gtk_drawing_area in a window
&lt;br&gt;and getting button press event from each drawing area&amp;quot;.
&lt;br&gt;&lt;br&gt;The drawing areas are meant for &amp;quot;animated video thumbnail&amp;quot;(shortened and
&lt;br&gt;downscaled). When you clicking on a thumbnail, it starts the actual
&lt;br&gt;playback on a different window.
&lt;br&gt;&lt;br&gt;It needs to get XID for each drawing area so that it can feed the
&lt;br&gt;thumbnail video stream from gstreamer pipeline. Also the button press for
&lt;br&gt;each drawing area needs to be distinguishable so that the program can
&lt;br&gt;start the playback of the correct video. I would use the common callback
&lt;br&gt;func for all the drawing area because the number of drawing area is
&lt;br&gt;determined and changes at run time.
&lt;br&gt;&lt;br&gt;This has been working fine until being compiled with gtk+-2.18.0 but does
&lt;br&gt;not work after that. Now I found that it worked with the later gtk if I
&lt;br&gt;add GDK_BUTTON_RELEASE_MASK when calling gtk_widget_set_events(). I don't
&lt;br&gt;know why... I even don't have the callback for the event.
&lt;br&gt;&lt;br&gt;I guess I am simply wrong with my coding. I appreciate if someone can
&lt;br&gt;educate me a bit how this should be done correctly. The sample below is
&lt;br&gt;still valid. (if you add GDK_BUTTON_RELEASE_MASK, it works)
&lt;br&gt;&lt;br&gt;-
&lt;br&gt;Here is some additional note. Firstly I thought this is related with
&lt;br&gt;gdk_x11_drawable_get_xid() because it happens only after I call the
&lt;br&gt;function. However, by conducting &amp;quot;git bisect&amp;quot; against gtk repository and
&lt;br&gt;identifying which exact code makes the change of behavior, I learned that
&lt;br&gt;my guess was most likely wrong.
&lt;br&gt;&lt;br&gt;With a commit (6fef640debbe468586ff866cbef38d7a29c452d1),
&lt;br&gt;get_native_event_mask() in gdk/gdkwindow.c is given much less 'default
&lt;br&gt;(?)' event mask and GDK_BUTTON_RELEASE_MASK is one of those dropped. Then
&lt;br&gt;I found that if I add it at application side, it works as I wish.
&lt;br&gt;&lt;br&gt;If someone wonders what the hell this is all about... you can find the
&lt;br&gt;explanation on the application and download whole source at
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://drag0n.fam.cx/?page_id=237&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://drag0n.fam.cx/?page_id=237&lt;/a&gt;&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Eigo
&lt;br&gt;&lt;br&gt;-----
&lt;br&gt;On Thu, 3 Dec 2009 00:21:59 +0200
&lt;br&gt;Eigo Mori &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26764378&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eigom@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I am having trouble to catch button_press_event on gtk_drawing_area
&lt;br&gt;&amp;gt; correctly after calling gdk_x11_drawable_get_xid() for the
&lt;br&gt;&amp;gt; drawing_areas.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Please find the sample code below. It packs 10 drawing_area and set
&lt;br&gt;&amp;gt; event handlers. When you click on the drawing_area, it prints out which
&lt;br&gt;&amp;gt; drawing_area has been clicked. (i.e. 0-9)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This seems to work as I hope if I don't call gdk_x11_drawable_get_xid
&lt;br&gt;&amp;gt; (). If I call gdk_x11_drawable_get_xid(), it reports correct number
&lt;br&gt;&amp;gt; firstly but keep printing out the same number even if I click on the
&lt;br&gt;&amp;gt; different drawing_area later. XID itself seems to be collected
&lt;br&gt;&amp;gt; correctly.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This does not seem to occur with gtk+-2.18.0 or earlier but occurs with
&lt;br&gt;&amp;gt; gtk+-2.18.1 or later.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; It is quite possible that my code is wrong and was working by luck. But
&lt;br&gt;&amp;gt; I couldn't find the right way after some struggling... I will
&lt;br&gt;&amp;gt; appreciate if someone can kindly educate me.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -----
&lt;br&gt;&amp;gt; /*
&lt;br&gt;&amp;gt; &amp;nbsp; xid_test.c
&lt;br&gt;&amp;gt; &amp;nbsp; gcc -g -Wall `pkg-config --cflags --libs gtk+-2.0 gdk-2.0` -o
&lt;br&gt;&amp;gt; xid_test xid_test.c */
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; #include &amp;lt;stdlib.h&amp;gt;
&lt;br&gt;&amp;gt; #include &amp;lt;gtk/gtk.h&amp;gt;
&lt;br&gt;&amp;gt; #include &amp;lt;glib.h&amp;gt;
&lt;br&gt;&amp;gt; #include &amp;lt;gdk/gdkx.h&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; GtkWidget *hbox, *window, *drawing_area[10];
&lt;br&gt;&amp;gt; GMainLoop *loop;
&lt;br&gt;&amp;gt; gulong xid[10];
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; static void
&lt;br&gt;&amp;gt; click_handler( GtkWidget *widget, GdkEventButton *event, int* p )
&lt;br&gt;&amp;gt; {
&lt;br&gt;&amp;gt; &amp;nbsp; g_printerr( &amp;quot;%dth icon clicked\n&amp;quot;, *p );
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; static void
&lt;br&gt;&amp;gt; expose_handler( GtkWidget *widget, GdkEventButton *event, int* p )
&lt;br&gt;&amp;gt; {
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; /*
&lt;br&gt;&amp;gt; &amp;nbsp; xid[*p] = gdk_x11_drawable_get_xid( widget-&amp;gt;window );
&lt;br&gt;&amp;gt; &amp;nbsp; g_printerr( &amp;quot;getting xid for %dth icon : %ld\n&amp;quot;, *p, xid[*p] );
&lt;br&gt;&amp;gt; &amp;nbsp; */
&lt;br&gt;&amp;gt; &amp;nbsp; gdk_draw_arc( widget-&amp;gt;window,
&lt;br&gt;&amp;gt; 		widget-&amp;gt;style-&amp;gt;fg_gc[GTK_WIDGET_STATE( widget )],
&lt;br&gt;&amp;gt; 		TRUE,
&lt;br&gt;&amp;gt; 		0, 
&lt;br&gt;&amp;gt; 		0, 
&lt;br&gt;&amp;gt; 		widget-&amp;gt;allocation.width,
&lt;br&gt;&amp;gt; 		widget-&amp;gt;allocation.height,
&lt;br&gt;&amp;gt; 		0, 
&lt;br&gt;&amp;gt; 		64*36*(*p+1)
&lt;br&gt;&amp;gt; 		);
&lt;br&gt;&amp;gt; }
&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; int i;
&lt;br&gt;&amp;gt; &amp;nbsp; int id[10] = {0,1,2,3,4,5,6,7,8,9};
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; gtk_init(&amp;argc, &amp;argv);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; hbox = gtk_hbox_new(FALSE,0);
&lt;br&gt;&amp;gt; &amp;nbsp; window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
&lt;br&gt;&amp;gt; &amp;nbsp; gtk_widget_set_usize( window, 600, 50 );
&lt;br&gt;&amp;gt; &amp;nbsp; gtk_container_add(GTK_CONTAINER(window), hbox);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; for(i=0;i&amp;lt;10;i++){
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; drawing_area[i] = gtk_drawing_area_new();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; gtk_signal_connect(GTK_OBJECT(drawing_area[i]), 
&lt;br&gt;&amp;gt; 		 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;button_press_event&amp;quot;, GTK_SIGNAL_FUNC
&lt;br&gt;&amp;gt; (click_handler), &amp;id[i] ); gtk_signal_connect(GTK_OBJECT(drawing_area
&lt;br&gt;&amp;gt; [i]), &amp;quot;expose_event&amp;quot;, GTK_SIGNAL_FUNC(expose_handler), &amp;id[i] );
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; gtk_widget_set_events(drawing_area[i], GDK_EXPOSURE_MASK |
&lt;br&gt;&amp;gt; GDK_BUTTON_PRESS_MASK); gtk_drawing_area_size(GTK_DRAWING_AREA
&lt;br&gt;&amp;gt; (drawing_area[i]), 50, 50 ); gtk_box_pack_start(GTK_BOX(hbox),
&lt;br&gt;&amp;gt; drawing_area[i], FALSE, FALSE, 2); }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; gtk_widget_show( hbox );
&lt;br&gt;&amp;gt; &amp;nbsp; for(i=0;i&amp;lt;10;i++){
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; gtk_widget_show(drawing_area[i]);
&lt;br&gt;&amp;gt; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; gtk_widget_show( window );
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; for(i=0;i&amp;lt;10;i++){
&lt;br&gt;&amp;gt; &amp;nbsp; /* 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;seems that it does not matter whether you get xid here
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;or in expose handler
&lt;br&gt;&amp;gt; &amp;nbsp; */
&lt;br&gt;&amp;gt; &amp;nbsp; /* &amp;nbsp;works if you comment it out &amp;nbsp;*/
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; xid[i] = gdk_x11_drawable_get_xid( drawing_area[i]-&amp;gt;window );
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; g_printerr( &amp;quot;getting xid for %dth icon : %ld\n&amp;quot;, i, xid[i] );
&lt;br&gt;&amp;gt; &amp;nbsp; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; loop = g_main_loop_new (NULL, FALSE);
&lt;br&gt;&amp;gt; &amp;nbsp; g_main_loop_run( loop );
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; exit( 0 );
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; -----
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; Eigo
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; gtk-app-devel-list mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26764378&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;&lt;/div&gt;_______________________________________________
&lt;br&gt;gtk-app-devel-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26764378&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/calling-gdk_x11_drawable_get_xid%28%29-causes-corruption-with-button_press_event-handler-tp26617592p26764378.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26741689</id>
	<title>Re: How to create a thumbnail of a picture?</title>
	<published>2009-12-11T02:10:06Z</published>
	<updated>2009-12-11T02:10:06Z</updated>
	<author>
		<name>Lars Wirzenius-5</name>
	</author>
	<content type="html">On Fri, 2009-12-11 at 17:50 +0800, Jianchun Zhou wrote:
&lt;br&gt;&amp;gt; Hi, All:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Any body knows how to create a thumbnail of a picture in GTK+?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I want to load an image, then output a file which is the resized image.
&lt;br&gt;&lt;br&gt;The GdkPixbuf object is probably what you want. See
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://library.gnome.org/devel/gdk-pixbuf/stable/gdk-pixbuf-file-loading.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://library.gnome.org/devel/gdk-pixbuf/stable/gdk-pixbuf-file-loading.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://library.gnome.org/devel/gdk-pixbuf/stable/gdk-pixbuf-file-saving.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://library.gnome.org/devel/gdk-pixbuf/stable/gdk-pixbuf-file-saving.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://library.gnome.org/devel/gdk-pixbuf/stable/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://library.gnome.org/devel/gdk-pixbuf/stable/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://library.gnome.org/devel/gdk-pixbuf/stable/GdkPixbufLoader.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://library.gnome.org/devel/gdk-pixbuf/stable/GdkPixbufLoader.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;gtk-app-devel-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26741689&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-create-a-thumbnail-of-a-picture--tp26741455p26741689.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26741455</id>
	<title>How to create a thumbnail of a picture?</title>
	<published>2009-12-11T01:50:45Z</published>
	<updated>2009-12-11T01:50:45Z</updated>
	<author>
		<name>Jianchun Zhou</name>
	</author>
	<content type="html">Hi, All:
&lt;br&gt;&lt;br&gt;Any body knows how to create a thumbnail of a picture in GTK+?
&lt;br&gt;&lt;br&gt;I want to load an image, then output a file which is the resized image.
&lt;br&gt;&lt;br&gt;Thanks.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Best Regards
&lt;br&gt;_______________________________________________
&lt;br&gt;gtk-app-devel-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26741455&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-create-a-thumbnail-of-a-picture--tp26741455p26741455.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26728019</id>
	<title>Re: callback function difference</title>
	<published>2009-12-10T06:21:36Z</published>
	<updated>2009-12-10T06:21:36Z</updated>
	<author>
		<name>Florian Müllner</name>
	</author>
	<content type="html">El jue, 10-12-2009 a las 22:05 +0800, Zhangwei escribió:
&lt;br&gt;&amp;gt; hello
&lt;br&gt;&amp;gt; i'm new in gtk
&lt;br&gt;&amp;gt; i'm puzzled about the callback functions: &amp;nbsp;g_callback() &amp; gtk_signal_func()
&lt;br&gt;&amp;gt; they looked same
&lt;br&gt;&amp;gt; is there anyone can tell me the difference ?
&lt;br&gt;&lt;br&gt;There is none. The object/signal system of Gtk was split out into
&lt;br&gt;GObject a long time ago, but part of the old system is still in Gtk for
&lt;br&gt;compatibility reasons.
&lt;br&gt;So while gtk_signal_func is a mere alias for g_callback, the former must
&lt;br&gt;not be used in newly written code - in fact, it will be removed with the
&lt;br&gt;release of Gtk+-3.0.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Florian
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;gtk-app-devel-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26728019&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/callback-function-difference-tp26727784p26728019.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26727784</id>
	<title>callback function difference</title>
	<published>2009-12-10T06:05:18Z</published>
	<updated>2009-12-10T06:05:18Z</updated>
	<author>
		<name>Zhangwei-3</name>
	</author>
	<content type="html">hello
&lt;br&gt;i'm new in gtk
&lt;br&gt;i'm puzzled about the callback functions: &amp;nbsp;g_callback() &amp; gtk_signal_func()
&lt;br&gt;they looked same
&lt;br&gt;is there anyone can tell me the difference ?
&lt;br&gt;&lt;br&gt;thanks in advance!
&lt;br&gt;sincerely
&lt;br&gt;&lt;br&gt;James
&lt;br&gt;_______________________________________________
&lt;br&gt;gtk-app-devel-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26727784&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/callback-function-difference-tp26727784p26727784.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26717710</id>
	<title>Re: Window Managers Key Combinations and Accelerators</title>
	<published>2009-12-09T13:06:06Z</published>
	<updated>2009-12-09T13:06:06Z</updated>
	<author>
		<name>Liam R E Quin</name>
	</author>
	<content type="html">On Wed, 2009-12-09 at 08:10 -0500, dhk wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Two things I would like to do is override the default Tab key press
&lt;br&gt;&amp;gt; behavior and the Ctrl-Alt-Del behavior.
&lt;br&gt;&lt;br&gt;Tab is usually used by gtk+ (not the window manager) to move between
&lt;br&gt;items e.g. in a dialogue box. Shift-tab does the same but in the
&lt;br&gt;opposite direction.
&lt;br&gt;&lt;br&gt;Gnome-terminal overrides this, so you could look there.
&lt;br&gt;&lt;br&gt;Control-alt-del is interpreted (on Linux at least) by the X server,
&lt;br&gt;depending on the value of the DontZap option in /etc/X11/xorg.conf,
&lt;br&gt;and I think cannot easily be overridden by an application.
&lt;br&gt;&lt;br&gt;Liam
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Liam Quin - XML Activity Lead, W3C, &lt;a href=&quot;http://www.w3.org/People/Quin/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/People/Quin/&lt;/a&gt;&lt;br&gt;Pictures from old books: &lt;a href=&quot;http://fromoldbooks.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://fromoldbooks.org/&lt;/a&gt;&lt;br&gt;Ankh: irc.sorcery.net irc.gnome.org www.advogato.org
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;gtk-app-devel-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26717710&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Window-Managers-Key-Combinations-and-Accelerators-tp26709923p26717710.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26712074</id>
	<title>Re: Read-only controls</title>
	<published>2009-12-09T07:27:50Z</published>
	<updated>2009-12-09T07:27:50Z</updated>
	<author>
		<name>Michael Cronenworth</name>
	</author>
	<content type="html">Pierre Wieser wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Is there a standard Gtk way of defining controls as read-only at runtime ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In my user interface, I have entries, radio and toggle buttons, and
&lt;br&gt;&amp;gt; a combo list ; I would set them as read-only when the current item
&lt;br&gt;&amp;gt; cannot be updated for a reason or another.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; For now, I set all these controls as insensitive, but there is a real
&lt;br&gt;&amp;gt; semantic difference between &amp;quot;a field is not available - doesn't make
&lt;br&gt;&amp;gt; sense here&amp;quot; and &amp;quot;a field cannot be modified&amp;quot;, and I'd wish my UI
&lt;br&gt;&amp;gt; reflects this difference.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; What should I do for that ?
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;Entries: gtk_entry_set_editable()
&lt;br&gt;&lt;br&gt;For buttons, radios, and other items, setting them to insensitive should 
&lt;br&gt;be the appropriate thing to do. If you don't feel the same way though, 
&lt;br&gt;you can set callbacks on the buttons, radios, etc. and just not do any 
&lt;br&gt;of the actions the widgets would do.
&lt;br&gt;_______________________________________________
&lt;br&gt;gtk-app-devel-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26712074&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Read-only-controls-tp26711659p26712074.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26711659</id>
	<title>Read-only controls</title>
	<published>2009-12-09T07:00:38Z</published>
	<updated>2009-12-09T07:00:38Z</updated>
	<author>
		<name>Pierre Wieser-2</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;Is there a standard Gtk way of defining controls as read-only at runtime ?
&lt;br&gt;&lt;br&gt;In my user interface, I have entries, radio and toggle buttons, and
&lt;br&gt;a combo list ; I would set them as read-only when the current item
&lt;br&gt;cannot be updated for a reason or another.
&lt;br&gt;&lt;br&gt;For now, I set all these controls as insensitive, but there is a real
&lt;br&gt;semantic difference between &amp;quot;a field is not available - doesn't make
&lt;br&gt;sense here&amp;quot; and &amp;quot;a field cannot be modified&amp;quot;, and I'd wish my UI
&lt;br&gt;reflects this difference.
&lt;br&gt;&lt;br&gt;What should I do for that ?
&lt;br&gt;&lt;br&gt;Thanks in advance.
&lt;br&gt;Regards
&lt;br&gt;Pierre
&lt;br&gt;_______________________________________________
&lt;br&gt;gtk-app-devel-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26711659&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Read-only-controls-tp26711659p26711659.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26709923</id>
	<title>Window Managers Key Combinations and Accelerators</title>
	<published>2009-12-09T05:10:28Z</published>
	<updated>2009-12-09T05:10:28Z</updated>
	<author>
		<name>dhkuhl</name>
	</author>
	<content type="html">How can I prevent all or some window manager key combinations in my gtk
&lt;br&gt;application?
&lt;br&gt;&lt;br&gt;&lt;br&gt;To prevent the default F10 behavior I already use the following.
&lt;br&gt;&amp;nbsp; GtkSettings *gtk_settings;
&lt;br&gt;&amp;nbsp; gtk_settings=gtk_settings_get_for_screen(gdk_screen_get_default());
&lt;br&gt;&amp;nbsp; g_object_set(gtk_settings, &amp;quot;gtk-menu-bar-accel&amp;quot;, NULL, NULL);
&lt;br&gt;&lt;br&gt;The &amp;quot;gtk-menu-bar-accel&amp;quot; string was something given from other
&lt;br&gt;questions. &amp;nbsp;Is there a list of other strings I can use in this place?
&lt;br&gt;&lt;br&gt;Two things I would like to do is override the default Tab key press
&lt;br&gt;behavior and the Ctrl-Alt-Del behavior.
&lt;br&gt;&lt;br&gt;I'm using the GtkUIManager to set accelerator keys, but some keys like
&lt;br&gt;the Tab key don't seem to work. &amp;nbsp;I figured in my GtkActionEntry array I
&lt;br&gt;could use &amp;quot;&amp;lt;tab&amp;gt;&amp;quot;, but that doesn't have any affect. &amp;nbsp;I'm guessing it's
&lt;br&gt;the Window Manager overriding it. &amp;nbsp;Is this correct or is it something
&lt;br&gt;else? &amp;nbsp;Also, is there a place I can find the mapping of the keys to
&lt;br&gt;their string value?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;dhk
&lt;br&gt;_______________________________________________
&lt;br&gt;gtk-app-devel-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26709923&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Window-Managers-Key-Combinations-and-Accelerators-tp26709923p26709923.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26697590</id>
	<title>Re: Clearing GtkComboBoxEntry</title>
	<published>2009-12-08T09:35:48Z</published>
	<updated>2009-12-08T09:35:48Z</updated>
	<author>
		<name>Steve Harrington-3</name>
	</author>
	<content type="html">Carlos Pereira wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; David is right,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; you should get the entry pointer with gtk_bin_get_child, and after 
&lt;br&gt;&amp;gt; that you handle this entry as any other entry:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; entry = gtk_bin_get_child (GTK_BIN (combo_entry));
&lt;br&gt;&amp;gt; gtk_entry_set_text (GTK_ENTRY (entry), &amp;quot;&amp;quot;);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In GTK 2.0 you can also use this:
&lt;br&gt;&amp;gt; gtk_entry_set_text (GTK_ENTRY (GTK_BIN (combo_entry)-&amp;gt;child), &amp;quot;&amp;quot;);
&lt;br&gt;&amp;gt; but this is not going to work in Gtk 3.0, as these objects will be 
&lt;br&gt;&amp;gt; sealed from outside access.
&lt;br&gt;&amp;gt;
&lt;/div&gt;I saw this in one an example somewhere and decided to ignore it for the 
&lt;br&gt;reason you mention.
&lt;br&gt;&amp;gt; In my opinion, you should forget about redundant functions such as 
&lt;br&gt;&amp;gt; gtk_combo_box_get_active_text, having direct access to the entry pointer
&lt;br&gt;&amp;gt; is much better.
&lt;br&gt;&amp;gt;
&lt;br&gt;Agree. &amp;nbsp;Thanks.
&lt;br&gt;_______________________________________________
&lt;br&gt;gtk-app-devel-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26697590&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Clearing-GtkComboBoxEntry-tp26688307p26697590.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26696704</id>
	<title>GTK+ 2.18.5 released</title>
	<published>2009-12-08T08:34:45Z</published>
	<updated>2009-12-08T08:34:45Z</updated>
	<author>
		<name>Matthias Clasen</name>
	</author>
	<content type="html">GTK+ 2.18.5 is now available for download at:
&lt;br&gt;&lt;br&gt;&amp;nbsp;ftp://ftp.gtk.org/pub/gtk/2.18/
&lt;br&gt;&amp;nbsp;&lt;a href=&quot;http://download.gnome.org/sources/gtk+/2.18/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://download.gnome.org/sources/gtk+/2.18/&lt;/a&gt;&lt;br&gt;&lt;br&gt;md5 sums:
&lt;br&gt;3047875309f7f6030e03b0a95cf99c8c &amp;nbsp;gtk+-2.18.5.tar.bz2
&lt;br&gt;c60a0792c3065787f560d2c39ec0893b &amp;nbsp;gtk+-2.18.5.tar.gz
&lt;br&gt;&lt;br&gt;sha1 sums:
&lt;br&gt;ddb004f0f92f7c8e3b84237e05fcf0ef5affc79c &amp;nbsp;gtk+-2.18.5.tar.bz2
&lt;br&gt;4621e88939b15c73a6fe6fa43f88c33c1f66a9b3 &amp;nbsp;gtk+-2.18.5.tar.gz
&lt;br&gt;&lt;br&gt;This is a bug fix release that contains a number of fixes to CSW corner
&lt;br&gt;cases.
&lt;br&gt;&lt;br&gt;&lt;br&gt;* Bugs fixed:
&lt;br&gt;&amp;nbsp;603652	Sporadic crashes with GtkSocket
&lt;br&gt;&amp;nbsp;598476	gnome-screensaver crashes when entering password...
&lt;br&gt;&amp;nbsp;601473 GDK_BUTTON?_MOTION_MASK appears to be broken
&lt;br&gt;&amp;nbsp;597386 Cannot click buttons more than once without...
&lt;br&gt;&amp;nbsp;603619 the colormap of offscreen's pixmap doesn't...
&lt;br&gt;&amp;nbsp;603904 gdk_draw_line doesn't have expose area.
&lt;br&gt;&lt;br&gt;&lt;br&gt;These fixes have been contributed by Alexander Larsson and
&lt;br&gt;Ray Strode.
&lt;br&gt;&lt;br&gt;&lt;br&gt;December 8, 2009
&lt;br&gt;Matthias Clasen
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;gtk-app-devel-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26696704&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/GTK%2B-2.18.5-released-tp26696704p26696704.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26695482</id>
	<title>Re: Clearing GtkComboBoxEntry</title>
	<published>2009-12-08T07:16:07Z</published>
	<updated>2009-12-08T07:16:07Z</updated>
	<author>
		<name>Carlos Pereira-3</name>
	</author>
	<content type="html">David is right,
&lt;br&gt;&lt;br&gt;you should get the entry pointer with gtk_bin_get_child, and after that 
&lt;br&gt;you handle this entry as any other entry:
&lt;br&gt;&lt;br&gt;entry = gtk_bin_get_child (GTK_BIN (combo_entry));
&lt;br&gt;gtk_entry_set_text (GTK_ENTRY (entry), &amp;quot;&amp;quot;);
&lt;br&gt;&lt;br&gt;In GTK 2.0 you can also use this:
&lt;br&gt;gtk_entry_set_text (GTK_ENTRY (GTK_BIN (combo_entry)-&amp;gt;child), &amp;quot;&amp;quot;);
&lt;br&gt;but this is not going to work in Gtk 3.0, as these objects will be 
&lt;br&gt;sealed from outside access.
&lt;br&gt;&lt;br&gt;In my opinion, you should forget about redundant functions such as 
&lt;br&gt;gtk_combo_box_get_active_text, having direct access to the entry pointer
&lt;br&gt;is much better.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Carlos
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Mon, Dec 07, 2009 at 07:52:02PM -0800, Steve Harrington wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; I have an application using GtkComboBoxEntry with a simple 2-column &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; int/char * ListEntry model. &amp;nbsp;If the user enters data in the box (as &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; opposed to using a pull-down selector) I can access the index with
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; gtk_combo_box_get_active( GTK_COMBO_BOX(W) );
&lt;br&gt;&amp;gt;&amp;gt; and the text with
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; gtk_combo_box_get_active_text (GTK_COMBO_BOX(W));
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; The index is -1 as expected and the text is the text that what was entered.
&lt;br&gt;&amp;gt;&amp;gt; The question is: &amp;nbsp;How do I clear the text field when I have finished &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; with it.
&lt;br&gt;&amp;gt;&amp;gt; From the FAQ and other documentation it seems that I should be able to &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; access the actual GtkEntry widget within the GtkComboBoxEntry widget, &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; get the GtkEntryBuffer, and clear it with &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; gtk_entry_buffer_delete_text(). &amp;nbsp;None of these buffer functions/headers &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; are marked as depreciated but also none of them are my version of the &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; gtk headers (/usr/include/gtk-2.0/gtk/gtkentry.h) or anywhere else in &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; the gtk headers.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You can get the entry with gtk_bin_get_child(). &amp;nbsp;At least that's what
&lt;br&gt;&amp;gt; the reference docs say.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Yeti
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; gtk-app-devel-list mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26695482&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;gtk-app-devel-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26695482&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Clearing-GtkComboBoxEntry-tp26688307p26695482.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26690778</id>
	<title>Re: Clearing GtkComboBoxEntry</title>
	<published>2009-12-08T01:10:32Z</published>
	<updated>2009-12-08T01:10:32Z</updated>
	<author>
		<name>David Nečas (Yeti)-2</name>
	</author>
	<content type="html">On Mon, Dec 07, 2009 at 07:52:02PM -0800, Steve Harrington wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I have an application using GtkComboBoxEntry with a simple 2-column &amp;nbsp;
&lt;br&gt;&amp;gt; int/char * ListEntry model. &amp;nbsp;If the user enters data in the box (as &amp;nbsp;
&lt;br&gt;&amp;gt; opposed to using a pull-down selector) I can access the index with
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; gtk_combo_box_get_active( GTK_COMBO_BOX(W) );
&lt;br&gt;&amp;gt; and the text with
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; gtk_combo_box_get_active_text (GTK_COMBO_BOX(W));
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The index is -1 as expected and the text is the text that what was entered.
&lt;br&gt;&amp;gt; The question is: &amp;nbsp;How do I clear the text field when I have finished &amp;nbsp;
&lt;br&gt;&amp;gt; with it.
&lt;br&gt;&amp;gt; From the FAQ and other documentation it seems that I should be able to &amp;nbsp;
&lt;br&gt;&amp;gt; access the actual GtkEntry widget within the GtkComboBoxEntry widget, &amp;nbsp;
&lt;br&gt;&amp;gt; get the GtkEntryBuffer, and clear it with &amp;nbsp;
&lt;br&gt;&amp;gt; gtk_entry_buffer_delete_text(). &amp;nbsp;None of these buffer functions/headers &amp;nbsp;
&lt;br&gt;&amp;gt; are marked as depreciated but also none of them are my version of the &amp;nbsp;
&lt;br&gt;&amp;gt; gtk headers (/usr/include/gtk-2.0/gtk/gtkentry.h) or anywhere else in &amp;nbsp;
&lt;br&gt;&amp;gt; the gtk headers.
&lt;/div&gt;&lt;br&gt;You can get the entry with gtk_bin_get_child(). &amp;nbsp;At least that's what
&lt;br&gt;the reference docs say.
&lt;br&gt;&lt;br&gt;Yeti
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;gtk-app-devel-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26690778&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Clearing-GtkComboBoxEntry-tp26688307p26690778.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26688307</id>
	<title>Clearing GtkComboBoxEntry</title>
	<published>2009-12-07T19:52:02Z</published>
	<updated>2009-12-07T19:52:02Z</updated>
	<author>
		<name>Steve Harrington-3</name>
	</author>
	<content type="html">I have an application using GtkComboBoxEntry with a simple 2-column 
&lt;br&gt;int/char * ListEntry model. &amp;nbsp;If the user enters data in the box (as 
&lt;br&gt;opposed to using a pull-down selector) I can access the index with
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;gtk_combo_box_get_active( GTK_COMBO_BOX(W) );
&lt;br&gt;and the text with
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;gtk_combo_box_get_active_text (GTK_COMBO_BOX(W));
&lt;br&gt;&lt;br&gt;The index is -1 as expected and the text is the text that what was entered.
&lt;br&gt;The question is: &amp;nbsp;How do I clear the text field when I have finished 
&lt;br&gt;with it.
&lt;br&gt;&amp;nbsp;From the FAQ and other documentation it seems that I should be able to 
&lt;br&gt;access the actual GtkEntry widget within the GtkComboBoxEntry widget, 
&lt;br&gt;get the GtkEntryBuffer, and clear it with 
&lt;br&gt;gtk_entry_buffer_delete_text(). &amp;nbsp;None of these buffer functions/headers 
&lt;br&gt;are marked as depreciated but also none of them are my version of the 
&lt;br&gt;gtk headers (/usr/include/gtk-2.0/gtk/gtkentry.h) or anywhere else in 
&lt;br&gt;the gtk headers.
&lt;br&gt;_______________________________________________
&lt;br&gt;gtk-app-devel-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26688307&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Clearing-GtkComboBoxEntry-tp26688307p26688307.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26682690</id>
	<title>RE: GtkGLExt (was Re: Gtk 3.0)</title>
	<published>2009-12-07T11:26:11Z</published>
	<updated>2009-12-07T11:26:11Z</updated>
	<author>
		<name>sbaka</name>
	</author>
	<content type="html">&lt;br&gt;Well... this seems to turn on a few flames... so let me put some of this to rest.
&lt;br&gt;For anyone to say OpenGL is &amp;quot;niche&amp;quot;, and does not apply to everyday apps, I again remind you of iChat and the OS X Panel. Granted it has only recently found prominence in the desktop but it is quickly making way as OGL hardware acceleration becomes standardize (has been for some time). 
&lt;br&gt;To look back at the past decade and say &amp;quot;look desktops are all 2D&amp;quot;, not realizing it has to do with memory and CPU/GPU issues, which are no longer issues is simply wrong.
&lt;br&gt;The next decade of desktops, more importantly GUI (Graphical USER &amp;lt;-- hello!!! Interfaces) WILL have a blinding array of 3D widgets which will be like eye candy to most users, and as they see it they will want it more and more. 
&lt;br&gt;I do NOT work at a facility which requires 3D visualization to accomplish its tasks, but users are starting to ask and want. &amp;quot;Can I do a walkthrough of our warehouse to see how much material I have?&amp;quot;, &amp;quot;Can we have a little computerized white box, with a virtualized pallet to do color matching in?&amp;quot; This has NOTHING to do with scientific engineering or &amp;quot;niche&amp;quot; market. It has to do with the future of interface design. I work in a ink manufacturing plant, and by that argument, we should mix it all by hand, since that is how they did it 5000 years ago! 2D is NOT the end of all GUIs. It simply is not! R2 space can not hold as much date/widgets/whatever as R3 even if the axis were infinite! they (users) want 3D buttons that pop, role, jump, and wink at them too. They want there pictures to start bending, bouncing, and getting all organic on them. 
&lt;br&gt;To say that GTK does NOT need OGL, is to say they sun is not going to rise in the morning. To say that GTKGLext (a great tool to be sure) is good enough, is to slap a hand in the face of all of use who see where this is going. 
&lt;br&gt;The greatest problem with the linux community (one I myself am having to learn about) is this indelible ego that the data and function has to be correct and nothing else. Sorry.... if the user can not visually keep up or understand what you present, it won't make a difference how good the app works in the back, it IS the eye candy that gets the user to use it. GtkTreeview in 3D? I can thing of a dozen categorization applications in seconds.
&lt;br&gt;&lt;br&gt;FYI - OS X is a FreeBSD engin, with NextStep as its windowing system. It uses OGL IN the windowing system (quartz / composer), and it is the hottest desktop on the market. No one, and I mean no one, has even come close!
&lt;br&gt;And lets not forget all the work that is being done on Compiz.... why? For the masochism of it?!? No! Because that is where the future of desktop are, in 3D space!
&lt;br&gt;IMMHO, if Gtk is to keep up, as the cross platform interface it promises to be, it will need OGL to be fully modularized or integrated somehow. I don't even think GtkGLExt is that far, other than the OS X side of it, which with demand will certainly improve.
&lt;br&gt;P.S.the comment: &amp;quot; Ah. You are such a loser. Go away.&amp;quot;, has no business on this forum, the point is a good one, and your minimization of it, a poor show of understanding.
&lt;br&gt;&lt;br&gt;&amp;nbsp;EMAILING FOR THE GREATER GOOD
&lt;br&gt;Join me
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Date: Sat, 5 Dec 2009 19:48:06 +0100
&lt;br&gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26682690&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;yeti@...&lt;/a&gt;
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26682690&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jose.carlos.pereira@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: Re: GtkGLExt (was Re: Gtk 3.0)
&lt;br&gt;&amp;gt; CC: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26682690&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On Sat, Dec 05, 2009 at 04:22:36PM +0000, Carlos Pereira wrote:
&lt;br&gt;&amp;gt; &amp;gt; We must atract more scientifc/engineering applications for Linux and &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;gt; GTK, because this is exactly the kind of stuff that enterprises and &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;gt; universities are demanding.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; If we have fantastic operating systems and desktop environments in the &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;gt; free software world, but most of the scientific/engineering aplications &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;gt; only run in Windows/Mac OS X, people will be forced to use them, even if &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;gt; they would rather prefer to use Linux/BSD... I have many friends in this &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;gt; situation...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm afraid you explain it from your viewpoint. &amp;nbsp;But looking at your
&lt;br&gt;&amp;gt; reasoning from the `desktop' viewpoint there are troubles.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 1) Objective. &amp;nbsp;There will never ever be a scientific `killer app'.
&lt;br&gt;&amp;gt; Every little branch of science, or even an individual scientific
&lt;br&gt;&amp;gt; problem, has specific needs. &amp;nbsp;Hence the applications are inherently
&lt;br&gt;&amp;gt; scattered and each individual app is used only by a small group of
&lt;br&gt;&amp;gt; people. &amp;nbsp;Even the `universal' commerical tools such as Matlab are far
&lt;br&gt;&amp;gt; from being universally used [among scientists]. &amp;nbsp;This makes hard to see
&lt;br&gt;&amp;gt; sci/eng apps matter *at all*.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 2) Subjective. &amp;nbsp;Do your graphs have round corners and include the user's
&lt;br&gt;&amp;gt; IM status? &amp;nbsp;Can your data acquistion software synchronize the data with
&lt;br&gt;&amp;gt; an iPod? &amp;nbsp;Are your reports summarized to 140 characters and sent to
&lt;br&gt;&amp;gt; Twitter? &amp;nbsp;No? &amp;nbsp;Does your app help people with some difficult to
&lt;br&gt;&amp;gt; understand and much more difficult to solve problems instead of
&lt;br&gt;&amp;gt; facilitating idle chit-chat while consuming power for visual effects?
&lt;br&gt;&amp;gt; Ah. &amp;nbsp;You are such a loser. &amp;nbsp;Go away.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Yeti
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; gtk-app-devel-list mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26682690&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;&lt;/div&gt;&amp;nbsp;		 	 &amp;nbsp; 		 &amp;nbsp;
&lt;br&gt;_______________________________________________
&lt;br&gt;gtk-app-devel-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26682690&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/GtkGLExt-%28was-Re%3A-Gtk-3.0%29-tp26632591p26682690.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26665960</id>
	<title>Re: getting GDK_GRAB_NOT_VIEWABLE for keyboard grab</title>
	<published>2009-12-06T07:33:04Z</published>
	<updated>2009-12-06T07:33:04Z</updated>
	<author>
		<name>Artur Galjamov</name>
	</author>
	<content type="html">Hi!
&lt;br&gt;&lt;br&gt;Maybe your window isn't mapped yet from X (or just Gdk) perspective, so no
&lt;br&gt;grabs are possible. You must wait GDK_MAP event -- try to connect-after
&lt;br&gt;&amp;quot;map-event&amp;quot; of object-&amp;gt;window and grab there. Must solve your problem, IMHO.
&lt;br&gt;&lt;br&gt;Most Gtk methods are not synchronous -- fullscreen() and show_all() just
&lt;br&gt;queue operations into Gdk or send X requests and return.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Artur
&lt;br&gt;&lt;br&gt;&lt;br&gt;06.12.09, 16:12, &amp;quot;Thura&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26665960&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;thurahlaing06@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I am trying to grab keyboard for my application window, and getting return
&lt;br&gt;&amp;gt; value &amp;quot;3&amp;quot; (GDK_GRAB_NOT_VIEWABLE) &amp;nbsp;...
&lt;br&gt;&amp;gt; Any clue?
&lt;br&gt;&amp;gt; Here is my code.
&lt;br&gt;&amp;gt; gtk_window_fullscreen (GTK_WINDOW(object-&amp;gt;window));
&lt;br&gt;&amp;gt; gtk_widget_show_all (GTK_WIDGET(object-&amp;gt;window));
&lt;br&gt;&amp;gt; int retval = gdk_keyboard_grab (object-&amp;gt;window-&amp;gt;window, FALSE,
&lt;br&gt;&amp;gt; GDK_CURRENT_TIME);
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; gtk-app-devel-list mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26665960&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;&lt;/div&gt;_______________________________________________
&lt;br&gt;gtk-app-devel-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26665960&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/getting-GDK_GRAB_NOT_VIEWABLE-for-keyboard-grab-tp26662987p26665960.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26664756</id>
	<title>Re: how to set gtkeventbox to respect background image</title>
	<published>2009-12-06T04:59:03Z</published>
	<updated>2009-12-06T04:59:03Z</updated>
	<author>
		<name>Luiz Rafael Culik Guimaraes-4</name>
	</author>
	<content type="html">&amp;nbsp;Dear Friends
&lt;br&gt;&lt;br&gt;&amp;nbsp;How to make gtk_event_box with an label inside respect the background image
&lt;br&gt;&amp;nbsp;defined on the window.
&lt;br&gt;&amp;nbsp;Other controls on same window like radios, checkbox and buttons, apear
&lt;br&gt;&amp;nbsp;correct on the image background
&lt;br&gt;&lt;br&gt;&amp;nbsp;i create the background with the follow
&lt;br&gt;&lt;br&gt;&amp;nbsp;void SetWindowBackImage(GtkFixed box, char * szFileName, int x, int y, int 
&lt;br&gt;h , int w )
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;GtkWidget * hCtrl;
&lt;br&gt;&amp;nbsp; &amp;nbsp;GdkPixbuf * handle = gdk_pixbuf_new_from_file( szFileName, NULL );
&lt;br&gt;&amp;nbsp; &amp;nbsp;GdkPixbuf * pHandle= alpha2pixbuf( handle, 16777215 );
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;hCtrl = gtk_image_new_from_pixbuf(pHandle);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;if ( box )
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; gtk_fixed_put( box, hCtrl, x,y);
&lt;br&gt;&amp;nbsp; &amp;nbsp;gtk_widget_set_size_request( hCtrl,h,w );
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&lt;br&gt;&amp;nbsp;and the label i create with
&lt;br&gt;&lt;br&gt;&amp;nbsp;void CreateLabel(GtkFixed box, char * cTitle, int x, int y, int h , int w )
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp;GtkWidget * hCtrl, * hLabel;
&lt;br&gt;&amp;nbsp; &amp;nbsp;GtkFixed * box;
&lt;br&gt;&amp;nbsp; &amp;nbsp;GdkPixbuf * handle ;
&lt;br&gt;&amp;nbsp; &amp;nbsp;GdkPixbuf * pHandle;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; hCtrl = gtk_event_box_new();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; cTitle = hwg_convert_to_utf8( cTitle );
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; hLabel = gtk_label_new( cTitle );
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; g_free( cTitle );
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; gtk_container_add( GTK_CONTAINER(hCtrl), hLabel );
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; g_object_set_data( (GObject*) hCtrl, &amp;quot;label&amp;quot;, (gpointer) hLabel );
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp;if ( box )
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; gtk_fixed_put( box, hCtrl, x,y);
&lt;br&gt;&amp;nbsp; &amp;nbsp;gtk_widget_set_size_request( hCtrl,h,w);
&lt;br&gt;&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&lt;br&gt;&amp;nbsp;Regards and thanks in advance
&lt;br&gt;&amp;nbsp;Luiz Rafael
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;gtk-app-devel-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26664756&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-how-to-set-gtkeventbox-to-respect-background-image-tp26664756p26664756.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26662987</id>
	<title>getting GDK_GRAB_NOT_VIEWABLE for keyboard grab</title>
	<published>2009-12-06T00:12:53Z</published>
	<updated>2009-12-06T00:12:53Z</updated>
	<author>
		<name>thura</name>
	</author>
	<content type="html">I am trying to grab keyboard for my application window, and getting return
&lt;br&gt;value &amp;quot;3&amp;quot; (GDK_GRAB_NOT_VIEWABLE) &amp;nbsp;...
&lt;br&gt;Any clue?
&lt;br&gt;&lt;br&gt;Here is my code.
&lt;br&gt;&lt;br&gt;gtk_window_fullscreen (GTK_WINDOW(object-&amp;gt;window));
&lt;br&gt;gtk_widget_show_all (GTK_WIDGET(object-&amp;gt;window));
&lt;br&gt;&lt;br&gt;int retval = gdk_keyboard_grab (object-&amp;gt;window-&amp;gt;window, FALSE,
&lt;br&gt;GDK_CURRENT_TIME);
&lt;br&gt;_______________________________________________
&lt;br&gt;gtk-app-devel-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26662987&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/getting-GDK_GRAB_NOT_VIEWABLE-for-keyboard-grab-tp26662987p26662987.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26658203</id>
	<title>Re: GtkGLExt (was Re: Gtk 3.0)</title>
	<published>2009-12-05T10:48:06Z</published>
	<updated>2009-12-05T10:48:06Z</updated>
	<author>
		<name>David Nečas (Yeti)-2</name>
	</author>
	<content type="html">On Sat, Dec 05, 2009 at 04:22:36PM +0000, Carlos Pereira wrote:
&lt;br&gt;&amp;gt; We must atract more scientifc/engineering applications for Linux and &amp;nbsp;
&lt;br&gt;&amp;gt; GTK, because this is exactly the kind of stuff that enterprises and &amp;nbsp;
&lt;br&gt;&amp;gt; universities are demanding.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If we have fantastic operating systems and desktop environments in the &amp;nbsp;
&lt;br&gt;&amp;gt; free software world, but most of the scientific/engineering aplications &amp;nbsp;
&lt;br&gt;&amp;gt; only run in Windows/Mac OS X, people will be forced to use them, even if &amp;nbsp;
&lt;br&gt;&amp;gt; they would rather prefer to use Linux/BSD... I have many friends in this &amp;nbsp;
&lt;br&gt;&amp;gt; situation...
&lt;br&gt;&lt;br&gt;I'm afraid you explain it from your viewpoint. &amp;nbsp;But looking at your
&lt;br&gt;reasoning from the `desktop' viewpoint there are troubles.
&lt;br&gt;&lt;br&gt;1) Objective. &amp;nbsp;There will never ever be a scientific `killer app'.
&lt;br&gt;Every little branch of science, or even an individual scientific
&lt;br&gt;problem, has specific needs. &amp;nbsp;Hence the applications are inherently
&lt;br&gt;scattered and each individual app is used only by a small group of
&lt;br&gt;people. &amp;nbsp;Even the `universal' commerical tools such as Matlab are far
&lt;br&gt;from being universally used [among scientists]. &amp;nbsp;This makes hard to see
&lt;br&gt;sci/eng apps matter *at all*.
&lt;br&gt;&lt;br&gt;2) Subjective. &amp;nbsp;Do your graphs have round corners and include the user's
&lt;br&gt;IM status? &amp;nbsp;Can your data acquistion software synchronize the data with
&lt;br&gt;an iPod? &amp;nbsp;Are your reports summarized to 140 characters and sent to
&lt;br&gt;Twitter? &amp;nbsp;No? &amp;nbsp;Does your app help people with some difficult to
&lt;br&gt;understand and much more difficult to solve problems instead of
&lt;br&gt;facilitating idle chit-chat while consuming power for visual effects?
&lt;br&gt;Ah. &amp;nbsp;You are such a loser. &amp;nbsp;Go away.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Yeti
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;gtk-app-devel-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26658203&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gtk-app-devel-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/GtkGLExt-%28was-Re%3A-Gtk-3.0%29-tp26632591p26658203.html" />
</entry>

</feed>
