mate-desktop 1.29.2
Library with common API for various MATE modules
Loading...
Searching...
No Matches
mate-desktop-utils.h File Reference
View source
#include <glib.h>
#include <gdk/gdk.h>
#include <gtk/gtk.h>
Include dependency graph for mate-desktop-utils.h:
This graph shows which files directly or indirectly include this file:

Functions

void mate_desktop_prepend_terminal_to_vector (int *argc, char ***argv)
 mate_desktop_prepend_terminal_to_vector: @argc: a pointer to the vector size @argv: a pointer to the vector
 
gboolean mate_gdk_spawn_command_line_on_screen (GdkScreen *screen, const gchar *command, GError **error)
 mate_gdk_spawn_command_line_on_screen: @screen: a GdkScreen @command: a command line @error: return location for errors
 
void mate_desktop_gtk_style_get_light_color (GtkStyleContext *style, GtkStateFlags state, GdkRGBA *color)
 
void mate_desktop_gtk_style_get_dark_color (GtkStyleContext *style, GtkStateFlags state, GdkRGBA *color)
 

Function Documentation

◆ mate_desktop_gtk_style_get_dark_color()

void mate_desktop_gtk_style_get_dark_color ( GtkStyleContext *  style,
GtkStateFlags  state,
GdkRGBA *  color 
)

References DARKNESS_MULT, and gtk_style_shade().

Here is the call graph for this function:

◆ mate_desktop_gtk_style_get_light_color()

void mate_desktop_gtk_style_get_light_color ( GtkStyleContext *  style,
GtkStateFlags  state,
GdkRGBA *  color 
)

References gtk_style_shade(), and LIGHTNESS_MULT.

Here is the call graph for this function:

◆ mate_desktop_prepend_terminal_to_vector()

void mate_desktop_prepend_terminal_to_vector ( int *  argc,
char ***  argv 
)

mate_desktop_prepend_terminal_to_vector: @argc: a pointer to the vector size @argv: a pointer to the vector

Prepends a terminal (either the one configured as default in the user's MATE setup, or one of the common xterm emulators) to the passed in vector, modifying it in the process. The vector should be allocated with #g_malloc, as this will #g_free the original vector. Also all elements must have been allocated separately. That is the standard glib/MATE way of doing vectors however. If the integer that @argc points to is negative, the size will first be computed. Also note that passing in pointers to a vector that is empty, will just create a new vector for you.

References _mate_desktop_init_i18n().

Referenced by ditem_execute().

Here is the call graph for this function:

◆ mate_gdk_spawn_command_line_on_screen()

gboolean mate_gdk_spawn_command_line_on_screen ( GdkScreen *  screen,
const gchar *  command,
GError **  error 
)

mate_gdk_spawn_command_line_on_screen: @screen: a GdkScreen @command: a command line @error: return location for errors

This is a replacement for gdk_spawn_command_line_on_screen, deprecated in GDK 2.24 and removed in GDK 3.0.

gdk_spawn_command_line_on_screen is like g_spawn_command_line_async(), except the child process is spawned in such an environment that on calling gdk_display_open() it would be returned a GdkDisplay with screen as the default screen.

This is useful for applications which wish to launch an application on a specific screen.

Returns: TRUE on success, FALSE if error is set.

Since: 1.7.1