Re: gtk_text_buffer_delete ?

2015-10-08 Thread Pierre Wieser
> - Original Message - >> From: "Stefan Salewski" >> Sent: Wednesday, October 7, 2015 7:36:05 PM > >> On Wed, 2015-10-07 at 13:14 +0200, Pierre Wieser wrote: >>> I so connected to the 'changed' signal of the GtkTextBuffer, >>

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 tho

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 https://mai

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,

Modifying the border color of a GtkEntry

2014-05-21 Thread Pierre Wieser
Hi all, In the Gtk3 application I am writing, I'd wish show to the user the erroneous fields by setting the border color of the GtkEntry widgets to a specific (e.g. red) color. What I've done: - allocate a new CSSProvider, loads my .css file and try to apply it: void my_utils_entry_set_valid( Gt

Re: GtkApplicationWindow and its menubar

2014-05-21 Thread Pierre Wieser
> Test you stuff in python first, then move it to c/c++ if need be. This > allows for rapid testing of what you really need to do. Whatever you > are trying to do, it is possible, for complete menubar, menus, menuitems > on any platform. Windowing APIs for windows, linux, mac all can handle > t

GtkApplicationWindow and its menubar

2014-05-11 Thread Pierre Wieser
Hi all, I am starting with a small app which will handle documents. I want this app has two different menubars : - a first one when there is no document - another one when the document is opened. I have tried to use gtk_application_set_menubar with two different GMenuModel, but no luck: the GtkA

GtkAssistant : bug or feature ?

2011-11-22 Thread Pierre Wieser
Hi all, When working with GtkAssistant, I used to find the widgets of the pages as children of the GtkAssistant by doing a recursive search starting from the GtkAssistant container. But, as of Gtk+ 3.2 (at least), I have found that GtkAssistant is now an empty container, and widgets are to be sea

Re: Select root folder in GtkfileChooser

2010-04-09 Thread Pierre Wieser
thinkpad gtk+]$ pkg-config --modversion gtk+-2.0 glib-2.0 > 2.18.9 > 2.22.5 > > If you try more than a slash like '//' or '///' it's works, it's > perfectly legal for naming '///' as root dir. ;p > > Ardhan > &g

Select root folder in GtkfileChooser

2010-04-08 Thread Pierre Wieser
Hi In Nautilus-Actions, I need to let my users select folders, including root folder ('/'). In a GtkFileChooserDialog, there is obviously no way to select the root folder by clicking on it, because it has no parent. But when I enter "/" in the location entry, and click on Open button, I get the

Gtk+: multi-threaded or not ?

2010-02-02 Thread Pierre Wieser
Hi all, Reading this list, I see some questions which talk about "threads": main thread, event thread, and so on. I was not conscious Gtk+ was multithreaded. I'm conscious of asynchronous code with the mail loop and idle function (which are rather in Glib, I believe ?), but really not of multi

Read-only controls

2009-12-09 Thread Pierre Wieser
Hi, Is there a standard Gtk way of defining controls as read-only at runtime ? In my user interface, I have entries, radio and toggle buttons, and a combo list ; I would set them as read-only when the current item cannot be updated for a reason or another. For now, I set all these controls as in

Re: GtkTreeStore and row deletion

2009-09-02 Thread Pierre Wieser
- "David Nečas" a écrit : > On Wed, Sep 02, 2009 at 02:56:12PM +0200, pwie...@trychlos.org wrote: > > - "Kristian Rietveld" a écrit : > > > > > I don't fully get the problem you are describing. If I understand > it > > > correctly, you have a tree model where each node points to a > G

Re: GnomeVFS migration

2009-07-27 Thread Pierre Wieser
- "Johannes Schmid" a écrit : > Hi! > > > > In the process of migrating from GnomeVFS to GVFS, I've to replace > gnome_vfs_uri_get_host_name() and gnome_vfs_uri_get_user_name() > functions. > > g_get_host_name() and g_get_user_name() are your friends. Please > don't > ask such questions o

Re: GtkAssistant vs. GtkFileChooserWidget

2009-07-26 Thread Pierre Wieser
> Date: Sun, 12 Jul 2009 13:56:57 +0200 (CEST) > From: Pierre Wieser > Subject: GtkAssistant vs. GtkFileChooserWidget > To: gtk-app-devel-list@gnome.org > > Hi all, > > I'm building a GtkAssistant which embeds a GtkFileChooserWidget > in one of the content page

Re: GtkAssistant flow question

2009-07-26 Thread Pierre Wieser
> Date: Sun, 12 Jul 2009 13:25:48 +0200 (CEST) > From: pwie...@trychlos.org > Subject: GtkAssistant flow question > To: gtk-app-devel-list@gnome.org > > Hi, > > I have a simple GtkAssistant with : > - one intro page > - two content pages > - one confirm page > - one summary page. > > All works f

GtkAssistant vs. GtkFileChooserWidget

2009-07-12 Thread Pierre Wieser
Hi all, I'm building a GtkAssistant which embeds a GtkFileChooserWidget in one of the content pages. My problem is when I run the assistant for the second times, the GtkfileChooserWidget doesn't display at all. Below the sample code which reproduces the problem : enum { ASSIST_PAGE_INTRO