Fix compiler warnings.
This commit is contained in:
@@ -38,7 +38,7 @@ struct _App
|
|||||||
typedef struct _XtmAppManager XtmAppManager;
|
typedef struct _XtmAppManager XtmAppManager;
|
||||||
|
|
||||||
GType xtm_app_manager_get_type (void);
|
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);
|
const GArray * xtm_app_manager_get_app_list (XtmAppManager *manager);
|
||||||
App * xtm_app_manager_get_app_from_pid (XtmAppManager *manager, gint pid);
|
App * xtm_app_manager_get_app_from_pid (XtmAppManager *manager, gint pid);
|
||||||
|
|
||||||
|
|||||||
@@ -35,8 +35,8 @@ struct _XtmExecToolButton
|
|||||||
};
|
};
|
||||||
G_DEFINE_TYPE (XtmExecToolButton, xtm_exec_tool_button, GTK_TYPE_MENU_TOOL_BUTTON)
|
G_DEFINE_TYPE (XtmExecToolButton, xtm_exec_tool_button, GTK_TYPE_MENU_TOOL_BUTTON)
|
||||||
|
|
||||||
static GtkWidget * construct_menu ();
|
static GtkWidget * construct_menu (void);
|
||||||
static void execute_default_command ();
|
static void execute_default_command (void);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -27,6 +27,6 @@
|
|||||||
typedef struct _XtmExecToolButton XtmExecToolButton;
|
typedef struct _XtmExecToolButton XtmExecToolButton;
|
||||||
|
|
||||||
GType xtm_exec_tool_button_get_type (void);
|
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 */
|
#endif /* !EXEC_TOOL_BUTTON_H */
|
||||||
|
|||||||
@@ -27,6 +27,6 @@
|
|||||||
typedef struct _XtmProcessStatusbar XtmProcessStatusbar;
|
typedef struct _XtmProcessStatusbar XtmProcessStatusbar;
|
||||||
|
|
||||||
GType xtm_process_statusbar_get_type (void);
|
GType xtm_process_statusbar_get_type (void);
|
||||||
GtkWidget * xtm_process_statusbar_new ();
|
GtkWidget * xtm_process_statusbar_new (void);
|
||||||
|
|
||||||
#endif /* !PROCESS_STATUSBAR_H */
|
#endif /* !PROCESS_STATUSBAR_H */
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ enum
|
|||||||
typedef struct _XtmProcessTreeView XtmProcessTreeView;
|
typedef struct _XtmProcessTreeView XtmProcessTreeView;
|
||||||
|
|
||||||
GType xtm_process_tree_view_get_type (void);
|
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);
|
void xtm_process_tree_view_get_sort_column_id (XtmProcessTreeView *treeview, gint *sort_column_id, GtkSortType *sort_type);
|
||||||
|
|
||||||
#endif /* !PROCESS_TREE_VIEW_H */
|
#endif /* !PROCESS_TREE_VIEW_H */
|
||||||
|
|||||||
@@ -33,8 +33,8 @@ struct _XtmSettingsToolButton
|
|||||||
};
|
};
|
||||||
G_DEFINE_TYPE (XtmSettingsToolButton, xtm_settings_tool_button, GTK_TYPE_MENU_TOOL_BUTTON)
|
G_DEFINE_TYPE (XtmSettingsToolButton, xtm_settings_tool_button, GTK_TYPE_MENU_TOOL_BUTTON)
|
||||||
|
|
||||||
static GtkWidget * construct_menu ();
|
static GtkWidget * construct_menu (void);
|
||||||
static void show_settings_dialog ();
|
static void show_settings_dialog (XtmSettingsToolButton *button);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -27,6 +27,6 @@
|
|||||||
typedef struct _XtmSettingsToolButton XtmSettingsToolButton;
|
typedef struct _XtmSettingsToolButton XtmSettingsToolButton;
|
||||||
|
|
||||||
GType xtm_settings_tool_button_get_type (void);
|
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 */
|
#endif /* !SETTINGS_TOOL_BUTTON_H */
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
typedef struct _XtmSettings XtmSettings;
|
typedef struct _XtmSettings XtmSettings;
|
||||||
|
|
||||||
GType xtm_settings_get_type (void);
|
GType xtm_settings_get_type (void);
|
||||||
XtmSettings * xtm_settings_get_default ();
|
XtmSettings * xtm_settings_get_default (void);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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_mark_tree_iter_as_removed (GtkTreeModel *model, GtkTreeIter *iter);
|
||||||
static void model_remove_tree_iter (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 void model_find_tree_iter_for_pid (GtkTreeModel *model, guint pid, GtkTreeIter *iter);
|
||||||
static glong __current_timestamp ();
|
static glong __current_timestamp (void);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ enum
|
|||||||
};
|
};
|
||||||
|
|
||||||
void get_owner_uid (guint *owner_uid, gchar **owner_uid_name);
|
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 send_signal_to_pid (guint pid, gint xtm_signal);
|
||||||
gboolean set_priority_to_pid (guint pid, gint priority);
|
gboolean set_priority_to_pid (guint pid, gint priority);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user