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
2 answers

Gtk::TextView with constant string

I am using Gtkmm 3+ and What I am trying to do is have the text buffer have the constant string "> " even if the user tries to delete it. In addition when the user pressed return it will automatically be there again. Basically have a constant string…
vis.15
  • 751
  • 8
  • 18
0
votes
2 answers

Handling "clicked" accelerator on a Gtk::ToggleToolButton (gtkmm)

I'm trying to connect up an accelerator to a Gtk::ToggleToolButton, unfortunately the "toggle" signal isn't 'activatable' and so you must connect to "clicked" instead like so: togglebutton->add_accelerator("clicked", ...etc..) This works, and fires…
Kazade
  • 1,297
  • 2
  • 15
  • 25
0
votes
1 answer

Focussing on child dialog if clicked on other window (may be parent)

I have a main window and several other dialog windows which open from the main window on button clicks. When the user clicks on the main window while the child dialog window is opened, i want the focus to be set to child window. The user must first…
Majid Khan
  • 111
  • 2
  • 14
0
votes
1 answer

Unexpected behaviour of textfields in gtkmm, strncpy

I have a structure as below typedef struct { char table_version_major[2]; char table_version_minor[2]; } SOFT_VER_DATA; #define Soft_Ver_Total_Datasets 1; I use the following function void prepare_Soft_Ver_File_for_Upload(void) { …
Majid Khan
  • 111
  • 2
  • 14
0
votes
4 answers

Setting up OpenGL on Linux for gtkmm and cross-compilation

I am starting learning OpenGL and I am not sure, how to set it up on (Ubuntu) Linux. I think that this could be a way: OpenGL is only a graphics language specification (or interface) and to properly use it I have to download some library (for the…
Petike
  • 707
  • 4
  • 13
  • 20
0
votes
1 answer

Passing Gtk::Window& parameter to Gtk::MessageDialog

I have a function in gtkmm in the main window which opens a message box on the Help->About selection. The function is as follow:- bool Main_window::on_about_selected(GdkEventButton *f_event) { Gtk::MessageDialog dialog(*this, "Msg Box…
Majid Khan
  • 111
  • 2
  • 14
0
votes
0 answers

Update a value through function, gtkmm

I have a function for adding a new profile as below. bool Main_window::add_new_profile(char* f_name_entered) { char* l_name_entered; // skipped some portion bool m_status = throw_m_dialog("Enter New Profile Name",l_name_entered); …
Majid Khan
  • 111
  • 2
  • 14
0
votes
1 answer

how can i get file dropped to which gtkmm image widget

.... std::vector listTargets; listTargets.push_back( Gtk::TargetEntry("STRING") ); listTargets.push_back( Gtk::TargetEntry("text/plain")…
Musher
  • 85
  • 1
  • 2
  • 7
0
votes
1 answer

How do i use set_focus_child to set focus to a text entry in gtkmm?

I have a dialog in which i ask the user to enter username and password. I match them with database. If the user field is empty, i show a message box telling the user that user id is blank. I want the focus to set to user id field. How do i do that…
Majid Khan
  • 111
  • 2
  • 14
0
votes
2 answers

How can you update the gtkmm gui screen from your c++ code after it is created

Can someone help to clear up the confusion of how to update a gui window without user input. In other words, I would like to be able to output text to either or both the console our the gui window. At present I can call the gui window (Window with a…
L. D. James
  • 1,679
  • 1
  • 22
  • 35
0
votes
1 answer

how to show the entry completion popup as soon as the text field has focus in gtk+ 3.2?

I have a Gtk Entry that uses a Entry Completion object. I have set it up to an extent. If I enter the minimum key length number of characters the completion popup shows me available choices. So far so good. Now what I want is that the text field…
Richard
  • 528
  • 1
  • 5
  • 15
0
votes
0 answers

gtkmm - drawing primitives (and text) on window with keeping an old content

I want to draw some primitives (for example lines or text) on given window with gtkmm (gdkmm / gdk) with keeping old content of this window. I guess that using DrawingArea widget may be no helpful because I need draw on the old pixbuf. Maybe I need…
kelsar
  • 108
  • 5
0
votes
1 answer

How can I get pkg-config to work within eclipse juno (Mac OS X)?

I try to get gtkmm running within eclipse. This is my makefile (without the cleaning): all : main.cpp @export PATH+=/opt/local/bin; @echo PATH=$(PATH); g++ -v `pkg-config gtkmm-2.4 --cflags` \ -O0 -g3 -Wall -S \ -o main.o main.cpp; g++ -v…
thwbh
  • 1
  • 2
0
votes
1 answer

gdkmm: how to destroy gdk window?

Status quo: I have a custom widget (MyWidget) with an event window. Problem: if I create, show and then, later, hide and destroy the widget I get the following message from the application: Gdk-WARNING **: losing last reference to undestroyed…
krokoziabla
  • 695
  • 1
  • 6
  • 21
0
votes
2 answers

Gtkmm 3.0: How to get user class data in on_draw method of DrawingArea

In my first Gtkmm 3.0 program, I’m having trouble with the program structure and getting access to my class data from a DrawingArea class. Based on a demo program from the gnome website (“Drawing thin lines”), I have a window class, a drawingArea…
Alex_B
  • 1,651
  • 4
  • 17
  • 24