Re: RFC: Gtk + XML chroming




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]