r1244 - trunk/src/target/OM-2007/applications/openmoko-footer/src
zhiyong_sun at sita.openmoko.org
zhiyong_sun at sita.openmoko.org
Mon Mar 5 04:46:59 CET 2007
Author: zhiyong_sun
Date: 2007-03-05 04:46:45 +0100 (Mon, 05 Mar 2007)
New Revision: 1244
Modified:
trunk/src/target/OM-2007/applications/openmoko-footer/src/callbacks.c
trunk/src/target/OM-2007/applications/openmoko-footer/src/footer.h
trunk/src/target/OM-2007/applications/openmoko-footer/src/main.c
Log:
use DBUS_BUS_SYSTEM bus connection instead of DBUS_BUS_SESSION
Modified: trunk/src/target/OM-2007/applications/openmoko-footer/src/callbacks.c
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-footer/src/callbacks.c 2007-03-04 23:29:52 UTC (rev 1243)
+++ trunk/src/target/OM-2007/applications/openmoko-footer/src/callbacks.c 2007-03-05 03:46:45 UTC (rev 1244)
@@ -18,9 +18,6 @@
*/
#include <glib.h>
#include <X11/Xlib.h>
-#ifndef DBUS_API_SUBJECT_TO_CHANGE
-#define DBUS_API_SUBJECT_TO_CHANGE
-#endif
#include <dbus/dbus.h>
#include <gdk/gdk.h>
#include <glib/gthread.h>
Modified: trunk/src/target/OM-2007/applications/openmoko-footer/src/footer.h
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-footer/src/footer.h 2007-03-04 23:29:52 UTC (rev 1243)
+++ trunk/src/target/OM-2007/applications/openmoko-footer/src/footer.h 2007-03-05 03:46:45 UTC (rev 1244)
@@ -53,23 +53,10 @@
typedef struct _FooterClass FooterClass;
/**
- * @typedef OMFooterApp
+ * @typedef OMFooter
*
* Opaque structure used for representing an Openmoko footer app UI.
*/
-/*struct _Footer
-{
- GtkHBox hbox;
- GtkButton* leftbutton;
- GtkWidget* leftbtnalign;
- GtkHBox* leftbtnhbox;
- GtkImage* leftbtnimage;
- GtkProgressBar* progressbar;
- GtkButton* rightbutton;
- GtkWidget* rightbtnalign;
- GtkHBox* rightbtnhbox;
- GtkImage* rightbtnimage;
-};*/
struct _Footer
{
GtkHBox hbox;
Modified: trunk/src/target/OM-2007/applications/openmoko-footer/src/main.c
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-footer/src/main.c 2007-03-04 23:29:52 UTC (rev 1243)
+++ trunk/src/target/OM-2007/applications/openmoko-footer/src/main.c 2007-03-05 03:46:45 UTC (rev 1244)
@@ -19,9 +19,6 @@
#include <stdlib.h>
#include <stdio.h>
-#ifndef DBUS_API_SUBJECT_TO_CHANGE
-#define DBUS_API_SUBJECT_TO_CHANGE
-#endif
#include <dbus/dbus-glib-lowlevel.h>
#include "main.h"
@@ -46,7 +43,7 @@
exit (-1);
}
- app->bus = dbus_bus_get (DBUS_BUS_SESSION, &error);
+ app->bus = dbus_bus_get (DBUS_BUS_SYSTEM, &error);
if (!app->bus)
{
More information about the commitlog
mailing list