Merge lp:~gilir/ubiquity/lp-684802 into lp:ubiquity

Proposed by Julien Lavergne
Status: Merged
Merged at revision: 4549
Proposed branch: lp:~gilir/ubiquity/lp-684802
Merge into: lp:ubiquity
Diff against target: 50 lines (+17/-1)
3 files modified
bin/ubiquity-dm (+4/-1)
debian/changelog (+10/-0)
src/panel/panel.c (+3/-0)
To merge this branch: bzr merge lp:~gilir/ubiquity/lp-684802
Reviewer Review Type Date Requested Status
Luke Yelavich (community) Approve
Didier Roche-Tolomelli Pending
Review via email: mp+51671@code.launchpad.net

This proposal supersedes a proposal from 2011-01-23.

Description of the change

Currently, when using a LXDE or Lubuntu session in only-install mode, the panel doesn't wait the support for theming provided by lxsession.
This patch fixes this, by using the same way that gnome-settings-daemon. It also adds the possibility to load the background of the Lubuntu panel, if it's available, and if it can't find the Ubuntu default one.

To post a comment you must log in.
Revision history for this message
Sebastien Bacher (seb128) wrote : Posted in a previous version of this proposal

thank you for your bug report, the diff seems to have some issues though:

- there is a marker change in the changelog which seems buggy
- the pixbuf diff seems you load the lubuntu in any case and lack a }, did you forget some lines?

Revision history for this message
Julien Lavergne (gilir) wrote : Posted in a previous version of this proposal

Branch updated properly.

Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote : Posted in a previous version of this proposal

Hey Julien, thanks for your update.
However, I don't understand this:
46 pixbuf = gdk_pixbuf_new_from_file("/usr/share/themes/Ambiance/gtk-2.0/apps/img/panel.png", NULL);
47 if (pixbuf) {
48 + pixbuf = gdk_pixbuf_new_from_file("/usr/share/lxpanel/images/lubuntu-background.png", NULL);
49 + }
50 + if (pixbuf) {

I think the logic has to be changed. If you want to load the lubuntu one if there is no pixbuf, you should use if (!pixbuf) line 47,

Otherwise, if you want to override the default one with the lubuntu one, I would rather do:

pixbuf = gdk_pixbuf_new_from_file("/usr/share/lxpanel/images/lubuntu-background.png", NULL);
if (!pixbuf) {
    pixbuf = gdk_pixbuf_new_from_file("/usr/share/themes/Ambiance/gtk-2.0/apps/img/panel.png", NULL);
    …

so that the "default" is the latest. the ode seems more logical this way to me

review: Needs Fixing
Revision history for this message
Julien Lavergne (gilir) wrote :

Thanks Didier for the comment.
Yes, the goal is to fallback to lubuntu icon if the standart one is not on the system. I updated my branch and the merge proposal.

Revision history for this message
Luke Yelavich (themuso) wrote :

Thanks for your work. Merging your changes. It will be uploaded when next the installer team upload ubiquity, which is usually fairly often.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bin/ubiquity-dm'
2--- bin/ubiquity-dm 2011-02-19 21:56:03 +0000
3+++ bin/ubiquity-dm 2011-03-01 01:01:09 +0000
4@@ -379,10 +379,13 @@
5 preexec_fn=self.drop_privileges))
6
7 if osextras.find_on_path('lxsession'):
8- extras.append(subprocess.Popen(
9+ proc = subprocess.Popen(
10 ['lxsession','-s','Lubuntu', '-e', 'LXDE', '-a'],
11 stdin=null, stdout=logfile, stderr=logfile,
12 preexec_fn=self.drop_privileges))
13+ #Wait until xsettings handler is launched, to have theme for the panel.
14+ proc.wait()
15+ extras.append(proc)
16
17 if os.path.exists('/usr/lib/ubiquity/panel') and "xfwm4" not in wm_cmd:
18 extras.append(subprocess.Popen(
19
20=== modified file 'debian/changelog'
21--- debian/changelog 2011-02-28 19:59:04 +0000
22+++ debian/changelog 2011-03-01 01:01:09 +0000
23@@ -1,3 +1,13 @@
24+ubiquity (2.5.20) UNRELEASED; urgency=low
25+
26+ * bin/ubiquity-dm:
27+ - Wait lxsession before launching the panel, to have theming support.
28+ (LP: #684802)
29+ * src/panel/panel.c
30+ - Load lxpanel background for the panel when it's available.
31+
32+ -- Julien Lavergne <gilir@ubuntu.com> Tue, 01 Mar 2011 01:26:01 +0100
33+
34 ubiquity (2.5.19) natty; urgency=low
35
36 [ Colin Watson ]
37
38=== modified file 'src/panel/panel.c'
39--- src/panel/panel.c 2011-02-28 19:53:05 +0000
40+++ src/panel/panel.c 2011-03-01 01:01:09 +0000
41@@ -227,6 +227,9 @@
42 GdkPixbuf *pixbuf;
43 GtkPixmap *pixmap;
44 pixbuf = gdk_pixbuf_new_from_file("/usr/share/themes/Ambiance/gtk-2.0/apps/img/panel.png", NULL);
45+ if (!pixbuf) {
46+ pixbuf = gdk_pixbuf_new_from_file("/usr/share/lxpanel/images/lubuntu-background.png", NULL);
47+ }
48 if (pixbuf) {
49 gdk_pixbuf_render_pixmap_and_mask(pixbuf, &pixmap, NULL, 0);
50 if (pixmap)

Subscribers

People subscribed via source and target branches

to status/vote changes: