[Anjuta-list] Core dumps with panel widget
- From: Pradyumna Sampath <prady prady net>
- To: anjuta-list lists sourceforge net
- Subject: [Anjuta-list] Core dumps with panel widget
- Date: Mon Feb 24 01:32:07 2003
Hello everyone,
I have 2 panels and when a doubleclick on the calendar in the Left hand panel
I would like to display some text on the right hand panel in a text box.This
is the following code I have written for it .It gives me a core dump .Would
be glad if I can get some help on this.
TIA
regards
prady
<CODE>
void putstr(GtkWidget *widget,gpointer data,GtkWidget *calendar,GtkWidget
*text)
{
struct tm *l_time;
time_t data;
char string[20];
GdkFont *fixed_font;
time(&data);
l_time = localtime(&data);
strftime(string, sizeof string, "%d-%b-%y\n", l_time);
printf("%s", string);
fixed_font=gdk_font_load("Verdana");
gtk_text_freeze(GTK_TEXT(text));
gtk_text_insert(GTK_TEXT(text),fixed_font,&text->style->black,NULL,NULL,string);
gtk_text_thaw(GTK_TEXT(text));
return;
}
</CODE>
--
Visit me at http://prady.net
Mail : prady at prady dot net
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]