LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-29-2012, 02:37 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 filesys, on a Marvell ARM CPU. kernel is 2.6.32.9.

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 li\
ne: assertion GTK_IS_ANCHORED (socket) failed.

Can anyone tell me why gtk_fixed_put is failing, when gtk_container_add works?
 
  


Reply



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
GtkSocket won't show in a GtkFixed mjoyce Linux - Embedded & Single-board computer 1 03-29-2012 05:01 PM
Conky won't show everything vockleya Linux - Software 4 03-30-2010 02:49 PM
KDE 3.2 won't show CD contents spookymulder825 Linux - Software 4 03-07-2005 07:52 PM
snortsnarf won't show ips moonloader Linux - Software 0 02-03-2004 11:51 AM
Gnome won't show up MandrakeDave Linux - Newbie 1 10-29-2003 06:57 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:22 PM.

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