added virtual functions GtkUIManager::get_widget() and ::get_action().

2004-12-01  Michael Natterer  <mitch@gimp.org>

	* gtk/gtkuimanager.[ch]: added virtual functions
	GtkUIManager::get_widget() and ::get_action(). Moved the code from
	gtk_ui_manager_get_widget() and get_action() to the default
	implementations. Fixes bug #160096.

	(gtk_ui_manager_get_toplevels): added missing precondition check
	for GTK_IS_UI_MANAGER(self).
This commit is contained in:
Michael Natterer
2004-12-01 16:04:28 +00:00
committed by Michael Natterer
parent 692bb5126f
commit 3bd8c449f4
6 changed files with 125 additions and 60 deletions

View File

@ -78,11 +78,15 @@ struct _GtkUIManagerClass {
void (* post_activate) (GtkUIManager *merge,
GtkAction *action);
/* Virtual functions */
GtkWidget * (* get_widget) (GtkUIManager *manager,
const gchar *path);
GtkAction * (* get_action) (GtkUIManager *manager,
const gchar *path);
/* Padding for future expansion */
void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void);
void (*_gtk_reserved3) (void);
void (*_gtk_reserved4) (void);
};
typedef enum {