Questions tagged [gtkmm]

gtkmm is the official C++ interface for the GUI library GTK+.

is a GUI library written in C, gtkmm is its official binding to C++.

External links:

958 questions
3
votes
3 answers

GtkTreeView alternate row color

I can't set the alternate row color of a TreeView, I don't know why doesn't works. This the code MainWindow::MainWindow(BaseObjectType* cobject, const Glib::RefPtr& refGlade) : Gtk::ApplicationWindow(cobject),…
luna80
  • 173
  • 2
  • 12
3
votes
2 answers

Packaging an application with dependencies under Windows

I've written an application using gtkmm and libpcap under Linux. Of course, gtkmm depends on GTK+. After porting it to Windows and attempting to distribute it, the feedback I received is that there are too many dependencies to install. The user has…
Stephen
  • 4,176
  • 2
  • 24
  • 29
3
votes
1 answer

How do I get rid of blury pixels in Gtkmm?

When I draw a picture and zoom way in, GTKmm (or Cairo I suppose) blends the pixels together to make a nice smooth image. I really hate that. It's terrible for debugging. I want to see clear crisp pixels with sharp images. I want to see nice little…
user1145922
  • 339
  • 3
  • 13
3
votes
1 answer

gtkmm: how to create popover menu without builder?

I am trying to make GTK3 application with C++. Because it is my first gtkmm app and it is really small, I am avoiding builder and placing widgets with plain code. I have such snippet for titlebar's menu button: Gtk::MenuButton mbtn; Gtk::Menu…
bergentroll
  • 87
  • 1
  • 9
3
votes
1 answer

Gtk+: How to set the cursor of a window from a Cairo context?

I have written the following code to set the cursor of a Gtk::Window from a Cairo::Context. When I run the program and move the cursor into the window, the cursor changes to a horizontal black line at the top, followed by some undefinable white…
Oswald
  • 31,254
  • 3
  • 43
  • 68
3
votes
2 answers

Clean up the code of a GTKmm application

I started a GTKMM application about 6 months ago and it's reached the point where everything works and I actually use it daily. It's essentially a database application that reads in data files from another application, generates graphs and lets you…
Brandon
  • 668
  • 8
  • 22
3
votes
0 answers

Gtk3 move (child) window on wayland

I use gtk3 and gtkmm. I want to move a window on wayland. Hoever it doesn't seem to be possible. I tried using Gtk::Window::move method and Gdk::Window::move method. I also set type_hint on Gtk::Window and called Gtk::Window::set_transient_for. None…
ArchLinuxTux
  • 840
  • 1
  • 11
  • 28
3
votes
2 answers

Exit a gtkmm application properly

I am creating a GUI using Glade, and am able to connect signals to it properly. I am trying to have a button that simply quit the application. The doc is not very clear on how to do so. On some forums you should do: Gtk::Main::quit(); Which does…
user96649
  • 471
  • 1
  • 5
  • 22
3
votes
1 answer

How can I use gtk_window_set_transient_for ()?

I am using the library gtkmm. My code is almost perfect, I think because it compiles and I can execute it. But in the terminal when I clicked on open a file in my software that I made with gtkmm I can read this message : Gtk-Message: GtkDialog…
Paul Hain
  • 35
  • 1
  • 5
3
votes
1 answer

How to grey out a gtkmm menu item that cannot be clicked on

I am using the library gtkmm in C++. This is the part of the code where I define "Open": Gtk::ImageMenuItem *menuOpen = Gtk::manage(new Gtk::ImageMenuItem(Gtk::Stock::OPEN)); menuFile->append(*menuOpen); I want "Open" to be greyed out if I cannot…
3
votes
1 answer

Get gnome-3-like windows with custom headerbar

My Problem I'm working with Anjuta/gtkmm/C++ and want to design a program that looks similar to other gnome 3 programs. This includes that big draggable Headerbar with custom buttons on it and other visual effects like the bigger background shadow…
Scindix
  • 1,254
  • 2
  • 15
  • 32
3
votes
1 answer

Why does gtkmm row get_value not work?

With this code: size = 100; uint64_t work; row.get_value(3, work); cout << "value was " << work << endl; work += size; cout << "value set to " << work << endl; row.set_value(3, work); row.get_value(3, work); cout << "value now " << work << endl; I…
jcz
  • 39
  • 4
3
votes
1 answer

gtkmm: How to detect arrow key is pressed

What event can i connect to in order to detect arrow keys being pressed when a user is in a window. So far i have tried to connect via on_key_press_event and i checked keyval, hardware_keycode, and state. #include #include…
v010dya
  • 5,296
  • 7
  • 28
  • 48
3
votes
0 answers

gtkmm Gtk::Layout negative child position not setting its absolute position

The description of Gtk::Layout says Infinite scrollable area containing child widgets and/or custom drawing I put a Gtk::Layout inside a Gtk::ScrolledWindow, gave the Gtk::Layout a size of 400x400 and then placed a Gtk::Button at (450, 450), but…
Samik
  • 575
  • 2
  • 8
  • 19
3
votes
1 answer

CMake error with gtkmm

I'm using Debian 8 and have installed libgtkmm-3.0 (and also -dev). Now I have a very simple program using gtkmm, basically a Hello World: main.cpp: #include "../include/BrowserWindow.class.hpp" #include int main(int argv,…
itpdg
  • 316
  • 1
  • 3
  • 10