CuiFileMenu

Name

CuiFileMenu -- 

Synopsis


#include <history.h>


            CuiFileMenu;
CuiWidget*  cui_file_menu_new               (void);
CuiFileMenu* cui_file_menu_new_for_filename (CuiWindow *window,
                                             Background *background,
                                             CuiFilename *file,
                                             GtkTextMark *begin,
                                             GtkTextMark *end);
void        cui_file_menu_set_filename      (CuiFileMenu *file_menu,
                                             CuiFilename *filename);
CuiFilename* cui_file_menu_get_filename     (CuiFileMenu *file_menu);
void        cui_file_menu_popup             (CuiFileMenu *cui_file_menu,
                                             GtkWidget *parent_widget,
                                             GdkEventButton *event);

Object Hierarchy


  GObject
   +----CuiWidget
         +----CuiPopupMenu
               +----CuiFileMenu

Properties


  "filename"             gpointer              : Read / Write

Description

Details

CuiFileMenu

typedef struct _CuiFileMenu CuiFileMenu;


cui_file_menu_new ()

CuiWidget*  cui_file_menu_new               (void);

Creates a new use menu.

Returns :

a new CuiUserMenu


cui_file_menu_new_for_filename ()

CuiFileMenu* cui_file_menu_new_for_filename (CuiWindow *window,
                                             Background *background,
                                             CuiFilename *file,
                                             GtkTextMark *begin,
                                             GtkTextMark *end);

Creates a new CuiFileMenu for the given begin/end points.

window :

this CuiWindow will contain the new CuiFileMenu

background :

the Background for the new menu

file :

the CuiFilename for the menu

begin :

the begin mark for the new widgets active area

end :

the end mark for the new widgets active area

Returns :

a new CuiFileMenu


cui_file_menu_set_filename ()

void        cui_file_menu_set_filename      (CuiFileMenu *file_menu,
                                             CuiFilename *filename);

Sets the file for this CuiFileMenu.

file_menu :

a CuiFileMenu

filename :

the CuiFilename


cui_file_menu_get_filename ()

CuiFilename* cui_file_menu_get_filename     (CuiFileMenu *file_menu);

Returns the filename belongs to this filemenu.

file_menu :

a CuiFileMenu

Returns :

the CuiFilename of the menu


cui_file_menu_popup ()

void        cui_file_menu_popup             (CuiFileMenu *cui_file_menu,
                                             GtkWidget *parent_widget,
                                             GdkEventButton *event);

Starts up a CuiFileMenu on the given location of the screen. This function is very important since there are a lot of file names on the screen and the file menu is a rather complicated and powerfull user interface element.

cui_file_menu :

a CuiFileMenu to pop-up

parent_widget :

the parent widget of the menu

event :

the event that caused this opertaion

Properties

The "filename" property

  "filename"             gpointer              : Read / Write

The CuiFilename type file name for the menu.