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
22
votes
4 answers

libstdc++: DSO missing from command line

I am having trouble implementing a gtkmm application's makefile. I have implemented a simple solution, however, I am getting the following error: g++ -Wall -std=c++11 pkg-config gtkmm-3.0 --cflags -c main.cpp cc main.o pkg-config gtkmm-3.0…
wolx
  • 378
  • 1
  • 5
  • 18
19
votes
2 answers

How to disable buttons in GTK3

Windows API has a function called EnableWindow that disables controls so user can't interact with them any more. Is there an equivalent for GTK3 or GTK3++?
felknight
  • 1,383
  • 1
  • 9
  • 25
18
votes
2 answers

Problems compiling gtkmm

OS: Fedora 14 Compiler: g++ (GCC) 4.5.1 20100924 (Red Hat 4.5.1-4) I installed gtkmm24-devel from repository via yum. To make sure the install went as planned I decided to try one of the examples on the page. #include int main(int argc,…
t3hb4tman
  • 508
  • 1
  • 3
  • 7
17
votes
2 answers

Reassigning Smart Pointers

Generally speaking do smart pointers such as std::unique_ptr and Glib::RefPtr delete their object when reassigned to point at another object, given they are the only pointers holding that given object (obviously implied in case of std::unique_ptr)?
avicenna.x
  • 303
  • 1
  • 2
  • 9
16
votes
3 answers

Glade treeview liststore data not visible, can't imagine why

I've got 99% 44/100 of everything working. I have a glade file, I use gtkbuilder to render it and voila it comes up. Everything except the data in my treeview liststore. I notice by default the tree view is not visible, and setting that to true…
stu
  • 8,461
  • 18
  • 74
  • 112
16
votes
5 answers

How to get native windows decorations on GTK3 on Windows 7+ and MSYS2

I am trying to port my application from linux to windows and I have a problem with theming. In linux this works out of a box, just compile it and application is using good theme and looks native. I have installed gtkmm3 and gtk3 in MSYS2 and I am…
kracejic
  • 723
  • 1
  • 6
  • 17
12
votes
7 answers

Should I learn GTK+ or GTKMM?

I am a C# programmer who started using ubuntu about 2 years ago. I'm wanting to learn GUI programming in either C or C++. I don't really like mono, it tends to crash on my system. I have a basic understanding of C++. I have never worked in C, but it…
Kredns
  • 36,461
  • 52
  • 152
  • 203
12
votes
1 answer

Why does Glibmm/Gtkmm not include the unary dereferencing operator, *, for Glib::RefPtr?

Glib::RefPtr allows dereferencing via '->' but not via '*'. Why is this? I can of course do: class Foo {}; Glib::RefPtr fooPtr; fooPtr.operator->(); The docs specifically mention that they left operator*() out. But they do not offer any…
Catskul
  • 17,916
  • 15
  • 84
  • 113
10
votes
2 answers

gtk(mm) 3 button background color change

I'm trying to change the background color of a button to red but it doesn't seem to work. I paste the example code. If anybody can tell me how to fix my code please help. #include // g++ simple.cc -o simple `pkg-config gtkmm-3.0 --cflags…
giuspen
  • 1,365
  • 3
  • 20
  • 33
9
votes
2 answers

How to use CssStyleProvider in Gtkmm3

I'm programming in c++ with gtkmm3. I want to change some fonts in my program. I read all the things about CssStyleProvider, StyleContext in gtkmm documentation and also in gtk+ documentaion but i couldn't make it work and couldn't find any tutorial…
Gökhan Uras
  • 181
  • 1
  • 6
9
votes
1 answer

How do I add a custom gtkmm widget to glade?

I'm writing a custom widget using gtkmm, and I haven't been able to get it to work in glade. (The widget itself is barely functional; it does work, and I want to get it to work in glade before moving on to the next step.) Glade finds the widget, but…
bstpierre
  • 30,042
  • 15
  • 70
  • 103
8
votes
2 answers

Eclipse and Gtkmm - "undefined reference to"

I use Eclipse and I wanted to use gtkmm in it. I have following code: #include #include int main(int argc, char *argv[]) { Gtk::Main kit(argc, argv); Gtk::Window mainWindow; Gtk::Button button("Click here"); …
m4tx
  • 4,139
  • 5
  • 37
  • 61
8
votes
1 answer

Is it possible to use GTK+ with C++?

I am choosing a GUI toolkit for C++ to learn. I have done some searching online and most people suggest GTKmm for C++ over GTK+. Despite that fact, I have seen some C++ applications made using GTK+. Therefore, I just want to know the specific…
phongvcao
  • 479
  • 3
  • 10
  • 15
8
votes
3 answers

use lambda in connection with sigc library

I want to use lambda expressions in connection with goocanvas in gtk++. For my understanding this means that I must be able to put my lambda in a sigc++ functor. I tried something like that: sigc::slot& ,…
Klaus
  • 24,205
  • 7
  • 58
  • 113
7
votes
3 answers

Something like .dll on Linux - how to get them?

I have program using gtkmm, gtkglextmm and exiv2. I want to include these libraries with the executable, because the app will not work if user doesn't has them on his/her system. On Windows .dll files solved the matter (I put them in the same…
Marco
  • 582
  • 1
  • 6
  • 17
1
2 3
63 64