Relative Content

Tag Archive for cgtkgtk4

Issue with GTK boxes/action bars

I have 2 boxes and actionbars. when I add box2 as a child to the window. When I remove the code that adds the box2 to the window, these errors appear when I try to run the compiled app. No errors at compilation but there are errors when I try to run the app.

gtk_widget_set_size_request() not functioning as intended

I’ve created an action_bar widget with 3 children, a label and 2 buttons. I’ve tried multiple width and height dimensions in the gtk_widget_set_size_request() method. No matter the dimensions I put the action bar ALWAYS is the same height no matter the size of the window itself.

How to Apply CSS to GTK Application Elements Using CSS Selectors

I’m developing a C++ GTK application and I’m trying to implement a dark mode theme using CSS. I’ve created a style.css file with the necessary styles, but I’m having trouble applying these styles to specific GTK elements such as GtkTextView and GtkSidebar.