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
0
votes
1 answer

c++ gtkmm 3.0 How to access argc, argv

I'm trying to get the right structure for my first gtk application which will simulate a board game. I have a single command line argument which is a filename. I'm going to read this file within my gtk application. How do I access the argument…
Alex_B
  • 1,651
  • 4
  • 17
  • 24
0
votes
1 answer

Setting a Gtk::ComboBoxText to non editable

how would I set a Gtk::ComboBoxText to non-editable, what I mean here is there may be say 10 selections in the combo box to choose from how can I make it so your simply not allowed to choose something other than the text I have set it to? (this…
0
votes
1 answer

Error Creating Gtk::Dialog

I am trying to create a dialog when a button is cicked. The function that is called when the button is clicked is this: void clicked(){ const std::string title = "Title"; Gtk::Dialog *m_dialog(title, false); } I keep getting an error on the last…
foobar5512
  • 2,470
  • 5
  • 36
  • 52
0
votes
1 answer

gtkmm is it possible to add same widget to a vbox more than once

Here is my problem. I have this form of information I want to display. I have already made a vbox in another class that contains this information. The information is about their additional work experience for related to the job they are applying…
VickiT05
  • 101
  • 2
  • 10
0
votes
1 answer

GTKMM Error: Void Value Not Ignored As it Ought to Be

I am trying to create a simple window in GTKMM that contains a box. I've got the window part working, but I can't get my box code to work. I am following along with this tutorial I think the tutorial is a little bit dated because Anjuta (the IDE I'm…
foobar5512
  • 2,470
  • 5
  • 36
  • 52
0
votes
1 answer

Trace/breakpoint trap (core dumped) Gtkmm

This Is HomeWork Hey im using Gtkmm for an Assignment and i have been doing well with it all and all however im getting an odd problem in a function i use to fill a TreeView u get the error (out:21185): GLib-ERROR **:…
0
votes
1 answer

Gtkmm TreeView: Accessing dynamically added columns

I'm currently doing this to add numCols columns to a TreeView (ColumnRecord columns): Gtk::TreeModelColumn* c; for( int i = 0; i < numCols; i++ ) { c = new Gtk::TreeModelColumn(); columns.add(*c); …
idlackage
  • 2,715
  • 8
  • 31
  • 52
0
votes
1 answer

Building a graphical user interface for an existing large C++ code

I'm currently developing on a tool with some existing large C++ code. I'm currently thinking about using a model-view-controller (MVC) design. The model should contain all the C++ code. The view is what the user sees and the controller is basically…
Bear
  • 35
  • 2
  • 4
0
votes
1 answer

How to connect a Toolbar Button to a Slot of another Widget?

I'am trying some tutorials with Glade and GTKmm. For now I have a Main Window with a Toolbar. This is my Main Menu. Every Toolbarbutton should trigger the "show" and "hide" option of a widget. In this case I have a widget called Overview. So, how do…
Fat Noodle
  • 105
  • 1
  • 8
0
votes
1 answer

gtkmm linker error

Hello stackoverflow:), I am compiling a basic gui program that takes sums of 2 doubles and prints them out. My code is actually pretty simple, I will first post the 3 files that I compile by commandline "g++ main.cc examplewindow.cc -o main…
user2047328
0
votes
1 answer

in Gtkmm how to retrieve data from combo boxes

I'm currently writing an application in which I have 3 combo boxes for day/year/month, I'm wondering how to retrieve the data currently selected from the combo box and save it when a button is pressed. the problem here is simply seeing what is…
0
votes
1 answer

Acessing fields in a gtkmm ComboBoxText

I am having some troubles using the get_active text function on the ComboBoxText instances in my program. The error i get is (out:4258): GLib-CRITICAL **: g_utf8_collate: assertion `str2 != NULL' failed. What are some of the possible issues i…
0
votes
2 answers

gtk+ Image draw over image in c++

I would like to draw a simple (red) line over an image with gtkmm (in c++). I have the image : Gtk::Image *image which is displayed in my window. But I would like the line to change of position (I mean : draw another line) when a function is called.…
Jav
  • 1,445
  • 1
  • 18
  • 47
0
votes
1 answer

GTKmm Hello World Compile error

so i am making a basic hello world app in c++ here is the code View.h #ifndef VIEW_H #define VIEW_H #include #include class View : public Gtk::Window { public: View(); virtual…
0
votes
1 answer

Gtkmm getting label color

I do not have a code error, I have just looked everywhere and cannot figure out how to do this. I want to get the color of a Gtk::widget, the Gtk::label. I can override the color of a label like this: l.override_color( c, l.get_state_flags() ); ,…
chris ryan
  • 45
  • 3