GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

GnomeDateEdit

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
JimBodkins



Joined: 03 Apr 2008
Posts: 3

PostPosted: Thu Apr 03, 2008 8:06 pm    Post subject: GnomeDateEdit Reply with quote

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.
Back to top
openldev
Never Seen the Sunlight


Joined: 21 Sep 2005
Posts: 386
Location: Fairfax, Virginia

PostPosted: Sun Apr 06, 2008 2:58 pm    Post subject: Reply with quote

What is the code that you are using to create the widget?[/code]
Back to top
JimBodkins



Joined: 03 Apr 2008
Posts: 3

PostPosted: Sun Apr 06, 2008 3:54 pm    Post subject: Reply with quote

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.
Back to top
openldev
Never Seen the Sunlight


Joined: 21 Sep 2005
Posts: 386
Location: Fairfax, Virginia

PostPosted: Sun Apr 06, 2008 6:27 pm    Post subject: Reply with quote

Try calling this after creating the widget:

Code: (C)
1
gnome_date_edit_new_with_flags ((time_t) 0, !GNOME_DATE_EDIT_SHOW_TIME);
Back to top
JimBodkins



Joined: 03 Apr 2008
Posts: 3

PostPosted: Mon Apr 07, 2008 5:02 am    Post subject: Reply with quote

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.
Back to top
bruce89



Joined: 19 Dec 2007
Posts: 3

PostPosted: Thu Apr 10, 2008 2:29 pm    Post subject: Reply with quote

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/trunk/libegg/datetime/
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP