![]() |
![]() |
![]() |
GNOME Desktop Library Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Signals |
#include <libgnome/gnome-ditem-edit.h> GnomeDItemEdit; GtkWidget * gnome_ditem_edit_new (void); void gnome_ditem_edit_clear (GnomeDItemEdit *dee); gboolean gnome_ditem_edit_load_uri (GnomeDItemEdit *dee, const gchar *uri, GError **error); void gnome_ditem_edit_set_ditem (GnomeDItemEdit *dee, const GnomeDesktopItem *ditem); GnomeDesktopItem * gnome_ditem_edit_get_ditem (GnomeDItemEdit *dee); gchar * gnome_ditem_edit_get_icon (GnomeDItemEdit *dee); gchar * gnome_ditem_edit_get_name (GnomeDItemEdit *dee); void gnome_ditem_edit_set_entry_type (GnomeDItemEdit *dee, const char *type); void gnome_ditem_edit_set_directory_only (GnomeDItemEdit *dee, gboolean directory_only); void gnome_ditem_edit_grab_focus (GnomeDItemEdit *dee); void gnome_ditem_edit_set_editable (GnomeDItemEdit *dee, gboolean editable);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkNotebook +----GnomeDItemEdit
typedef struct _GnomeDItemEdit GnomeDItemEdit;
GnomeDItemEdit
is deprecated and should not be used in newly-written code.
GtkWidget * gnome_ditem_edit_new (void);
gnome_ditem_edit_new
has been deprecated since version 2.18 and should not be used in newly-written code.
Creates a new GnomeDItemEdit widget. A widget for the purpose of editing GnomeDesktopItems
Returns : |
Newly-created GnomeDItemEdit widget. |
void gnome_ditem_edit_clear (GnomeDItemEdit *dee);
gnome_ditem_edit_clear
has been deprecated since version 2.18 and should not be used in newly-written code.
Clear the editting areas. And unref any stored GnomeDesktopItem.
|
GnomeDItemEdit object to work with |
gboolean gnome_ditem_edit_load_uri (GnomeDItemEdit *dee, const gchar *uri, GError **error);
gnome_ditem_edit_load_uri
has been deprecated since version 2.18 and should not be used in newly-written code.
Load a .desktop file and update the editting areas of the object accordingly.
|
GnomeDItemEdit object to work with |
|
file to load into the editting areas |
|
location to store error, or NULL |
Returns : |
TRUE if successful, FALSE otherwise
|
void gnome_ditem_edit_set_ditem (GnomeDItemEdit *dee, const GnomeDesktopItem *ditem);
gnome_ditem_edit_set_ditem
has been deprecated since version 2.18 and should not be used in newly-written code.
Set the ditem edit UI to this item. This makes a copy internally so do not worry about modifying this item later yourself. Note that since the entire item is stored, any hidden fields will be preserved when you later get it with gnome_ditem_edit_get_ditem.
|
GnomeDItemEdit object to work with |
|
GnomeDesktopItem to use |
GnomeDesktopItem * gnome_ditem_edit_get_ditem (GnomeDItemEdit *dee);
gnome_ditem_edit_get_ditem
has been deprecated since version 2.18 and should not be used in newly-written code.
Get the current status of the editting areas as a GnomeDesktopItem structure. It will give you a pointer to the internal structure. If you wish to modify it, make a copy of it with gnome_desktop_item_copy
|
GnomeDItemEdit object to work with |
Returns : |
a pointer to the internal GnomeDesktopItem structure. |
gchar * gnome_ditem_edit_get_icon (GnomeDItemEdit *dee);
gnome_ditem_edit_get_icon
has been deprecated since version 2.18 and should not be used in newly-written code.
Get the icon filename.
|
GnomeDItemEdit object to work with |
Returns : |
a newly allocated string with the filename of the icon |
gchar * gnome_ditem_edit_get_name (GnomeDItemEdit *dee);
gnome_ditem_edit_get_name
has been deprecated since version 2.18 and should not be used in newly-written code.
Get the Name field from the ditem for the current language.
|
GnomeDItemEdit object to work with |
Returns : |
a newly allocated string with the name of the ditem |
void gnome_ditem_edit_set_entry_type (GnomeDItemEdit *dee, const char *type);
gnome_ditem_edit_set_entry_type
has been deprecated since version 2.18 and should not be used in newly-written code.
Force directory only.
|
GnomeDItemEdit object to work with |
|
void gnome_ditem_edit_set_directory_only (GnomeDItemEdit *dee, gboolean directory_only);
gnome_ditem_edit_set_directory_only
is deprecated and should not be used in newly-written code.
|
|
|
void gnome_ditem_edit_grab_focus (GnomeDItemEdit *dee);
gnome_ditem_edit_grab_focus
has been deprecated since version 2.18 and should not be used in newly-written code.
Give the focus to the editor.
|
GnomeDItemEdit object to work with |
void gnome_ditem_edit_set_editable (GnomeDItemEdit *dee, gboolean editable);
gnome_ditem_edit_set_editable
has been deprecated since version 2.18 and should not be used in newly-written code.
Set the object editable.
|
GnomeDItemEdit object to work with |
|
TRUE to set the object editable
|
"changed"
signalvoid user_function (GnomeDItemEdit *ditemedit, gpointer user_data) : Run Last
|
the object which received the signal. |
|
user data set when the signal handler was connected. |
"icon-changed"
signalvoid user_function (GnomeDItemEdit *ditemedit, gpointer user_data) : Run Last
|
the object which received the signal. |
|
user data set when the signal handler was connected. |
"name-changed"
signalvoid user_function (GnomeDItemEdit *ditemedit, gpointer user_data) : Run Last
|
the object which received the signal. |
|
user data set when the signal handler was connected. |