[gedit-list] GtkSourceCompletion and the info window



Hi all,

	I don't know how to implement the access to the info window.

	Currently GtkSourceCompletion has an info window to show help
for the selected proposal. The object used is GscInfo. GscInfo supports
change the default widget with a custom widget.

	When a user wants to use the library, it only uses the
GscManager object. If I want to give the option to change the default
info widget I can do:

1.- Publish the GscInfo object and the user can get it and
change all he wants:

	GscInfo *gsc_manager_get_info_window ().

The user can do:
	GscInfo *info = gsc_manager_get_info_window()
	gsc_info_set_custom_widget (new_widget)
	g_signal_connect(info, "set-content", ...)


2.- Wrap the functionality into the manager with various functions:

	gsc_manager_set_custom_info_widget ()
	add a new signal into the manager: "set-info-content"

The user can do:
	gsc_manager_set_custom_info_widget(new_widget)
	g_signal_connect(manager, "set-content", ...)
	
I think the first is better but the user can change something and can
break the completion mechanism.

Regards,
	Perriman




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]