[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: gtk_button_set_label ERROR
- From: Carlo Agrusti <carlo-ag libero it>
- To: gtk-app-devel-list gnome org
- Subject: Re: gtk_button_set_label ERROR
- Date: Thu, 06 Apr 2006 13:07:16 +0200
3saul ha scritto lo scorso 06/04/2006 12:45:
[...]
> gboolean Func_Get_Time_Date()
> {
> memset( x, '\0', 150 * sizeof *x );
I'm pretty sure there are better ways to treat a gchar array ;-)
> char *p;
> GtkWidget *button1 = 0;
Here you are defining a (NULL) GtkWidget*
>
>
> strstr ( cmd_results, argument_data) == NULL)
some "if" keyword is lacking - is this code snippet complete?
> {
> sprintf( x, "args: %s", argument_data);
> gtk_button_set_label (GTK_BUTTON(button1), x);
and here you are telling to gtk_button_set_label that your button is:
GTK_BUTTON (0x0); someone should tell Func_Get_Time_Date the actual
value of the pointer to your button.
> }
>
> return TRUE;
>
> }
>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]