Re: RFC: Gtk + XML chroming
- From: Miguel de Icaza <miguel nuclecu unam mx>
- To: lukka fas harvard edu
- CC: gnome-list gnome org
- Subject: Re: RFC: Gtk + XML chroming
- Date: Mon, 19 Oct 1998 19:48:58 -0500
I am interested in looking at this from the C perspective. Care to
comment?
The main problem I see with your approach is that it would be
difficult to use in C.
What I am convinced should be done is have a way to name individual
widgets and bind those to C variables as well as doing the signal
connection in C, like this:
my_dialog ()
{
XmlDialog *dialog = xml_load_dialog_box ("file.xml");
GtkWidget *entry = xml_get_widget (dialog, "entry");
GtkWidget *users = xml_get_widget (dialog, "username-clist");
GtkWidget *dirs = xml_get_widget (dialog, "dirs-clist");
/* do something here with those widgets
run (dialog);
}
So, any external representation of a GUI would be limited to
specifying the layout for the widgets.
Miguel.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]