GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Fri Dec 19, 2014 5:32 pm

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: GnomeDateEdit
PostPosted: Thu Apr 03, 2008 8:06 pm 
Offline

Joined: Thu Apr 03, 2008 8:03 pm
Posts: 3
I have seen references to this problem elsewhere with no responses.

gnome_date_edit_new() - used manually (outside a glade project) insists on displaying the time. Is this a locale issue or rc issue or something else.

I am manually building a gtk app and it works - with time Sad .

The OS is CentOS 4.5

gnome-desktop-2.0......2.8.0
glib-2.0........................2.4.7
gmodule-2.0.................2.4.7
gdk-pixbuf-2.0..............2.4.13
gdk-x11.2.0..................2.4.13
gtk+-2.0.......................2.4.13
libgnome-2.0.................2.8.0
libgnomeui-2.0...............2.8.0


Why is it ok in a glade generated environment and not elsewhere?

Thanks
Jim

P.S.
Nothing else is a problem, this works easily but not as expected.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 06, 2008 2:58 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 3:07 am
Posts: 384
Location: Fairfax, Virginia
What is the code that you are using to create the widget?[/code]

_________________
Andrew Krause

Foundations of GTK+ Development: Buy now for only $31.49!


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 06, 2008 3:54 pm 
Offline

Joined: Thu Apr 03, 2008 8:03 pm
Posts: 3
I have tried - out of desperation - any number of permutations.

Currently it is ..

wnds[curwid].ed[i].edt = gnome_date_edit_new ((time_t) 0, FALSE, FALSE);

I swear this has something to do with the gnome application environment - which I am not using and glade built apps do.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 06, 2008 6:27 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 3:07 am
Posts: 384
Location: Fairfax, Virginia
Try calling this after creating the widget:

Code:
gnome_date_edit_new_with_flags ((time_t) 0, !GNOME_DATE_EDIT_SHOW_TIME);

_________________
Andrew Krause

Foundations of GTK+ Development: Buy now for only $31.49!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 07, 2008 5:02 am 
Offline

Joined: Thu Apr 03, 2008 8:03 pm
Posts: 3
Thanks guys - there are some issues with this outside a gnome application environment I suspect. A while back, there was talk of a libegg datetime thingy, I have no idea what ever happened to that.

I am this close (holding fingers very close together :) ), to jumping to kdev. Which in itself is a problem as I have married an app suite of hundreds of thousands of lines to libgnome printing functionality. (And parts to libxml2) and am trying (I am very close) to coupling it entirely to a gtk+ UI.

(This is something I dont want to do but may have to). Not just over this control, but I am honestly freaked out over the (apparent) mass deprecations with no clear explanations. (I have asked about that - <enable>crickets sound effects</enable>). Disturbing.

P.S.
openldev - I guess I dont have that (version dependent probably). I have been down the new flags road also.

That raises another issue actually. I am forced to use a centrist disto - centos4 - while nearly everyone develops for versions that centrist disto's not only dont have but never will have. I am not allowed to 'customize' centos4. That (which is very common actually) causes me (and probably other developers) major heartburn. I understand people want to use the 'latest' ... I do ... but I and thousands (or more) just arent allowed to.

Anjuta comes to mind. I love it ... but cant use a version newer that 1.24a (probably wrong - but something like that). Why they needed to build a tool that is incompatible with CentOS is just beyond me.

Enough whining .. sorry. I really do appreciate the work people have done.

Thanks for the help.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 10, 2008 2:29 pm 
Offline
GTK+ Geek

Joined: Wed Dec 19, 2007 9:15 pm
Posts: 61
Location: Glasgow, Scotland
JimBodkins wrote:
A while back, there was talk of a libegg datetime thingy, I have no idea what ever happened to that.


It exists, but I can't assure that it works - http://svn.gnome.org/viewvc/libegg/trun ... /datetime/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group