Re: Fingerprint Scanner for GDM Login

2005-03-29 Thread David Necas (Yeti)
On Tue, Mar 29, 2005 at 09:08:13PM -0500, Tony Freeman wrote: > I'd like to be able to use my fingerprint to log into my linux > machine. > > Because GDM is the login manager for our favorite desktop, IMHO what should be done in the first place, is a PAM authentication module, so that this mech

widget aspect ratio control

2005-03-29 Thread Jonathan Brandmeyer
How can I control the aspect ratio of a child widget (specifically, a descendant of GtkDrawingArea)? I've tried gtk_window_set_geometry_hints(), but rather than constrain the geometry of the child GtkWidget I pass this function, it applies the aspect ration constraint to the top-level GtkWindow.

Fingerprint Scanner for GDM Login

2005-03-29 Thread Tony Freeman
I'd like to be able to use my fingerprint to log into my linux machine. Because GDM is the login manager for our favorite desktop, I was wondering if you have heard of a project that is trying to interface the new fingerprint scanners with GDM (or similar login managers). I'd really be interest

Re: int problems on amd64

2005-03-29 Thread Peter Bloomfield
On 03/29/2005 10:06:59 AM, Roland Smith wrote: [ snip ] I'm using GTK+ on FreeBSD 5.3 amd64 without problems. Any program casting int to void* is b0rken. ...which is why glib provides these: Peter ___

Re: int problems on amd64

2005-03-29 Thread Roland Smith
On Tue, Mar 29, 2005 at 05:28:35PM +0200, Fabio Rotondo wrote: > Roland Smith wrote: > > > I'm using GTK+ on FreeBSD 5.3 amd64 without problems. Any program > > casting int to void* is b0rken. > > you are perfectly right, but suppose you have to write a qsort callback: > > void qsort(void *base,

Re: int problems on amd64

2005-03-29 Thread Liam R. E. Quin
On Tue, 2005-03-29 at 17:28 +0200, Fabio Rotondo wrote: > Roland Smith wrote: > [...] suppose you have to write a qsort callback: > > void qsort(void *base, size_t nmemb, size_t size, int(*compar)(const > void *, const void *)); > > suppose the "const void *" is actually an int value. By downcast

Re: gtk_calendar_get_date once again

2005-03-29 Thread Hubert Sokołowski
On Tue, 29 Mar 2005 10:16:33 -0300 John Coppens <[EMAIL PROTECTED]> wrote: > And the manual says in > > http://developer.gimp.org/api/2.0/gtk/GtkCalendar.html#GtkCalendar-struct > > - > Note > > Note that month is zero-based (i.e it allowed values are 0-11) while > selected_day

Re: int problems on amd64

2005-03-29 Thread Fabio Rotondo
Roland Smith wrote: > I'm using GTK+ on FreeBSD 5.3 amd64 without problems. Any program > casting int to void* is b0rken. you are perfectly right, but suppose you have to write a qsort callback: void qsort(void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *)); suppose

Re: int problems on amd64

2005-03-29 Thread Roland Smith
On Tue, Mar 29, 2005 at 01:37:47PM +0200, Fabio Rotondo wrote: > Hi, > > I have just switched to a brand new AMD 64, but I am experiencing some > problems in compiling my software. > Basically, gcc complains that my "int" is smaller than "void *" and that > the cast is dangerous. I know that int i

Re: text view, text buffer, text iter problems

2005-03-29 Thread Martyn Russell
On Mon, 2005-03-28 at 11:18 +0200, stanks wrote: > Hi Hi, > Saving file (problem): > Call for gtk_text_buffer_get_iter_at_offset so i get start iter and then > again gtk_text_buffer_get_iter_at_offset for end iter. After that > gtk_text_buffer_get_text with already saved text buffer handle and

Re: gtk_calendar_get_date once again

2005-03-29 Thread John Coppens
On Tue, 29 Mar 2005 13:15:06 +0200 (CEST) "Hubert Sokolowski" <[EMAIL PROTECTED]> wrote: > >> > >> but why it returns (GDateMonth - 1) ? > >> It is not compatible with GDate ! > > > > It does not return the date in GDate format anyway, so the > > issue of incompatibility does not arise. > > As the

Re: gtk_calendar_get_date once again

2005-03-29 Thread John Coppens
On Tue, 29 Mar 2005 13:15:06 +0200 (CEST) "Hubert Sokolowski" <[EMAIL PROTECTED]> wrote: > >> > >> but why it returns (GDateMonth - 1) ? > >> It is not compatible with GDate ! > > > > It does not return the date in GDate format anyway, so the > > issue of incompatibility does not arise. > > As the

Re: Disabling menu And Modal dialog boxes!

2005-03-29 Thread Stefan Kost
hi, Everything you seen on screen is a widget. The probelm is lies in theay of the context menu create. Normal gtk apps create menus it self and not from xml. Thus we have the widget pointers. I've not writte applets do far, so I don't know the function that can help you. Maybe you can find it b

Adjusted Behaviour... Was: storing and recovering settings

2005-03-29 Thread Freddie Unpenstein
> I've done this by having an abstract settings class and two > implementation (GConfSettings and PlainfileSettings). Based on the > configure run that checks if gconf is available or not, the > respective subclass will be used. The plainfile settings can > e.g. use the ini-file routines of glib.

int problems on amd64

2005-03-29 Thread Fabio Rotondo
Hi, I have just switched to a brand new AMD 64, but I am experiencing some problems in compiling my software. Basically, gcc complains that my "int" is smaller than "void *" and that the cast is dangerous. I know that int is just 32bit while "void *" on AMD64 is 64bit but this is quite a problem :

Re: storing and recovering settings

2005-03-29 Thread Claudio Polegato Jr.
Oh, great! I will update my codes to use glib now. -- []'s Claudio Polegato Junior Um peregrino de problemas; Um pergaminho de soluções. Iago Rubio escreveu: On Tue, 2005-03-29 at 04:42 +, Claudio Polegato Jr. wrote: Hi. You can try CIniFile. Home page: http://inifile.sourceforge.net S

Re: gtk_calendar_get_date once again

2005-03-29 Thread Hubert Sokolowski
>> >> but why it returns (GDateMonth - 1) ? >> It is not compatible with GDate ! > > It does not return the date in GDate format anyway, so the > issue of incompatibility does not arise. > As the prototype says, > void gtk_calendar_get_date(GtkCalendar*, guint*, guint*, guint*); > > I guess it is u

Re: gtk_calendar_get_date once again

2005-03-29 Thread Raj
but why it returns (GDateMonth - 1) ? It is not compatible with GDate ! It does not return the date in GDate format anyway, so the issue of incompatibility does not arise. As the prototype says, void gtk_calendar_get_date(GtkCalendar*, guint*, guint*, guint*); I guess it is upto the user to get the

Re: gtk_calendar_get_date once again

2005-03-29 Thread Hubert Sokolowski
>> 0 is a G_DATE_BAD_MONTH, but gtk_calendar_get_date returns month from >> range 0-11. > > gtk_calendar_get_date stores the month in a user specified location. > Maybe it uses GDateMonth for internal use and then returns the value > (GDateMonth - 1) to the user. but why it returns (GDateMonth - 1

Re: gtk_calendar_get_date once again

2005-03-29 Thread Raj
0 is a G_DATE_BAD_MONTH, but gtk_calendar_get_date returns month from range 0-11. gtk_calendar_get_date stores the month in a user specified location. Maybe it uses GDateMonth for internal use and then returns the value (GDateMonth - 1) to the user. Regards, Raj

gtk_calendar_get_date once again

2005-03-29 Thread Hubert Sokolowski
Hi! according to http://developer.gnome.org/doc/API/2.0/glib/glib-Date-and-Time-Functions.html#GDateMonth 0 is a G_DATE_BAD_MONTH, but gtk_calendar_get_date returns month from range 0-11. What I am missing here? regards hs ___ gtk-app-devel-list mailin

Re: storing and recovering settings

2005-03-29 Thread Iago Rubio
On Tue, 2005-03-29 at 04:42 +, Claudio Polegato Jr. wrote: > Hi. > > You can try CIniFile. >Home page: http://inifile.sourceforge.net >Source forge: http://sourceforge.net/projects/inifile/ This functionality is in recent glib >= 2.6 http://developer.gnome.org/doc/API/2.0/glib/glib-