GtkEntry — A single line text entry field
Questions tagged [gtkentry]
58 questions
0
votes
1 answer
gtk text entry receiving buffer from socket?
I made a simple window, using C and glade, with only a gtk textview and a gtk text entry, and at this moment my textview receives buffer/data from UDP socket, and it prints perfectly with the following command:
gtk_text_buffer_get_end_iter…

nightk
- 105
- 12
0
votes
1 answer
Vala GTK+. Issue with customized widget
I need to create a gtk.Entry which accepts only numbers. but I can't overwrite the key_press_event event in an heredited class. It only works if I use the original Entry by means of connect function.
What am I doing wrong?
using Gtk;
public class…

user3530611
- 3
- 1
0
votes
1 answer
How to set placeholder text in GtkEntry
I tried this example:
#include
#include
#include
GdkPixbuf *create_pixbuf(const gchar * filename) {
GdkPixbuf *pixbuf;
GError *error = NULL;
pixbuf = gdk_pixbuf_new_from_file(filename, &error);
…

Anshul sharma
- 11
- 1
0
votes
1 answer
GtkEntry manipulation
I'm trying to make a small program to manipilate data between GtkEntry fields. To do this I'm using global variables. But using g_print functions to show me the contents I get NULL data! What is wrong in my way?
#include
const gchar…

Renato_Rod
- 3
- 3
0
votes
2 answers
What are the differences between GtkEntry and GtkTextView?
Apart from GTextView being multiline and able to display text in different styles (font, color etc. using tags), what are other obvious differences between the two?

Aaron S
- 5,023
- 4
- 29
- 30
0
votes
1 answer
How to block GtkEntry context menu
I find GtkEntry has a default context menu
But I really do not want it, how can I disable it
I googled but no effective way found

Wiky
- 152
- 7
0
votes
1 answer
GtkEntry and "editing_done" signal
I have function to set DEVICE in gtk entry field:
gboolean device_entry_activate_cb (GtkWidget *widget, gpointer data)
{
const gchar *text;
text = gtk_entry_get_text (GTK_ENTRY (entry));
if (!strcmp( DEVICE, text )
return…

user1935430
- 243
- 6
- 13
0
votes
0 answers
GTK+, Glade and gtk_entry double click
Linux, libgtk2.0-cil-dev 2.12.10-2ubuntu4
Glade 3.12.1
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
I have GTK GUI created by means of Glade.
I have entry and button. User enters numbers and press button.
Entry is limited to 4 chars in length…

pugnator
- 665
- 10
- 27
0
votes
1 answer
Link a GtkEditable signal to GtkEntry
I am looking for a way of using the behaviour linked to gtk_editable_insert_text in GtkEntry. The latter does not have a signal emitting this sort of behaviour, and the closest I can get is using gtk_entry_activate, however this requires Enter to be…

boywithaxe
- 286
- 1
- 12
0
votes
1 answer
PyGtk: Scrollist with Entry, can I set an Id
I have a scroll list on my window that I am going to insert 2 entry for each row, I am trying to understand how I can catch the entry that has been changed and update my array with this value.
I will explain what is my code:
I have an array that has…

max246
- 568
- 2
- 5
- 11
0
votes
1 answer
gtk_widget_grab_focus() jumping to next field automatically?
I am creating a 'C' project with glade and gtk. I want a focus on a gtkentry field naming txt_abc and so I called the function:
gtk_widget_grab_focus (txt_abc);
There is another gtkentry widget just after txt_abc widget naming txt_def.
My problem…

Ravi Raj
- 13
- 5
0
votes
8 answers
Checking char with if
I really don't know why but that doesn't seem to work. Seems completely valid to me:
gchar *text = gtk_entry_get_text(entry);
if(text == "hello") {
//do sth
}
else {
//do sth else
}
Even when I type hello nothing happens but the code in…

Rrjrjtlokrthjji
- 602
- 2
- 10
- 26
-1
votes
1 answer
GTK Entry to Integer conversion
How do you get the text from a gtk entry widget and then convert that to an integer value. Notice in my code I include a wrapper struct called Window that contains pointers to widgets. In the main, I declare an instance of a Window and then build…

Matthew
- 3,886
- 7
- 47
- 84