-
Notifications
You must be signed in to change notification settings - Fork 48
/
shortcuts-cb.c
26 lines (22 loc) · 839 Bytes
/
shortcuts-cb.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <gtk/gtk.h>
#include "message-dialogs.h"
#include "get-builder.h"
#include "data.h"
void
shortcuts_window_cb (GSimpleAction *simple __attribute__((unused)),
GVariant *parameter __attribute__((unused)),
gpointer user_data)
{
AppData *app_data = (AppData *)user_data;
GtkBuilder *builder = get_builder_from_partial_path ("share/otpclient/shortcuts.ui");
GtkWidget *overlay = GTK_WIDGET (gtk_builder_get_object (builder, "shortcuts-otpclient"));
gtk_window_set_transient_for (GTK_WINDOW(overlay), GTK_WINDOW(app_data->main_window));
gtk_widget_show (overlay);
g_object_unref (builder);
}
void
show_kbs_cb_shortcut (GtkWidget *w __attribute__((unused)),
gpointer user_data)
{
shortcuts_window_cb (NULL, NULL, user_data);
}