xed-utils

xed-utils

Functions

Description

Functions

GBOOLEAN_TO_POINTER()

#define GBOOLEAN_TO_POINTER(i) (GINT_TO_POINTER ((i) ? 2 : 1))

GPOINTER_TO_BOOLEAN()

#define GPOINTER_TO_BOOLEAN(i) ((gboolean) ((GPOINTER_TO_INT(i) == 2) ? TRUE : FALSE))

IS_VALID_BOOLEAN()

#define IS_VALID_BOOLEAN(v) (((v == TRUE) || (v == FALSE)) ? TRUE : FALSE)

xed_utils_menu_position_under_widget ()

void
xed_utils_menu_position_under_widget (GtkMenu *menu,
                                      gint *x,
                                      gint *y,
                                      gboolean *push_in,
                                      gpointer user_data);

xed_utils_menu_position_under_tree_view ()

void
xed_utils_menu_position_under_tree_view
                               (GtkMenu *menu,
                                gint *x,
                                gint *y,
                                gboolean *push_in,
                                gpointer user_data);

xed_utils_escape_underscores ()

gchar *
xed_utils_escape_underscores (const gchar *text,
                              gssize length);

xed_utils_str_middle_truncate ()

gchar *
xed_utils_str_middle_truncate (const gchar *string,
                               guint truncate_length);

g_utf8_caselessnmatch ()

gboolean
g_utf8_caselessnmatch (const char *s1,
                       const char *s2,
                       gssize n1,
                       gssize n2);

xed_utils_set_atk_name_description ()

void
xed_utils_set_atk_name_description (GtkWidget *widget,
                                    const gchar *name,
                                    const gchar *description);

This function sets up name and description for a specified gtk widget.

Parameters

widget

The Gtk widget for which name/description to be set

 

name

Atk name string

 

description

Atk description string

 

xed_utils_set_atk_relation ()

void
xed_utils_set_atk_relation (GtkWidget *obj1,
                            GtkWidget *obj2,
                            AtkRelationType rel_type);

xed_warning ()

void
xed_warning (GtkWindow *parent,
             const gchar *format,
             ...);

xed_utils_make_valid_utf8 ()

gchar *
xed_utils_make_valid_utf8 (const char *name);

xed_utils_uri_get_dirname ()

gchar *
xed_utils_uri_get_dirname (const char *uri);

Note: this function replace home dir with ~


xed_utils_replace_home_dir_with_tilde ()

gchar *
xed_utils_replace_home_dir_with_tilde (const gchar *uri);

xed_utils_get_current_workspace ()

guint
xed_utils_get_current_workspace (GdkScreen *screen);

Get the current workspace

Get the currently visible workspace for the GdkScreen.

If the X11 window property isn't found, 0 (the first workspace) is returned.


xed_utils_get_window_workspace ()

guint
xed_utils_get_window_workspace (GtkWindow *gtkwindow);

Get the workspace the window is on

This function gets the workspace that the GtkWindow is visible on, it returns XED_ALL_WORKSPACES if the window is sticky, or if the window manager doesn support this function


xed_utils_make_canonical_uri_from_shell_arg ()

gchar *
xed_utils_make_canonical_uri_from_shell_arg
                               (const gchar *str);

Types and Values