Merge lp:~mterry/unity-greeter/custom-logo into lp:~robert-ancell/unity-greeter/trunk

Proposed by Michael Terry
Status: Merged
Merged at revision: 110
Proposed branch: lp:~mterry/unity-greeter/custom-logo
Merge into: lp:~robert-ancell/unity-greeter/trunk
Diff against target: 61 lines (+9/-7)
3 files modified
data/unity-greeter.conf (+2/-4)
src/unity-greeter.vala (+1/-0)
src/user-list.vala (+6/-3)
To merge this branch: bzr merge lp:~mterry/unity-greeter/custom-logo
Reviewer Review Type Date Requested Status
Robert Ancell Pending
Review via email: mp+73083@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'data/unity-greeter.conf'
2--- data/unity-greeter.conf 2011-08-23 02:11:54 +0000
3+++ data/unity-greeter.conf 2011-08-26 17:16:29 +0000
4@@ -1,7 +1,6 @@
5 #
6 # background = Background file to use, either an image path or a color (e.g. #772953)
7-# os-name = Name of this OS
8-# os-version = Version of this OS
9+# logo = Logo file to use
10 # theme-name = GTK+ theme to use
11 # font-name = Font to use
12 # xft-antialias = Whether to antialias Xft fonts (true or false)
13@@ -11,8 +10,7 @@
14 #
15 [greeter]
16 background=/usr/share/backgrounds/warty-final-ubuntu.png
17-os-name=ubuntu
18-os-version=11.10
19+logo=/usr/share/unity-greeter/logo.png
20 theme-name=Ambiance
21 icon-theme-name=ubuntu-mono-dark
22 font-name=Ubuntu 11
23
24=== modified file 'src/unity-greeter.vala'
25--- src/unity-greeter.vala 2011-08-25 08:34:24 +0000
26+++ src/unity-greeter.vala 2011-08-26 17:16:29 +0000
27@@ -76,6 +76,7 @@
28 user_list.respond_to_prompt.connect (respond_to_prompt_cb);
29 user_list.start_session.connect (start_session_cb);
30 user_list.default_background = get_config_value ("greeter", "background", "#000000");
31+ user_list.set_logo (get_config_value ("greeter", "logo", Path.build_filename (Config.PKGDATADIR, "logo.png", null)));
32 user_list.show ();
33
34 foreach (var session in LightDM.get_sessions ())
35
36=== modified file 'src/user-list.vala'
37--- src/user-list.vala 2011-08-25 08:33:14 +0000
38+++ src/user-list.vala 2011-08-26 17:16:29 +0000
39@@ -117,6 +117,12 @@
40 }
41 }
42
43+ public void set_logo (string logo_path)
44+ {
45+ logo_surface = new Cairo.ImageSurface.from_png (logo_path);
46+ logo_pattern = new Cairo.Pattern.for_surface (logo_surface);
47+ }
48+
49 public UserList ()
50 {
51 can_focus = false;
52@@ -128,9 +134,6 @@
53 FreeType.new_face (library, "/usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-R.ttf", 0, out face);
54 font_face = Cairo.ft_font_face_create_for_ft_face (face, 0);
55
56- logo_surface = new Cairo.ImageSurface.from_png (Path.build_filename (Config.PKGDATADIR, "logo.png", null));
57- logo_pattern = new Cairo.Pattern.for_surface (logo_surface);
58-
59 menubar = new Gtk.MenuBar ();
60
61 menubar.draw.connect_after (menubar_draw_cb);

Subscribers

People subscribed via source and target branches

to all changes: