GtkEntry not editable #272

Closed
opened 2025-09-08 00:17:18 +02:00 by albilu · 1 comment
albilu commented 2025-09-08 00:17:18 +02:00 (Migrated from github.com)

Having an issue with GtkBuilder loading ui file.
GtkEntry or GtkTextView are not editable! Even though object has editable property:

<child>
              <object class="GtkEntry" id="nameField">
                <property name="visible">True</property>
                <property name="can-focus">True</property>
                <property name="editable">True</property>
                <property name="placeholder-text" translatable="yes">Enter your name</property>
                <layout>
                  <property name="column">1</property>
                  <property name="row">0</property>
                </layout>
              </object>
            </child>

I can't type anthing in Name text field and comment text area:

Image

Here is attached the demo app. Run with:

JAVA_HOME=/usr/lib/jvm/java-23-openjdk-amd64 mvn clean compile exec:java

gtk-javagi.tar.gz

Having an issue with GtkBuilder loading ui file. GtkEntry or GtkTextView are not editable! Even though object has editable property: ```xml <child> <object class="GtkEntry" id="nameField"> <property name="visible">True</property> <property name="can-focus">True</property> <property name="editable">True</property> <property name="placeholder-text" translatable="yes">Enter your name</property> <layout> <property name="column">1</property> <property name="row">0</property> </layout> </object> </child> ``` **I can't type anthing in Name text field and comment text area:** <img width="501" height="690" alt="Image" src="https://github.com/user-attachments/assets/51be538b-c9c7-479d-96dd-1d49eb9871b6" /> Here is attached the demo app. Run with: ``` JAVA_HOME=/usr/lib/jvm/java-23-openjdk-amd64 mvn clean compile exec:java ``` [gtk-javagi.tar.gz](https://github.com/user-attachments/files/22198805/gtk-javagi.tar.gz)
jwharm commented 2025-09-09 21:22:02 +02:00 (Migrated from github.com)

This is a problem with your ui file. When I remove all of the "can-focus" property lines, everything works as expected.

This is a problem with your ui file. When I remove all of the "can-focus" property lines, everything works as expected.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
java-gi/java-gi#272
No description provided.