1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
/*
* alm-cc.c
* Copyright (C) Manish Sinha 2012 <manishsinha@ubuntu.com>
*
alm is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* alm is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.";
*/
#include <gtk/gtk.h>
#include <libgnome-control-center/cc-panel.h>
#include "config.h"
extern void* alm_activity_log_manager_new (void);
#define ALM_TYPE_MAIN_WINDOW_PANEL alm_main_window_panel_get_type()
typedef struct _AlmMainWindowPanel AlmMainWindowPanel;
typedef struct _AlmMainWindowPanelClass AlmMainWindowPanelClass;
struct _AlmMainWindowPanel
{
CcPanel parent;
};
struct _AlmMainWindowPanelClass
{
CcPanelClass parent_class;
};
G_DEFINE_DYNAMIC_TYPE (AlmMainWindowPanel, alm_main_window_panel, CC_TYPE_PANEL)
static void
alm_main_window_panel_class_finalize (AlmMainWindowPanelClass *klass)
{
}
static void
alm_main_window_panel_class_init (AlmMainWindowPanelClass *klass)
{
}
static void
alm_main_window_panel_init (AlmMainWindowPanel *self)
{
GtkWidget *widget = GTK_WIDGET (alm_activity_log_manager_new ());
gtk_widget_show_all (widget);
gtk_container_add (GTK_CONTAINER (self), widget);
}
static gboolean
delayed_init ()
{
return FALSE;
}
void
g_io_module_load (GIOModule *module)
{
bindtextdomain (GETTEXT_PACKAGE, LOCALE_DIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
GtkIconTheme *theme = gtk_icon_theme_get_default ();
gtk_icon_theme_append_search_path (theme, THEME_DIR);
alm_main_window_panel_register_type (G_TYPE_MODULE (module));
g_io_extension_point_implement (CC_SHELL_PANEL_EXTENSION_POINT,
ALM_TYPE_MAIN_WINDOW_PANEL,
"alm", 0);
g_idle_add(delayed_init, NULL);
}
void
g_io_module_unload (GIOModule *module)
{
}
|