Merge lp:~dbusmenu-team/libdbusmenu/ubuntu into lp:~ubuntu-desktop/libdbusmenu/ubuntu

Proposed by Ted Gould
Status: Merged
Merge reported by: Ken VanDine
Merged at revision: not available
Proposed branch: lp:~dbusmenu-team/libdbusmenu/ubuntu
Merge into: lp:~ubuntu-desktop/libdbusmenu/ubuntu
Diff against target: 129 lines (+28/-8)
6 files modified
configure.ac (+3/-3)
debian/changelog (+9/-0)
libdbusmenu-glib/menuitem.c (+1/-1)
libdbusmenu-glib/menuitem.h (+2/-0)
libdbusmenu-gtk/client.c (+11/-2)
tests/test-gtk-label.json (+2/-2)
To merge this branch: bzr merge lp:~dbusmenu-team/libdbusmenu/ubuntu
Reviewer Review Type Date Requested Status
Ken VanDine Approve
Review via email: mp+22144@code.launchpad.net

Description of the change

0.2.8

To post a comment you must log in.
Revision history for this message
Ken VanDine (ken-vandine) wrote :

Approved!

review: Approve
Revision history for this message
Ken VanDine (ken-vandine) wrote :

Manually merged changes into lp:ubuntu/libdbusmenu (will be there after it gets sponsored)

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 2010-03-04 17:12:16 +0000
3+++ configure.ac 2010-03-25 15:21:37 +0000
4@@ -1,11 +1,11 @@
5
6-AC_INIT(libdbusmenu, 0.2.7, ted@canonical.com)
7+AC_INIT(libdbusmenu, 0.2.8, ted@canonical.com)
8 AC_COPYRIGHT([Copyright 2009,2010 Canonical])
9
10 AC_PREREQ(2.62)
11
12 AM_CONFIG_HEADER(config.h)
13-AM_INIT_AUTOMAKE(libdbusmenu, 0.2.7, [-Wno-portability])
14+AM_INIT_AUTOMAKE(libdbusmenu, 0.2.8, [-Wno-portability])
15
16 AM_MAINTAINER_MODE
17
18@@ -78,7 +78,7 @@
19 ###########################
20
21 LIBDBUSMENU_CURRENT=1
22-LIBDBUSMENU_REVISION=4
23+LIBDBUSMENU_REVISION=5
24 LIBDBUSMENU_AGE=0
25
26 AC_SUBST(LIBDBUSMENU_CURRENT)
27
28=== modified file 'debian/changelog'
29--- debian/changelog 2010-03-04 19:31:31 +0000
30+++ debian/changelog 2010-03-25 15:21:37 +0000
31@@ -1,3 +1,12 @@
32+libdbusmenu (0.2.8-0ubuntu1~ppa1) lucid; urgency=low
33+
34+ * Upstream release 0.2.8
35+ * Adding support for blank icons (LP: #534854)
36+ * Remove unneeded warning (LP: #537312)
37+ * Fix typo in documentation
38+
39+ -- Ted Gould <ted@ubuntu.com> Thu, 25 Mar 2010 10:12:27 -0500
40+
41 libdbusmenu (0.2.7-0ubuntu1) lucid; urgency=low
42
43 * Upstream release 0.2.7
44
45=== modified file 'libdbusmenu-glib/menuitem.c'
46--- libdbusmenu-glib/menuitem.c 2010-02-08 22:02:12 +0000
47+++ libdbusmenu-glib/menuitem.c 2010-03-25 15:21:37 +0000
48@@ -459,7 +459,7 @@
49
50 While the name sounds devious that's exactly what this function
51 does. It takes the list of children from the @mi and clears the
52- internal list. The calling function is no in charge of the ref's
53+ internal list. The calling function is now in charge of the ref's
54 on the children it has taken. A lot of responsibility involved
55 in taking children.
56
57
58=== modified file 'libdbusmenu-glib/menuitem.h'
59--- libdbusmenu-glib/menuitem.h 2010-02-05 18:48:48 +0000
60+++ libdbusmenu-glib/menuitem.h 2010-03-25 15:21:37 +0000
61@@ -66,6 +66,8 @@
62 #define DBUSMENU_MENUITEM_TOGGLE_STATE_CHECKED 1
63 #define DBUSMENU_MENUITEM_TOGGLE_STATE_UNKNOWN -1
64
65+#define DBUSMENU_MENUITEM_ICON_NAME_BLANK "blank-icon"
66+
67 /**
68 DbusmenuMenuitem:
69
70
71=== modified file 'libdbusmenu-gtk/client.c'
72--- libdbusmenu-gtk/client.c 2010-02-04 18:56:49 +0000
73+++ libdbusmenu-gtk/client.c 2010-03-25 15:21:37 +0000
74@@ -411,7 +411,6 @@
75
76 gpointer data = g_object_get_data(G_OBJECT(item), data_menuitem);
77 if (data == NULL) {
78- g_warning("GTK not updated");
79 return NULL;
80 }
81
82@@ -513,7 +512,7 @@
83 if (!g_strcmp0(property, DBUSMENU_MENUITEM_PROP_ICON_DATA)) {
84 /* If we have an image already built from a name that is
85 way better than a pixbuf. Keep it. */
86- if (gtkimage != NULL && gtk_image_get_storage_type(GTK_IMAGE(gtkimage)) == GTK_IMAGE_ICON_NAME) {
87+ if (gtkimage != NULL && (gtk_image_get_storage_type(GTK_IMAGE(gtkimage)) == GTK_IMAGE_ICON_NAME || gtk_image_get_storage_type(GTK_IMAGE(gtkimage)) == GTK_IMAGE_EMPTY)) {
88 return;
89 }
90 }
91@@ -525,6 +524,8 @@
92 /* If there is no name, by golly we want no
93 icon either. */
94 gtkimage = NULL;
95+ } else if (g_strcmp0(iconname, DBUSMENU_MENUITEM_ICON_NAME_BLANK) == 0) {
96+ gtkimage = gtk_image_new();
97 } else {
98 /* Look to see if we want to have an icon with the 'ltr' or
99 'rtl' depending on what we're doing. */
100@@ -584,6 +585,14 @@
101
102 }
103
104+ if (gtkimage != NULL) {
105+ gint width, height;
106+ gtk_icon_size_lookup(GTK_ICON_SIZE_MENU, &width, &height);
107+
108+ gtk_widget_set_size_request(GTK_WIDGET(gtkimage), width, height);
109+ gtk_misc_set_alignment(GTK_MISC(gtkimage), 0.0, 0.5);
110+ }
111+
112 genericmenuitem_set_image(GENERICMENUITEM(gimi), gtkimage);
113
114 return;
115
116=== modified file 'tests/test-gtk-label.json'
117--- tests/test-gtk-label.json 2010-02-05 17:53:19 +0000
118+++ tests/test-gtk-label.json 2010-03-25 15:21:37 +0000
119@@ -242,8 +242,8 @@
120 "label": "sad"},
121 {"id": 89,
122 "type": "standard",
123- "icon-name": "face-sick",
124- "label": "sick"}
125+ "icon-name": "blank-icon",
126+ "label": "blank"}
127 ]
128 },
129 {"id": 9, "type": "standard",

Subscribers

People subscribed via source and target branches

to all changes: