GnomeMDIChild

Name

GnomeMDIChild -- 

Synopsis


#include <libgnomeui/libgnomeui.h>


GtkWidget*  (*GnomeMDIChildViewCreator)     (GnomeMDIChild*,
                                             gpointer);
GList*      (*GnomeMDIChildMenuCreator)     (GnomeMDIChild*,
                                             GtkWidget*,
                                             gpointer);
gchar*      (*GnomeMDIChildConfigFunc)      (GnomeMDIChild*,
                                             gpointer);
GtkWidget*  (*GnomeMDIChildLabelFunc)       (GnomeMDIChild*,
                                             GtkWidget*,
                                             gpointer);
struct      GnomeMDIChild;
GtkWidget*  gnome_mdi_child_add_view        (GnomeMDIChild *mdi_child);
void        gnome_mdi_child_remove_view     (GnomeMDIChild *mdi_child,
                                             GtkWidget *view);
void        gnome_mdi_child_set_name        (GnomeMDIChild *mdi_child,
                                             const gchar *name);
void        gnome_mdi_child_set_menu_template
                                            (GnomeMDIChild *mdi_child,
                                             GnomeUIInfo *menu_tmpl);

Object Hierarchy


  GObject
   +----GtkObject
         +----GnomeMDIChild

Description

Details

GnomeMDIChildViewCreator ()

GtkWidget*  (*GnomeMDIChildViewCreator)     (GnomeMDIChild*,
                                             gpointer);

Warning

GnomeMDIChildViewCreator is deprecated and should not be used in newly-written code.

Param1 :

Param2 :

Returns :


GnomeMDIChildMenuCreator ()

GList*      (*GnomeMDIChildMenuCreator)     (GnomeMDIChild*,
                                             GtkWidget*,
                                             gpointer);

Warning

GnomeMDIChildMenuCreator is deprecated and should not be used in newly-written code.

Param1 :

Param2 :

Param3 :

Returns :


GnomeMDIChildConfigFunc ()

gchar*      (*GnomeMDIChildConfigFunc)      (GnomeMDIChild*,
                                             gpointer);

Warning

GnomeMDIChildConfigFunc is deprecated and should not be used in newly-written code.

Param1 :

Param2 :

Returns :


GnomeMDIChildLabelFunc ()

GtkWidget*  (*GnomeMDIChildLabelFunc)       (GnomeMDIChild*,
                                             GtkWidget*,
                                             gpointer);

Warning

GnomeMDIChildLabelFunc is deprecated and should not be used in newly-written code.

Param1 :

Param2 :

Param3 :

Returns :


struct GnomeMDIChild

struct GnomeMDIChild;

Warning

GnomeMDIChild is deprecated and should not be used in newly-written code.


gnome_mdi_child_add_view ()

GtkWidget*  gnome_mdi_child_add_view        (GnomeMDIChild *mdi_child);

Warning

gnome_mdi_child_add_view is deprecated and should not be used in newly-written code.

Creates a new view of a child (a GtkWidget) adds it to the list of the views and returns a pointer to it. Virtual function that has to be specified for classes derived from GnomeMDIChild is used to create the new view.

mdi_child :

A pointer to a GnomeMDIChild object.

Returns :

A pointer to the new view.


gnome_mdi_child_remove_view ()

void        gnome_mdi_child_remove_view     (GnomeMDIChild *mdi_child,
                                             GtkWidget *view);

Warning

gnome_mdi_child_remove_view is deprecated and should not be used in newly-written code.

Removes view view from the list of mdi_child's views and unrefs it.

mdi_child :

A pointer to a GnomeMDIChild object.

view :

View to be removed.


gnome_mdi_child_set_name ()

void        gnome_mdi_child_set_name        (GnomeMDIChild *mdi_child,
                                             const gchar *name);

Warning

gnome_mdi_child_set_name is deprecated and should not be used in newly-written code.

Changes name of mdi_child to name. name is duplicated and stored in mdi_child. If mdi_child has already been added to GnomeMDI, it also takes care of updating it.

mdi_child :

A pointer to a GnomeMDIChild object.

name :

String containing the new name for the child.


gnome_mdi_child_set_menu_template ()

void        gnome_mdi_child_set_menu_template
                                            (GnomeMDIChild *mdi_child,
                                             GnomeUIInfo *menu_tmpl);

Warning

gnome_mdi_child_set_menu_template is deprecated and should not be used in newly-written code.

Sets the template for menus that are added and removed when differrent children get activated. This way, each child can modify the MDI menubar to suit its needs. If no template is set, the create_menus virtual function will be used for creating these menus (it has to return a GList of menu items). If no such function is specified, the menubar will be unchanged by MDI children.

mdi_child :

A pointer to a GnomeMDIChild object.

menu_tmpl :

A GnomeUIInfo array describing the child specific menus.