pnmixer
Volume mixer for the system tray
|
Hotkey dialog subsystem. More...
#include <glib.h>
#include <gtk/gtk.h>
#include "support-log.h"
#include "support-intl.h"
#include "support-ui.h"
#include "ui-hotkey-dialog.h"
#include "main.h"
Go to the source code of this file.
Data Structures | |
struct | hotkey_dialog |
Macros | |
#define | HOTKEY_DIALOG_UI_FILE "hotkey-dialog-gtk2.glade" |
Functions | |
static void | configure_hotkey_dialog (GtkWindow *window, GtkLabel *instruction_label, const gchar *hotkey) |
gboolean | on_hotkey_dialog_key_press_event (G_GNUC_UNUSED GtkWidget *widget, GdkEventKey *event, HotkeyDialog *dialog) |
gboolean | on_hotkey_dialog_key_release_event (GtkWidget *widget, G_GNUC_UNUSED GdkEventKey *event, G_GNUC_UNUSED HotkeyDialog *dialog) |
gchar * | hotkey_dialog_run (HotkeyDialog *dialog) |
void | hotkey_dialog_destroy (HotkeyDialog *dialog) |
HotkeyDialog * | hotkey_dialog_create (GtkWindow *parent, const gchar *hotkey) |
Hotkey dialog subsystem.
This file holds the ui-related code for the hotkey dialog, usually run from the preferences window.
Definition in file ui-hotkey-dialog.c.
#define HOTKEY_DIALOG_UI_FILE "hotkey-dialog-gtk2.glade" |
Definition at line 35 of file ui-hotkey-dialog.c.
|
static |
Definition at line 42 of file ui-hotkey-dialog.c.
HotkeyDialog* hotkey_dialog_create | ( | GtkWindow * | parent, |
const gchar * | hotkey | ||
) |
Creates a new hotkey dialog.
parent | a GtkWindow to be used as the parent. |
hotkey | the hotkey concerned. |
Definition at line 222 of file ui-hotkey-dialog.c.
void hotkey_dialog_destroy | ( | HotkeyDialog * | dialog | ) |
Destroys a hotkey dialog, freeing any resources.
dialog | a HotkeyDialog instance. |
Definition at line 206 of file ui-hotkey-dialog.c.
gchar* hotkey_dialog_run | ( | HotkeyDialog * | dialog | ) |
Runs the hotkey dialog, and returns a string representing the hotkey that has been pressed. String must be freed.
dialog | a HotkeyDialog instance. |
Definition at line 130 of file ui-hotkey-dialog.c.
gboolean on_hotkey_dialog_key_press_event | ( | G_GNUC_UNUSED GtkWidget * | widget, |
GdkEventKey * | event, | ||
HotkeyDialog * | dialog | ||
) |
Handles the 'key-press-event' signal on the GtkDialog 'hotkey_dialog'. Update the text displayed in the dialog.
widget | the object which received the signal. |
event | the GdkEventKey which triggered the signal. |
dialog | user data set when the signal handler was connected. |
Definition at line 76 of file ui-hotkey-dialog.c.
gboolean on_hotkey_dialog_key_release_event | ( | GtkWidget * | widget, |
G_GNUC_UNUSED GdkEventKey * | event, | ||
G_GNUC_UNUSED HotkeyDialog * | dialog | ||
) |
Handles the signal 'key-release-event' on the GtkDialog 'hotkey_dialog'. Closes the dialog.
widget | the object which received the signal. |
event | the GdkEventKey which triggered the signal. |
dialog | user data set when the signal handler was connected. |
Definition at line 113 of file ui-hotkey-dialog.c.