pnmixer
Volume mixer for the system tray
Functions
support-ui.c File Reference

Various ui-related functions. More...

#include <glib.h>
#include <gtk/gtk.h>
#include "support-log.h"
#include "support-intl.h"
Include dependency graph for support-ui.c:

Go to the source code of this file.

Functions

GtkBuilder * gtk_builder_new_from_file (const gchar *filename)
 
void gtk_combo_box_text_remove_all (GtkComboBoxText *combo_box)
 
gchar * get_ui_file (const char *filename)
 
gchar * get_pixmap_file (const gchar *filename)
 

Detailed Description

Various ui-related functions.

Various ui-related functions.

Definition in file support-ui.c.

Function Documentation

◆ get_pixmap_file()

gchar* get_pixmap_file ( const gchar *  filename)

Gets the path to a pixmap file. Looks first in ./data/ui/[file], and then in PACKAGE_DATA_DIR/PACKAGE/ui/[file].

Parameters
filenamethe pixmap file to find
Returns
path to the ui file or NULL on failure. Must be freed.

Definition at line 85 of file support-ui.c.

◆ get_ui_file()

gchar* get_ui_file ( const char *  filename)

Gets the path to an ui file. Looks first in ./data/ui/[file], and then in PACKAGE_DATA_DIR/PACKAGE/ui/[file].

Parameters
filenamethe name of the ui file
Returns
path to the ui file or NULL on failure. Must be freed.

Definition at line 58 of file support-ui.c.

◆ gtk_builder_new_from_file()

GtkBuilder* gtk_builder_new_from_file ( const gchar *  filename)

Definition at line 25 of file support-ui.c.

◆ gtk_combo_box_text_remove_all()

void gtk_combo_box_text_remove_all ( GtkComboBoxText *  combo_box)

Definition at line 38 of file support-ui.c.