LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-01-2006, 12:48 PM   #1
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Problem with frames in GTK+ - no spacing between frame and text entry


Hi all, I have a GUI that I've written in GTK+ and am having a small problem with frames. In each of these frames, I have a vertical box containing two horizontal boxes. These horizontal boxes contain labels and text entries. The problem is that there is no spacing between text entries at the bottom of the frame and the frame itself (see here for a screenshot). Is there a way that I can add some spacing? There was a post asking a similar thing (I think) on the GTK+ mailing list, but unfortunately it went unanswered .

All help appreciated!
 
Old 03-01-2006, 01:08 PM   #2
Jaqui
Member
 
Registered: Jan 2006
Location: Vancouver BC
Distribution: LFS, SLak, Gentoo, Debian
Posts: 291

Rep: Reputation: 36
in the options for the text entries you can specify positioning, moving them up slightly would create the space between them and the bottom of the frame.
 
Old 03-01-2006, 01:15 PM   #3
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Original Poster
Rep: Reputation: Disabled
Thanks for the reply. Where is this? I can't find anything relevant here. Edit: I can't find anything in the pages for GtkFrame, GtkHBox or GtkVBox either.

Last edited by Nylex; 03-01-2006 at 01:19 PM.
 
Old 03-01-2006, 01:26 PM   #4
Jaqui
Member
 
Registered: Jan 2006
Location: Vancouver BC
Distribution: LFS, SLak, Gentoo, Debian
Posts: 291

Rep: Reputation: 36
Depends on what tool you are using, I would assume that it is Glade for a GTK app. the Properties window Common tab, right at the top, two chek boxes that are unchecked that will allow shifting the widget positioning.
 
Old 03-01-2006, 01:32 PM   #5
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Original Poster
Rep: Reputation: Disabled
Nope, not using Glade, just Emacs.
 
Old 03-01-2006, 01:43 PM   #6
Jaqui
Member
 
Registered: Jan 2006
Location: Vancouver BC
Distribution: LFS, SLak, Gentoo, Debian
Posts: 291

Rep: Reputation: 36
then I'm not sure how you would go about access the widget properties.
 
Old 03-01-2006, 01:47 PM   #7
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Original Poster
Rep: Reputation: Disabled
Surely there should be something in the API reference? . Thanks anyway. Anyone else?
 
Old 03-01-2006, 01:48 PM   #8
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,897

Rep: Reputation: 578Reputation: 578Reputation: 578Reputation: 578Reputation: 578Reputation: 578
maybe you need to set the padding?
 
Old 03-01-2006, 02:01 PM   #9
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Original Poster
Rep: Reputation: Disabled
Genius, thanks!
 
  


Reply


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
gtk application tilte bar text problem iali Linux - General 0 02-15-2006 09:39 AM
text entry problem davidsrsb Slackware 16 11-29-2005 10:02 PM
Firefox: No Text in Frames. mooreted Slackware 6 12-07-2004 01:27 PM
Scribus: Text over two frames: Behaviour Bug or not? furryspider Linux - Software 2 09-04-2004 06:53 AM
GTK problem: no text in widgets phaidros Linux - Newbie 0 12-16-2003 03:16 AM

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

All times are GMT -5. The time now is 06:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration