LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Closed Thread
  Search this Thread
Old 03-29-2012, 02:28 PM   #1
mjoyce
LQ Newbie
 
Registered: Feb 2012
Posts: 8

Rep: Reputation: Disabled
GtkSocket won't show in a GtkFixed


I'm on Ubuntu 10.04, rootstock filesys, on a Marvell ARM CPU. The kernel is 2.6.32.9. And Gtk 2.0 (maybe 2.20?)

GtkWidget *fixed = gtk_fixed_new ();
gtk_widget_show( fixed );
socket = gtk_socket_new();
#if 1
// this line lets the code work
gtk_container_add( GTK_CONTAINER( window ), socket );
#else
// with this line, it fails to show the contents of the socket
gtk_fixed_put( GTK_FIXED( fixed ), socket, 0, 0 );
#endif
gtk_widget_show( socket );

I need to use the (non-working) gtk_fixed_put scheme, since I need to add multiple widgets to the window. I am getting a gtk critical error from the gtk_fixed_put line: assertion GTK_IS_ANCHORED (socket) failed.

Can anyone tell me why gtk_fixed_put is failing, when gtk_container_add works?
 
Old 03-29-2012, 05:01 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608
Please post your thread once and in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread should be closed because it is a duplicate of http://www.linuxquestions.org/questi...kfixed-937136/.
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Openbox won't show cursor benc1213 Arch 6 07-06-2011 11:38 PM
Conky won't show everything vockleya Linux - Software 4 03-30-2010 02:49 PM
Sata disk won't show up Ungluun Linux - Hardware 1 01-26-2007 07:32 PM
KDE 3.2 won't show CD contents spookymulder825 Linux - Software 4 03-07-2005 07:52 PM
Gnome won't show up MandrakeDave Linux - Newbie 1 10-29-2003 06:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 01:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration