Re: gui in fonction
- From: Axel <axel azerty netcourrier com>
- To: gtk-app-devel-list gnome org
- Cc: gtk_list gnome org
- Subject: Re: gui in fonction
- Date: Tue, 18 Mar 2003 11:59:23 +0100
On Tue, 18 Mar 2003 11:47:25 +0100 (CET)
TORRI Vincent <Vincent Torri math u-bordeaux fr> wrote:
Hello,
One solution could be :
GtkWidget *create_window()
{
GtkWidget *window;
window=gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_widget_set_size_request(GTK_WIDGET(window),500,250);
return window;
}
and in your main :
GtkWidget *window;
window = create_window();
gtk_widget_show(window);
regards
Vincent TORRI
thanks
It works well.
I don' t understand why though.
so it' s because the gtkwidget pointer wasn' t initialized when I call the function.
I think is more a "C" question than gtk but so why should it be initialized before be passed to the
function(whom aim is to initialized it!)?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]