Merge lp:~jjardon/indicator-datetime/remove_death_code into lp:indicator-datetime/0.3

Proposed by Javier Jardón
Status: Merged
Approved by: Ted Gould
Approved revision: 128
Merged at revision: 129
Proposed branch: lp:~jjardon/indicator-datetime/remove_death_code
Merge into: lp:indicator-datetime/0.3
Diff against target: 193 lines (+1/-161)
4 files modified
configure.ac (+1/-0)
src/Makefile.am (+0/-2)
src/calendar-menu-item.c (+0/-100)
src/calendar-menu-item.h (+0/-59)
To merge this branch: bzr merge lp:~jjardon/indicator-datetime/remove_death_code
Reviewer Review Type Date Requested Status
Ted Gould (community) Approve
Review via email: mp+74227@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Ted Gould (ted) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'configure.ac'
2--- configure.ac 2011-08-18 15:57:14 +0000
3+++ configure.ac 2011-09-06 14:29:23 +0000
4@@ -26,6 +26,7 @@
5 LT_PREREQ([2.2])
6 LT_INIT([disable-static])
7
8+AC_CHECK_LIB([m],[pow])
9
10 AC_ARG_ENABLE([deprecations],
11 [AS_HELP_STRING([--enable-deprecations],
12
13=== modified file 'src/Makefile.am'
14--- src/Makefile.am 2011-06-29 13:10:25 +0000
15+++ src/Makefile.am 2011-09-06 14:29:23 +0000
16@@ -8,8 +8,6 @@
17 datetime-interface.c \
18 datetime-interface.h \
19 gen-datetime-service.xml.c \
20- calendar-menu-item.c \
21- calendar-menu-item.h \
22 datetime-service.c \
23 utils.c \
24 utils.h \
25
26=== removed file 'src/calendar-menu-item.c'
27--- src/calendar-menu-item.c 2010-07-22 19:13:36 +0000
28+++ src/calendar-menu-item.c 1970-01-01 00:00:00 +0000
29@@ -1,100 +0,0 @@
30-/*
31-Calendar menu item dbusmenu "transport" for the corresponding IDO widget.
32-
33-Copyright 2010 Canonical Ltd.
34-
35-Authors:
36- David Barth <david.barth@canonical.com>
37-
38-This program is free software: you can redistribute it and/or modify it
39-under the terms of the GNU General Public License version 3, as published
40-by the Free Software Foundation.
41-
42-This program is distributed in the hope that it will be useful, but
43-WITHOUT ANY WARRANTY; without even the implied warranties of
44-MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
45-PURPOSE. See the GNU General Public License for more details.
46-
47-You should have received a copy of the GNU General Public License along
48-with this program. If not, see <http://www.gnu.org/licenses/>.
49-*/
50-
51-#ifdef HAVE_CONFIG_H
52-#include "config.h"
53-#endif
54-
55-#include <gdk/gdk.h>
56-#include <glib/gi18n.h>
57-#include "calendar-menu-item.h"
58-
59-#include "dbus-shared.h"
60-
61-#include <libdbusmenu-glib/client.h>
62-#include <libdbusmenu-glib/server.h>
63-#include <libdbusmenu-glib/menuitem.h>
64-
65-enum {
66- LAST_SIGNAL
67-};
68-
69-/* static guint signals[LAST_SIGNAL] = { }; */
70-
71-typedef struct _CalendarMenuItemPrivate CalendarMenuItemPrivate;
72-struct _CalendarMenuItemPrivate
73-{
74- void * placeholder;
75-};
76-
77-#define CALENDAR_MENU_ITEM_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), CALENDAR_MENU_ITEM_TYPE, CalendarMenuItemPrivate))
78-
79-/* Prototypes */
80-static void calendar_menu_item_class_init (CalendarMenuItemClass *klass);
81-static void calendar_menu_item_init (CalendarMenuItem *self);
82-static void calendar_menu_item_dispose (GObject *object);
83-static void calendar_menu_item_finalize (GObject *object);
84-
85-G_DEFINE_TYPE (CalendarMenuItem, calendar_menu_item, DBUSMENU_TYPE_MENUITEM);
86-
87-static void
88-calendar_menu_item_class_init (CalendarMenuItemClass *klass)
89-{
90- GObjectClass *object_class = G_OBJECT_CLASS (klass);
91-
92- g_type_class_add_private (klass, sizeof (CalendarMenuItemPrivate));
93-
94- object_class->dispose = calendar_menu_item_dispose;
95- object_class->finalize = calendar_menu_item_finalize;
96-
97- return;
98-}
99-
100-static void
101-calendar_menu_item_init (CalendarMenuItem *self)
102-{
103- return;
104-}
105-
106-static void
107-calendar_menu_item_dispose (GObject *object)
108-{
109- G_OBJECT_CLASS (calendar_menu_item_parent_class)->dispose (object);
110-}
111-
112-static void
113-calendar_menu_item_finalize (GObject *object)
114-{
115- G_OBJECT_CLASS (calendar_menu_item_parent_class)->finalize (object);
116-
117- return;
118-}
119-
120-CalendarMenuItem *
121-calendar_menu_item_new ()
122-{
123- CalendarMenuItem * self = g_object_new(CALENDAR_MENU_ITEM_TYPE, NULL);
124-
125- dbusmenu_menuitem_property_set(DBUSMENU_MENUITEM(self), DBUSMENU_MENUITEM_PROP_TYPE, DBUSMENU_CALENDAR_MENUITEM_TYPE);
126-
127- return self;
128-}
129-
130
131=== removed file 'src/calendar-menu-item.h'
132--- src/calendar-menu-item.h 2010-07-22 19:13:36 +0000
133+++ src/calendar-menu-item.h 1970-01-01 00:00:00 +0000
134@@ -1,59 +0,0 @@
135-/*
136-Calendar menu item dbusmenu "transport" for the corresponding IDO widget.
137-
138-Copyright 2010 Canonical Ltd.
139-
140-Authors:
141- David Barth <david.barth@canonical.com>
142-
143-This program is free software: you can redistribute it and/or modify it
144-under the terms of the GNU General Public License version 3, as published
145-by the Free Software Foundation.
146-
147-This program is distributed in the hope that it will be useful, but
148-WITHOUT ANY WARRANTY; without even the implied warranties of
149-MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
150-PURPOSE. See the GNU General Public License for more details.
151-
152-You should have received a copy of the GNU General Public License along
153-with this program. If not, see <http://www.gnu.org/licenses/>.
154-*/
155-
156-#ifndef __CALENDAR_MENU_ITEM_H__
157-#define __CALENDAR_MENU_ITEM_H__
158-
159-#include <glib.h>
160-#include <glib-object.h>
161-
162-#include <libdbusmenu-glib/menuitem.h>
163-
164-G_BEGIN_DECLS
165-
166-#define CALENDAR_MENU_ITEM_TYPE (calendar_menu_item_get_type ())
167-#define CALENDAR_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CALENDAR_MENU_ITEM_TYPE, CalendarMenuItem))
168-#define CALENDAR_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CALENDAR_MENU_ITEM_TYPE, CalendarMenuItemClass))
169-#define IS_CALENDAR_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CALENDAR_MENU_ITEM_TYPE))
170-#define IS_CALENDAR_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CALENDAR_MENU_ITEM_TYPE))
171-#define CALENDAR_MENU_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CALENDAR_MENU_ITEM_TYPE, CalendarMenuItemClass))
172-
173-#define CALENDAR_MENU_ITEM_SIGNAL_ACTIVATE "activate"
174-#define CALENDAR_MENUITEM_PROP_TEXT "text"
175-
176-typedef struct _CalendarMenuItem CalendarMenuItem;
177-typedef struct _CalendarMenuItemClass CalendarMenuItemClass;
178-
179-struct _CalendarMenuItemClass {
180- DbusmenuMenuitemClass parent_class;
181-};
182-
183-struct _CalendarMenuItem {
184- DbusmenuMenuitem parent;
185-};
186-
187-GType calendar_menu_item_get_type (void);
188-CalendarMenuItem * calendar_menu_item_new ();
189-
190-G_END_DECLS
191-
192-#endif /* __CALENDAR_MENU_ITEM_H__ */
193-

Subscribers

People subscribed via source and target branches