Re: Template Widgets inside another GtkBuilder file

2015-10-07 Thread Victor Aurélio Santos
So the really question becomes, how to get `g_type_ensure` generated in output code when subclassing Widgets in Vala ? 2015-10-05 17:54 GMT-03:00 Victor Aurélio Santos : > Emmanuele, > >> In order to do that, you should use `g_type_ensure()` inside the > instance

Filechooserbuttons and gtk_widget_set_sensitive

2015-10-07 Thread Roger Matthews
To someone willing to help, 1) Following the example Listing 4.10 of the GTK+ Development book filechooserbuttons.c I have created a filechooser button and label, which are attached to a grid rather than a box. When clicked a "dialogue" appears, I can then navigate directories to the

gtk_text_buffer_delete ?

2015-10-07 Thread Pierre Wieser
Hello, On the application I'm currently working on [1], I want limit the size of the text entered in a GtkTextBuffer to those saved in the DBMS, so 4096 chars. I so connected to the 'changed' signal of the GtkTextBuffer, and the handler is : static void on_notes_changed( GtkTextBuffer *buffer,

Re: gtk_text_buffer_delete ?

2015-10-07 Thread Pierre Wieser
> On the application I'm currently working on [1], I want limit the size of the > [...] I omit the application link, for reference ;) [1] https://github.com/trychlos/openbook/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: gtk_text_buffer_delete ?

2015-10-07 Thread Jim Charlton
On 15-10-07 04:14 AM, Pierre Wieser wrote: Hello, On the application I'm currently working on [1], I want limit the size of the text entered in a GtkTextBuffer to those saved in the DBMS, so 4096 chars. I so connected to the 'changed' signal of the GtkTextBuffer, and the handler is : static

Re: gtk_text_buffer_delete ?

2015-10-07 Thread Stefan Salewski
On Wed, 2015-10-07 at 13:14 +0200, Pierre Wieser wrote: > Hello, > > On the application I'm currently working on [1], I want limit the size > of the > text entered in a GtkTextBuffer to those saved in the DBMS, so 4096 > chars. Seen that: http://www.gtkforums.com/viewtopic.php?t=1012 Very

Re: gtk_text_buffer_delete ?

2015-10-07 Thread Stefan Salewski
On Wed, 2015-10-07 at 13:14 +0200, Pierre Wieser wrote: > I so connected to the 'changed' signal of the GtkTextBuffer, Maybe try connecting to insert-text signal -- changed signal may be emitted again when you delete. See http://stackoverflow.com/questions/2791035/how-do-i-set-buffer-limit-for

Re: gtk_text_buffer_delete ?

2015-10-07 Thread Pierre Wieser
On Wed, 2015-10-07 at 15:05 +0200, Stefan Salewski wrote: > On Wed, 2015-10-07 at 13:14 +0200, Pierre Wieser wrote: >> Hello, >> >> On the application I'm currently working on [1], I want limit the size >> of the >> text entered in a GtkTextBuffer to those saved in the DBMS, so 4096 >> chars.