Questions tagged [gtkada]
19 questions
3
votes
1 answer
How do I install GtkAda?
Hello I'm a beginner using Ada and I already installed GNAT Studio and I really wanted to create a simple GUI but I don't have any idea on how to Install GtkAda. I'm trying to look videos on Youtube but unfortunately, there was nothing. Also I don't…

Amben Uchiha
- 431
- 2
- 10
2
votes
2 answers
signals with GtkAda
My concern is that I created a callback function, which should display a Gtk_Entry when we click on the Gtk_Button but is that when I click on the button nothing happens. I don't understand.
File.ads
Package Test is
Type T_Test is record
…
2
votes
1 answer
How do you connect event listeners with GtkAda Builder?
In using GtkAda.Builder under GtkAda 20.1, I can't figure out how to capture event data.
with Gtk.Widget; use Gtk.Widget;
with Gtk.Main; use Gtk.Main;
with Gtkada.Builder; use…

Jlotty
- 21
- 2
2
votes
1 answer
gtkada: recompile with -fPIC
(Crossposting from comp.lang.ada)
I am following the plugin scheme from the GNAT examples, using GTK. So I need gtkada, and for proper tasking with that, gtkada_contributions. From the Adacore site I grabbed the actual versions (2020) of (binary)…

hreba
- 107
- 1
- 8
2
votes
1 answer
How to distribute a GtkAda application under Windows?
I'm having troubles distributing a GtkAda application on Windows. I made an executable (with Windows native compiler) and tried using it on another Windows computer. However, I get errors about dlls missing.
I tried distributing with my .exe three…

Lyaaaaaaaaaaaaaaa
- 77
- 9
1
vote
0 answers
Gtkada widget from scratch
I don’t have a lot of hope for this but anyway.
I need to create a widget to select a range (like a scale widget but with two cursors, one for the lower bound and another for the upper bound). This needs to be built "from scratch". According to the…

Louis Etienne
- 1,302
- 3
- 20
- 37
1
vote
1 answer
Add a button in a callback
I can't make my callback function work. I have created a button which when clicked removes the first button and displays the second button. When I click the button, it removes the first button but does not show the second button. here is the…

Dimitri Emmanuel
- 31
- 2
1
vote
1 answer
How to connect a callback function to its signal
i created two buttons a that display a Gtk_Radio_Button and a button that display a GtK_label but when i click on buttons nothing happens. I don't understand why it doesn't work yet the code compiles and runs without finding any…

Dimitri Emmanuel
- 31
- 2
1
vote
0 answers
Add radio button in a callback with GtkAda
here i start with GtkAda but i met a problem that i don't understand. I give you a summary of the code.
file.ads
With Gtk.Window; Use Gtk.Window;
With Gtk.Table; Use Gtk.Table;
With Gtk.Widget; use Gtk.Widget;
With…

Dimitri Emmanuel
- 31
- 2
1
vote
2 answers
How do I change the text of a label after clicking a button using GtkAda
I have this code which has 1 label and 3 buttons. What I want is to change the text of the label if I press a certain button. If I click the first button the label text will change to "Hello" and if I click the second button the label text will…

Amben Uchiha
- 431
- 2
- 10
1
vote
1 answer
GtkAda Simple Window: pixbuf loaders or the mime database could not be found
with Gnat-2020-Community version and Gtkada I try to create a simple gui on Debian 10.2 (x86_64 GNU/Linux).
The project is based on GtkAda's "Simple window" project from the "Create Project from Template" dialog (I assume that the code runs out of…

Manfred Hinter
- 25
- 6
1
vote
1 answer
How to create a file chooser with GtkAda?
I'm trying to create an application with GtkAda and need the user to select a file from his PC. However, I found no way to create a file chooser without leading to this error: raised PROGRAM_ERROR : unhandled signal.
Using Glade 3.22.1
I tried…

Lyaaaaaaaaaaaaaaa
- 77
- 9
1
vote
1 answer
unknown project file: "gtkada"
I got GPS community edition, but it can't create GtkADA projects. So I cloned and built GtkADA using the GPR projects, but when I try to open a GtkADA example or start a new GtkADA project from GPS, I get the error:
unknown project file:…

trayres
- 522
- 2
- 6
- 18
0
votes
0 answers
GTKADA GUI library : Drawing line and boxes
I am trying to create a GUI as attached image using GTKADA Library, using gtkada.style package by calling below mentioned procedure,
Draw_Line(Cr:Cairo.Cairo_Context;Color:Gdk.Color.Gdk_Color;X1,Y1,X2,Y2:Glib.Gint)
How to define the value for Cr :…

Angel R
- 1
- 1
0
votes
0 answers
How to handle a GTK.CELL_RENDERER_TOGGLE into a GTK.TREE_STORE to activate/desactivate each row independiently
I have a TREE_MODEL in GTK. One of the columns is a GTK.CELL_RENDERER_TOGGLE to determine which rows are selected. I've tried to configure a Callback to activate/desactivate each toggle independiently but i have only achieved a callback that…

Eduardo
- 1