ASFileEntry

ASFileEntry — the File Entry widget

Synopsis


#include <libappstarter/as.h>

                    ASFileEntryPrivate;
                    ASFileEntry;
GtkWidget*          as_file_entry_new                   (const gchar *title,
                                                         GtkFileChooserAction action,
                                                         const gchar *file);
const gchar*        as_file_entry_get_filename          (ASFileEntry *fe);
void                as_file_entry_set_filename          (ASFileEntry *fe,
                                                         const gchar *text);
GtkFileChooserAction as_file_entry_get_action           (ASFileEntry *fe);
void                as_file_entry_set_action            (ASFileEntry *fe,
                                                         GtkFileChooserAction action);
const gchar*        as_file_entry_get_title             (ASFileEntry *fe);
void                as_file_entry_set_title             (ASFileEntry *fe,
                                                         const gchar *title);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----GtkWidget
                     +----GtkContainer
                           +----GtkBox
                                 +----GtkHBox
                                       +----ASFileEntry

Implemented Interfaces

ASFileEntry implements AtkImplementorIface and GtkBuildable.

Signals

  "changed"                                        : Run First / Action

Description

Details

ASFileEntryPrivate

typedef struct _ASFileEntryPrivate ASFileEntryPrivate;


ASFileEntry

typedef struct _ASFileEntry ASFileEntry;


as_file_entry_new ()

GtkWidget*          as_file_entry_new                   (const gchar *title,
                                                         GtkFileChooserAction action,
                                                         const gchar *file);

Creates a new ASFileEntry GtkWidget.

title :

title of the file selector

action :

the action that the file selector is performing

file :

the file name to set in the entry

Returns :

a GtkWidget

as_file_entry_get_filename ()

const gchar*        as_file_entry_get_filename          (ASFileEntry *fe);

Get the current file name.

fe :

an ASFileEntry

Returns :

the text of the entry

as_file_entry_set_filename ()

void                as_file_entry_set_filename          (ASFileEntry *fe,
                                                         const gchar *text);

Set text in the fe entry.

fe :

an ASFileEntry

text :

the text to set

as_file_entry_get_action ()

GtkFileChooserAction as_file_entry_get_action           (ASFileEntry *fe);

Gets the type of operation that the file chooser is performing.

fe :

an ASFileEntry

Returns :

the action that the file selector is performing

as_file_entry_set_action ()

void                as_file_entry_set_action            (ASFileEntry *fe,
                                                         GtkFileChooserAction action);

Sets the type of operation that the chooser is performing.

fe :

an ASFileEntry

action :

the action that the file selector is performing

as_file_entry_get_title ()

const gchar*        as_file_entry_get_title             (ASFileEntry *fe);

Gets the title of the file chooser.

fe :

an ASFileEntry

Returns :

the title of the file chooser

as_file_entry_set_title ()

void                as_file_entry_set_title             (ASFileEntry *fe,
                                                         const gchar *title);

Sets the title of the file chooser.

fe :

an ASFileEntry

title :

title of the file chooser

Signal Details

The "changed" signal

void                user_function                      (ASFileEntry *widget,
                                                        gpointer     user_data)      : Run First / Action

widget :

the widget that received the signal

user_data :

user data set when the signal handler was connected.