Re: Can g_file_monitor_file () report events from before it was created?

2011-09-07 Thread Peter Clifton
On Wed, 2011-09-07 at 03:18 +0100, Peter Clifton wrote: > --=-RBhkyZn6RRXPH6Tyg7fR > Content-Type: text/plain; charset="UTF-8" > Content-Transfer-Encoding: quoted-printable > > On Tue, 2011-09-06 at 01:42 +0100, Peter Clifton wrote: > > --=3D-1PQvPQuhjpa09GLvyb

Re: Can g_file_monitor_file () report events from before it was created?

2011-09-06 Thread Peter Clifton
On Tue, 2011-09-06 at 01:42 +0100, Peter Clifton wrote: > --=-1PQvPQuhjpa09GLvybFI > Content-Type: text/plain; charset="UTF-8" > Content-Transfer-Encoding: quoted-printable > > Hi, > > I'm working on some code to monitor for file changes in our applicatio

Can g_file_monitor_file () report events from before it was created?

2011-09-05 Thread Peter Clifton
what I might be doing wrong here? (PS. I got the feeling GLib / GIO is using polling, not anything clever like inotify to spot changes - is this correct?) Best regards, -- Peter Clifton Electrical Engineering Division, Engineering Department, University of Cambridge, 9, JJ Thomson Avenue, Ca

Re: Menu bar items without icon indent

2008-12-31 Thread Peter Clifton
el as the child of the bin in the creation method. > > You may also need to override size_allocate and size_request method. Thanks! I've been away, but I will try to see if there is any interest in getting additional flexibility in the stock GtkMenuItems, along the lines of Tristan Van

Menu bar items without icon indent

2008-12-24 Thread Peter Clifton
ustom subclass again, right?) -- Peter Clifton Electrical Engineering Division, Engineering Department, University of Cambridge, 9, JJ Thomson Avenue, Cambridge CB3 0FA Tel: +44 (0)7729 980173 - (No signal in the lab!) ___ gtk-app-devel-list mailin

Re: Scroll wheel events not working under WindowsXP

2008-11-23 Thread Peter Clifton
On Sun, 2008-11-23 at 08:02 +0100, Giuseppe Torelli wrote: > On Fri, Nov 21, 2008 at 9:10 PM, Peter Clifton <[EMAIL PROTECTED]> wrote: > > On Linux, and built for Win32, tested under wine, scrolling works. > > Hi, > I want to develop an application both under Linux and

Re: Scroll wheel events not working under WindowsXP

2008-11-21 Thread Peter Clifton
Uncanny,.. its almost the same model laptop as in the bug report. Thanks! > -- Peter Clifton Electrical Engineering Division, Engineering Department, University of Cambridge, 9, JJ Thomson Avenue, Cambridge CB3 0FA Tel: +44 (0)7729 980173 - (No signal in the lab!)

Scroll wheel events not working under WindowsXP

2008-11-21 Thread Peter Clifton
on WinXP? Does anyone have any working example-code which shows scroll events working on Win32? Can you think of any GTK using applications on Win32, which definitely do have working scroll wheel handling? Best regards, -- Peter Clifton Electrical Engineering Division, Engineering Department

Re: Best practices for laying out controls

2008-05-13 Thread Peter Clifton
aid I'm not so current on GTK stuff that I can offer a more detailed explanation. Best regards, -- Peter Clifton Electrical Engineering Division, Engineering Department, University of Cambridge, 9, JJ Thomson Avenue, Cambridge CB3 0FA Tel: +44 (0)7729 980173 - (No signal in the lab!) __

Re: Keep window on top?

2008-01-11 Thread Peter Clifton
indow.html#gtk-window-set-transient-for -- Peter Clifton Electrical Engineering Division, Engineering Department, University of Cambridge, 9, JJ Thomson Avenue, Cambridge CB3 0FA Tel: +44 (0)7729 980173 - (No signal in the lab!) ___ gtk-app-devel-l

Re: Switch contents in the same window

2007-10-01 Thread Peter Clifton
vance, Take a look at using a GtkNotebook for your "pages", and hide the tabs. You should then be able to introduce buttons at the bottom of your dialog to pragmatically switch between the pages. This has been a common way to implement GtkAssistant like interfaces before the

Re: Switch contents in the same window

2007-10-01 Thread Peter Clifton
suite I'm writing for has to build on GTK 2.4+ (accepting some features may be degraded / absented with #ifdef). Regards, Peter Clifton ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Theory of good signal/event API design?

2007-09-25 Thread Peter Clifton
hen write API which facilitates that. The tricky thing is getting this right - especially if your ABI / API has to be set in stone (like that for released versions of GTK + GLib). I'm sure there are many things which would be changed in GTK if they were written again now without the re

GtkAssistant ending with a custom button

2007-09-09 Thread Peter Clifton
pplication I'm working on is in Pygtk, so is this an issue of incomplete binding, is it impossible in general, or have I missed how to do it? Kind regards, -- Peter Clifton Electrical Engineering Division, Engineering Department, University of Cambridge, 9, JJ Thomson Avenue, Cam

Re: Gobject constructor question

2007-09-04 Thread Peter Clifton
ULL; And you'll have saved the parent class in the class init function: myobject_parent_class = g_type_class_peek_parent (klass); -- Peter Clifton Electrical Engineering Division, Engineering Department, University of Cambridge, 9, JJ Thomson Avenue, Cambridge CB3 0FA Tel: +44 (0)77

Re: dynamic gtk_list_store

2007-08-21 Thread Peter Clifton
ent locally if you have the appropriate -doc packages installed for your distribution. Regards, -- Peter Clifton Electrical Engineering Division, Engineering Department, University of Cambridge, 9, JJ Thomson Avenue, Cambridge CB3 0FA Tel: +44 (0)7729 980173 - (No signal in the lab!) ___

Re: Creating object based on GObject

2007-08-13 Thread Peter Clifton
ct method of GObject, In your construct function: 1. Chain up to the parent (GObject) class's construct method 2. Act upon your construct properties. Regards, -- Peter Clifton Electrical Engineering Division, Engineering Department, University of Cambridge, 9, JJ Thomson Avenue, Cambrid

GtkTextView insensitive color?

2007-07-27 Thread Peter Clifton
normal text color, however when the widget is made insensitive, it stays red. Is this behaviour intentional? If so, what is the cleanest way to override it and get a "standard" (theme dependent) insensitive color. -- Peter Clifton Electrical Engineering Division, Engineering D

Re: Not show selection of a tree view column

2007-07-26 Thread Peter Clifton
On Thu, 2007-07-26 at 15:06 +0100, Dave Howorth wrote: > Peter Clifton wrote: > > I think a brand new widget might be needed - one which has a more > > "table" like rendering model. > > I presume a GtkTable isn't table-like enough :) GtkTable is a containe

Re: Not show selection of a tree view column

2007-07-26 Thread Peter Clifton
I think a brand new widget might be needed - one which has a more "table" like rendering model. It might be possible to start from GtkTreeView's code - but its a scary "C" file, and I quickly realised I didn't have the time / knowledge to write the new widget myself. Re

Vector screen capture with Cairo

2007-04-02 Thread Peter Clifton
ed to ensure the program starts up and displays its-self as intended for the screen shot, then exits. I realise this isn't "easy", but does any one have any suggestions how it might be possible to proceed? Regards, -- Peter Clifton Electrical Engineering Division, Engineering De

Re: spec for accelerator string

2007-02-16 Thread Peter Clifton
nable to parse accelerator '=' for action > 'MenuItem139' > (pcb:4288): Gtk-WARNING **: Unable to parse accelerator '/' for action > 'MenuItem187' > (pcb:4288): Gtk-WARNING **: Unable to parse accelerator '[' for action > 'MenuItem188' > (pcb:4288): Gtk-WARNING **:

Re: Autocompletion with GtkComboBoxEntry

2006-11-05 Thread Peter Clifton
On Sun, 2006-11-05 at 00:03 -0500, David Hampton wrote: > On Sun, 2006-11-05 at 02:52 +0000, Peter Clifton wrote: > > Hi, > > > > I have been browsing the docs (and Google) to see if I can use an > > GtkEntryCompletion with a GtkComboBoxEntry widget. So far, it l

Autocompletion with GtkComboBoxEntry

2006-11-04 Thread Peter Clifton
t explicitly. Would gtk_bin_get_child( GTK_BIN( combo_box_entry_pointer ) return the entry widget? Any help or advice on how to auto-complete with a GtkComboBoxEntry would be much appreciated. Regards, -- Peter Clifton Electrical Engineering Division, Engineering Department, University of Cambridge,

Rendering bug after GTK+2.10.1 with GtkTreeViewCellRenderer

2006-10-17 Thread Peter Clifton
rsor = 0} Since I'm not particularly familiar with the (perhaps necessarily) complicated way which GTK handles widget allocation, I'm not sure exactly what is going on here. Any thoughts? Is it a bug in GTK, or simply a new "feature" which needs working around since bug #335012 wa