diff options
author | Lucas Fryzek <lucas.fryzek@fryzekconcepts.com> | 2025-01-21 17:30:52 +0000 |
---|---|---|
committer | Lucas Fryzek <lucas.fryzek@fryzekconcepts.com> | 2025-01-21 17:30:52 +0000 |
commit | 8bd5b17906ac145fd35383bad413bca4aa342688 (patch) | |
tree | 64539142e5c48b0e0c1cb8cb4135070a89520a76 /src/gtk/chat.ui | |
parent | f3201c850ed6fa967074e0a07d9d017540ae69f4 (diff) |
chat: Attempt to add spell checking with a GtkSourceView widget
Does not currently work
Diffstat (limited to 'src/gtk/chat.ui')
-rw-r--r-- | src/gtk/chat.ui | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/src/gtk/chat.ui b/src/gtk/chat.ui index 05d23f2..33cb41f 100644 --- a/src/gtk/chat.ui +++ b/src/gtk/chat.ui @@ -90,26 +90,36 @@ <object class="GtkButton"> <property name="icon-name">mail-attachment</property> <style> + <class name="raised"/> <class name="image-button"/> </style> <signal name="clicked" handler="attach_file"/> </object> </child> <child> - <object class="GtkEntry" id="text_entry"> + <object class="GtkScrolledWindow"> + <property name="max-content-height">10</property> + <property name="margin-start">5</property> + <property name="margin-end">5</property> <property name="halign">fill</property> <property name="hexpand">True</property> <property name="hexpand-set">True</property> - <property name="width-request">50</property> - <property name="margin-start">5</property> - <property name="margin-end">5</property> - <signal name="activate" handler="entry_activate"/> + <property name="vscrollbar-policy">GTK_POLICY_EXTERNAL</property> + <style> + <class name="entry-frame"/> + </style> + <property name="child"> + <object class="GtkSourceView" id="text_entry"> + <property name="valign">center</property> + </object> + </property> </object> </child> <child> <object class="GtkButton"> <property name="icon-name">mail-forward</property> <style> + <class name="raised"/> <class name="image-button"/> </style> <signal name="clicked" handler="entry_activate"/> |