/gpump/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/gpump/trunk
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
/* c-basic-offset: 2; tab-width: 2; indent-tabs-mode: nil
 * vi: set shiftwidth=2 tabstop=2 expandtab:
 * :indentSize=2:tabSize=2:noTabs=true:
 */

#include "GPumpApp.h"

#define GPUMP_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((GPumpApp *) obj)->priv)

G_DEFINE_TYPE (GPumpApp, gpump_app, GTK_TYPE_APPLICATION)

struct GPumpAppPrivate {
  
  GSettings * ui_settings;
  GSettings * login_settings;
  
  /* Widgets */
  GtkWidget * window;
  GtkWidget * header_bar;
  GtkWidget * layout; /* GtkBox */
  GtkWidget * post_list_view; /* GtkTreeView */
  GtkListStore * post_list_store;
};

/* * Callback and private function declarations *******************************/
void gpump_app_class_init (GPumpAppClass * klass);
void gpump_app_activate (GApplication * application);
void gpump_app_init (GPumpApp * self);

/* * Class functions **********************************************************/
GPumpApp * gpump_app_new (void) {
  GPumpApp * self = g_object_new (GPUMP_TYPE_APP,
                       "application-id", "org.gego.gpump",
                       "flags",G_APPLICATION_FLAGS_NONE,
                       NULL);
  return self;
}

void gpump_app_init (GPumpApp * self) {
  
}

void gpump_app_class_init (GPumpAppClass * klass) {
  g_print("GPumpApp class init.\n");
  
  // GObject * object_class = G_OBJECT_CLASS (klass);
  GApplicationClass * application_class = G_APPLICATION_CLASS (klass);
  
  application_class->activate = gpump_app_activate;
  
  g_type_class_add_private (klass, sizeof(GPumpApp));
  
  g_print ("GPumpApp class init done.\n");
}


void gpump_app_activate (GApplication * application) {
  g_print ("GPumpApp activate.\n");
  
  
  
  g_print ("done GPumpApp activate.\n");
}



/* * Callback implemenations **************************************************/