(trunk gtk) general cleanup to make function's naming scheme and API more consistent. This is only a fraction of what the GTK+ client's codebase needs, unfortunately.

This commit is contained in:
Charles Kerr
2010-12-21 19:20:58 +00:00
parent 0372797e6f
commit 5eafe91824
36 changed files with 239 additions and 285 deletions

View File

@@ -10,8 +10,8 @@
* $Id$
*/
#ifndef TR_ACTIONS_H
#define TR_ACTIONS_H
#ifndef GTR_ACTIONS_H
#define GTR_ACTIONS_H
#include <gtk/gtk.h>
#include "tr-core.h"
@@ -21,25 +21,14 @@
#define NOTIFICATION_ICON "transmission-notification-icon"
void actions_init( GtkUIManager * ui_manager,
gpointer callback_user_data );
void gtr_actions_init( GtkUIManager * ui_manager, gpointer callback_user_data );
void gtr_actions_set_core( TrCore * core );
void gtr_actions_handler( const char * action_name, gpointer user_data );
void actions_set_core( TrCore * core );
void action_activate( const char * name );
void action_sensitize( const char * name,
gboolean b );
void action_toggle( const char * name,
gboolean b );
void action_set_important( const char * name, gboolean b );
GtkWidget* action_get_widget( const char * path );
void doAction( const char * action_name,
gpointer user_data );
void gtr_action_activate ( const char * action_name );
void gtr_action_set_sensitive ( const char * action_name, gboolean is_sensitive );
void gtr_action_set_toggled ( const char * action_name, gboolean is_toggled );
void gtr_action_set_important ( const char * action_name, gboolean is_important );
GtkWidget* gtr_action_get_widget ( const char * path );
#endif