ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi guys, I'm writing my own poker timer program to use when my friends come over to play poker all night at my house. We play cash and tournaments.
I have a simple layout that I modeled after several poker timers I saw on Google Images. Anyways. I can't seem to find any example or tutorial or anything on my book or online about how to add widgets like buttons, labels and boxes to a frame.
My program will have 3 frames (3x1) and each will have boxes to hold buttons and labels and combo boxes. At the bottom of the program I will have 3 more buttons outside the frames in a 1x3 box to control the flow of the program.
Any help or reference would be appreciated, I'm teaching myself Gtk+ from "Beginning Linux Programming" and "Foundations of Gtk+ Development"
Also, this is not a homework problem, if anybody would like to collaborate I would be very happy to share what I have and it would be my first project so I'm very excited about getting this app to work.
Hey guys, I figured out how to add the widgets to the frames. Apparently, you just add them to the frame as if it were a GtkContainer. But now the frame labels are not showing up.
Also, I can't find anything on how to make text on buttons big, like the font and the style (bold, italic or underline).
This is what I have so far, and it compiles with no problems (using -g -Wall and -pedantic). But I get segmentation fault when I try to initialize my boxes:
Can't see why this is a problem, because the program was compiling and running fine before, all I did was add the frames into a final box and add the box to the window before showing and now its not running.
Never mind, the problem was before the box initialization, I had forgotten to initialize the last frame. Now my code works, and I'm going to start implementing the actions for the buttons and combo boxes.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.