Fix compiler warnings.

This commit is contained in:
Nick Schermer
2014-01-08 19:35:17 +01:00
parent f0232ca7c7
commit b367fdd1a9
10 changed files with 12 additions and 12 deletions

View File

@@ -38,7 +38,7 @@ struct _App
typedef struct _XtmAppManager XtmAppManager;
GType xtm_app_manager_get_type (void);
XtmAppManager * xtm_app_manager_new ();
XtmAppManager * xtm_app_manager_new (void);
const GArray * xtm_app_manager_get_app_list (XtmAppManager *manager);
App * xtm_app_manager_get_app_from_pid (XtmAppManager *manager, gint pid);

View File

@@ -35,8 +35,8 @@ struct _XtmExecToolButton
};
G_DEFINE_TYPE (XtmExecToolButton, xtm_exec_tool_button, GTK_TYPE_MENU_TOOL_BUTTON)
static GtkWidget * construct_menu ();
static void execute_default_command ();
static GtkWidget * construct_menu (void);
static void execute_default_command (void);

View File

@@ -27,6 +27,6 @@
typedef struct _XtmExecToolButton XtmExecToolButton;
GType xtm_exec_tool_button_get_type (void);
GtkWidget * xtm_exec_tool_button_new ();
GtkWidget * xtm_exec_tool_button_new (void);
#endif /* !EXEC_TOOL_BUTTON_H */

View File

@@ -27,6 +27,6 @@
typedef struct _XtmProcessStatusbar XtmProcessStatusbar;
GType xtm_process_statusbar_get_type (void);
GtkWidget * xtm_process_statusbar_new ();
GtkWidget * xtm_process_statusbar_new (void);
#endif /* !PROCESS_STATUSBAR_H */

View File

@@ -50,7 +50,7 @@ enum
typedef struct _XtmProcessTreeView XtmProcessTreeView;
GType xtm_process_tree_view_get_type (void);
GtkWidget * xtm_process_tree_view_new ();
GtkWidget * xtm_process_tree_view_new (void);
void xtm_process_tree_view_get_sort_column_id (XtmProcessTreeView *treeview, gint *sort_column_id, GtkSortType *sort_type);
#endif /* !PROCESS_TREE_VIEW_H */

View File

@@ -33,8 +33,8 @@ struct _XtmSettingsToolButton
};
G_DEFINE_TYPE (XtmSettingsToolButton, xtm_settings_tool_button, GTK_TYPE_MENU_TOOL_BUTTON)
static GtkWidget * construct_menu ();
static void show_settings_dialog ();
static GtkWidget * construct_menu (void);
static void show_settings_dialog (XtmSettingsToolButton *button);

View File

@@ -27,6 +27,6 @@
typedef struct _XtmSettingsToolButton XtmSettingsToolButton;
GType xtm_settings_tool_button_get_type (void);
GtkWidget * xtm_settings_tool_button_new ();
GtkWidget * xtm_settings_tool_button_new (void);
#endif /* !SETTINGS_TOOL_BUTTON_H */

View File

@@ -26,7 +26,7 @@
typedef struct _XtmSettings XtmSettings;
GType xtm_settings_get_type (void);
XtmSettings * xtm_settings_get_default ();
XtmSettings * xtm_settings_get_default (void);

View File

@@ -83,7 +83,7 @@ static void model_update_task (GtkTreeModel *model, Task *task);
static void model_mark_tree_iter_as_removed (GtkTreeModel *model, GtkTreeIter *iter);
static void model_remove_tree_iter (GtkTreeModel *model, GtkTreeIter *iter);
static void model_find_tree_iter_for_pid (GtkTreeModel *model, guint pid, GtkTreeIter *iter);
static glong __current_timestamp ();
static glong __current_timestamp (void);

View File

@@ -91,7 +91,7 @@ enum
};
void get_owner_uid (guint *owner_uid, gchar **owner_uid_name);
gchar * get_hostname ();
gchar * get_hostname (void);
gboolean send_signal_to_pid (guint pid, gint xtm_signal);
gboolean set_priority_to_pid (guint pid, gint priority);