Make xtm_process_window_show() public, GApplication will use it to activate a running instance.
This commit is contained in:
@@ -55,7 +55,6 @@ struct _XtmProcessWindow
|
||||
G_DEFINE_TYPE (XtmProcessWindow, xtm_process_window, GTK_TYPE_WIDGET)
|
||||
|
||||
static void xtm_process_window_finalize (GObject *object);
|
||||
static void xtm_process_window_show (GtkWidget *widget);
|
||||
static void xtm_process_window_hide (GtkWidget *widget);
|
||||
|
||||
static void emit_destroy_signal (XtmProcessWindow *window);
|
||||
@@ -377,7 +376,7 @@ xtm_process_window_new (void)
|
||||
return g_object_new (XTM_TYPE_PROCESS_WINDOW, NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
void
|
||||
xtm_process_window_show (GtkWidget *widget)
|
||||
{
|
||||
g_return_if_fail (GTK_IS_WIDGET (widget));
|
||||
|
||||
@@ -28,6 +28,7 @@ typedef struct _XtmProcessWindow XtmProcessWindow;
|
||||
|
||||
GType xtm_process_window_get_type (void);
|
||||
GtkWidget * xtm_process_window_new (void);
|
||||
void xtm_process_window_show (GtkWidget *widget);
|
||||
GtkTreeModel * xtm_process_window_get_model (XtmProcessWindow *window);
|
||||
void xtm_process_window_set_system_info (XtmProcessWindow *window, guint num_processes, gfloat cpu, gfloat memory, gfloat swap);
|
||||
void xtm_process_window_show_swap_usage (XtmProcessWindow *window, gboolean show_swap_usage);
|
||||
|
||||
Reference in New Issue
Block a user