Re: gtk_clock question !



On Fri, Jul 07, 2000 at 07:59:11PM +0200, Magnus Wirström <asd@mail.bip.net> said
> 
> Hi
> 
> I am using gtk_clock to display a counter ... I wonder if there any way
> to get the time from the clock so I could use it in a string... I can't
> find any way to do this ...

GtkClock is descended from GtkLabel so you can get the text like this:

char *string;
gtk_label_get(GTK_LABEL(clock),&string);

-- 
Geoffrey Reedy                   Student Network System Administrator
vader21@imsa.edu                    Illinois Math and Science Academy

"Unix-to-Unix Copy Program;" said PDP-1.  "You will never find a more
wretched hive of bugs and flamers.  We must be cautious."
				-- DECWARS




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]