pnmixer
Volume mixer for the system tray
|
Main program entry point & high-level public functions. More...
#include <stdlib.h>
#include <glib.h>
#include "main.h"
#include "audio.h"
#include "notif.h"
#include "hotkeys.h"
#include "prefs.h"
#include "support-intl.h"
#include "support-log.h"
#include "ui-about-dialog.h"
#include "ui-prefs-dialog.h"
#include "ui-popup-menu.h"
#include "ui-popup-window.h"
#include "ui-tray-icon.h"
Go to the source code of this file.
Functions | |
static void | run_command (const gchar *cmd) |
void | run_mixer_command (void) |
void | run_custom_command (void) |
static void | prefs_dialog_response_cb (PrefsDialog *this_dialog, gint response_id) |
void | run_prefs_dialog (void) |
void | run_about_dialog (void) |
void | run_error_dialog (const char *fmt,...) |
gint | run_audio_error_dialog (void) |
void | do_toggle_popup_window (void) |
void | do_show_popup_menu (GtkMenuPositionFunc func, gpointer data, guint button, guint activate_time) |
static void | on_audio_changed (Audio *audio, AudioEvent *event, G_GNUC_UNUSED gpointer data) |
int | main (int argc, char *argv[]) |
Variables | |
static Audio * | audio |
static PopupMenu * | popup_menu |
static PopupWindow * | popup_window |
static TrayIcon * | tray_icon |
static Hotkeys * | hotkeys |
static Notif * | notif |
static GtkWindow * | main_window |
static PrefsDialog * | prefs_dialog |
static AboutDialog * | about_dialog |
static gboolean | version = FALSE |
static GOptionEntry | option_entries [] |
Main program entry point & high-level public functions.
The main program entry point. Also handles creating and opening the widgets. Declares some high-level public functions needed by some widgets.
Definition in file main.c.
void do_show_popup_menu | ( | GtkMenuPositionFunc | func, |
gpointer | data, | ||
guint | button, | ||
guint | activate_time | ||
) |
int main | ( | int | argc, |
char * | argv[] | ||
) |
|
static |
|
static |
gint run_audio_error_dialog | ( | void | ) |
|
static |
void run_error_dialog | ( | const char * | fmt, |
... | |||
) |
void run_mixer_command | ( | void | ) |
|
static |
|
static |
|
static |
|
static |
|
static |