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.
I setup a grid with 4 buttons.
Clicking a button should add a message to the grid below the button.
If I click any button, the window resizes to reflect the size of the message.
However buttons 1-3 show no message.
If I click the 4th button the message is displayed correctly.
If I only have 1 button then everything works correctly.
This is fixed by calling gtk_grid_insert_next_to prior to gtk_grid_attach_next_to
Your post is not clear to me and you seem to ask no specific question. From your description it seems that everything is working correctly. Could you please edit your post to be specific about the problem you are having, if any, and how the observed behavior differs from what you expect. And please tell us what you have done to try to identify the cause.
You may find it helpful to review the Site FAQ for guidance in posting your questions and general forum usage. Especially, read the link in that page, How To Ask Questions The Smart Way. The more effort you put into understanding your problem and framing your questions, the better others can help!
It is necessary to call gtk_grid_insert_next_to before calling gtk_grid attach_next_to. If this is not done and the following row has content then gtk documentation says the results are undefined. So gtk works as per documentation.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.