mirror of
https://github.com/rozniak/xfce-winxp-tc.git
synced 2026-04-30 19:21:22 +00:00
24 lines
495 B
C
24 lines
495 B
C
#include <glib.h>
|
|
#include <gtk/gtk.h>
|
|
|
|
#include "../public/accelerator.h"
|
|
|
|
//
|
|
// PUBLIC FUNCTIONS
|
|
//
|
|
void wintc_application_set_accelerators(
|
|
GtkApplication* application,
|
|
const WinTCAccelEntry* accelerators,
|
|
guint n_accelerators
|
|
)
|
|
{
|
|
for (guint i = 0; i < n_accelerators; i++)
|
|
{
|
|
gtk_application_set_accels_for_action(
|
|
application,
|
|
accelerators[i].action_name,
|
|
accelerators[i].accelerator
|
|
);
|
|
}
|
|
}
|