Top | ![]() |
![]() |
![]() |
![]() |
#define | GBOOLEAN_TO_POINTER() |
#define | GPOINTER_TO_BOOLEAN() |
#define | IS_VALID_BOOLEAN() |
gchar * | xed_gdk_color_to_string () |
gint | xed_string_to_clamped_gint () |
gchar * | xed_utils_escape_underscores () |
gchar * | xed_utils_str_middle_truncate () |
gchar * | xed_utils_str_end_truncate () |
gboolean | g_utf8_caselessnmatch () |
void | xed_utils_set_atk_name_description () |
void | xed_utils_set_atk_relation () |
void | xed_warning () |
gchar * | xed_utils_make_valid_utf8 () |
gchar * | xed_utils_uri_get_dirname () |
gchar * | xed_utils_location_get_dirname_for_display () |
gchar * | xed_utils_replace_home_dir_with_tilde () |
guint | xed_utils_get_current_workspace () |
guint | xed_utils_get_window_workspace () |
void | xed_utils_get_current_viewport () |
gboolean | xed_utils_is_valid_location () |
gboolean | xed_utils_get_ui_objects () |
gboolean | xed_utils_file_has_parent () |
gchar * | xed_utils_make_canonical_uri_from_shell_arg () |
gchar * | xed_utils_basename_for_display () |
gboolean | xed_utils_decode_uri () |
gchar ** | xed_utils_drop_get_uris () |
#define GPOINTER_TO_BOOLEAN(i) ((gboolean) ((GPOINTER_TO_INT(i) == 2) ? TRUE : FALSE))
gchar * xed_utils_escape_underscores (const gchar *text
,gssize length
);
gchar * xed_utils_str_middle_truncate (const gchar *string
,guint truncate_length
);
gchar * xed_utils_str_end_truncate (const gchar *string
,guint truncate_length
);
gboolean g_utf8_caselessnmatch (const char *s1
,const char *s2
,gssize n1
,gssize n2
);
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.
void xed_utils_set_atk_relation (GtkWidget *obj1
,GtkWidget *obj2
,AtkRelationType rel_type
);
gchar *
xed_utils_uri_get_dirname (const char *uri
);
Note: this function replace home dir with ~
gchar *
xed_utils_location_get_dirname_for_display
(GFile *location
);
Returns a string suitable to be displayed in the UI indicating the name of the directory where the file is located. For remote files it may also contain the hostname etc. For local files it tries to replace the home dir with ~.
gchar *
xed_utils_replace_home_dir_with_tilde (const gchar *uri
);
guint
xed_utils_get_current_workspace (GdkScreen *screen
);
Get the currently visible workspace for the GdkScreen.
If the X11 window property isn't found, 0 (the first workspace) is returned.
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't support this function.
void xed_utils_get_current_viewport (GdkScreen *screen
,gint *x
,gint *y
);
Get the currently visible viewport origin for the GdkScreen.
If the X11 window property isn't found, (0, 0) is returned.
gboolean xed_utils_get_ui_objects (const gchar *filename
,gchar **root_objects
,GtkWidget **error_widget
,const gchar *object_name
,...
);
This function gets the requested objects from a GtkBuilder ui file. In case
of error it returns FALSE
and sets error_widget to a GtkLabel containing
the error message to display.
filename |
the path to the gtk builder file |
|
root_objects |
a |
|
error_widget |
a pointer were a GtkLabel |
|
object_name |
the name of the first object |
|
... |
a pointer were the first object is returned, followed by more
name / object pairs and terminated by |
gboolean
xed_utils_file_has_parent (GFile *gfile
);
Return TRUE
if the specified gfile has a parent (is not the root), FALSE
otherwise
gchar *
xed_utils_make_canonical_uri_from_shell_arg
(const gchar *str
);
gchar *
xed_utils_basename_for_display (GFile *location
);
Return the basename of a file suitable for display to users.
gboolean xed_utils_decode_uri (const gchar *uri
,gchar **scheme
,gchar **user
,gchar **port
,gchar **host
,gchar **path
);
Parse and break an uri apart in its individual components like the uri
scheme, user info, port, host and path. The return value pointer can be
NULL
to ignore certain parts of the uri. If the function returns TRUE
, then
all return value pointers should be freed using g_free
uri |
the uri to decode |
|
scheme |
return value pointer for the uri's
scheme (e.g. http, sftp, ...), or |
[allow-none] |
user |
return value pointer for the uri user info, or |
[allow-none] |
port |
return value pointer for the uri port, or |
[allow-none] |
host |
return value pointer for the uri host, or |
[allow-none] |
path |
return value pointer for the uri path, or |
[allow-none] |
gchar **
xed_utils_drop_get_uris (GtkSelectionData *selection_data
);
Create a list of valid uri's from a uri-list drop.