1 /*
2  * This file Copyright (C) 2007-2014 Mnemosyne LLC
3  *
4  * It may be used under the GNU GPL versions 2 or 3
5  * or any future license endorsed by Mnemosyne LLC.
6  *
7  */
8 
9 #pragma once
10 
11 #include <gtk/gtk.h>
12 #include "tr-core.h"
13 
14 #define WINDOW_ICON "transmission-main-window-icon"
15 #define TRAY_ICON "transmission-tray-icon"
16 #define NOTIFICATION_ICON "transmission-notification-icon"
17 
18 void gtr_actions_init(GtkUIManager* ui_manager, gpointer callback_user_data);
19 void gtr_actions_set_core(TrCore* core);
20 void gtr_actions_handler(char const* action_name, gpointer user_data);
21 
22 void gtr_action_activate(char const* action_name);
23 void gtr_action_set_sensitive(char const* action_name, gboolean is_sensitive);
24 void gtr_action_set_toggled(char const* action_name, gboolean is_toggled);
25 void gtr_action_set_important(char const* action_name, gboolean is_important);
26 GtkWidget* gtr_action_get_widget(char const* path);
27