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
=== modified file 'data/unity-greeter.conf'
--- data/unity-greeter.conf 2011-08-23 02:11:54 +0000
+++ data/unity-greeter.conf 2011-08-26 17:16:29 +0000
@@ -1,7 +1,6 @@
1#1#
2# background = Background file to use, either an image path or a color (e.g. #772953)2# background = Background file to use, either an image path or a color (e.g. #772953)
3# os-name = Name of this OS3# logo = Logo file to use
4# os-version = Version of this OS
5# theme-name = GTK+ theme to use4# theme-name = GTK+ theme to use
6# font-name = Font to use5# font-name = Font to use
7# xft-antialias = Whether to antialias Xft fonts (true or false)6# xft-antialias = Whether to antialias Xft fonts (true or false)
@@ -11,8 +10,7 @@
11#10#
12[greeter]11[greeter]
13background=/usr/share/backgrounds/warty-final-ubuntu.png12background=/usr/share/backgrounds/warty-final-ubuntu.png
14os-name=ubuntu13logo=/usr/share/unity-greeter/logo.png
15os-version=11.10
16theme-name=Ambiance14theme-name=Ambiance
17icon-theme-name=ubuntu-mono-dark15icon-theme-name=ubuntu-mono-dark
18font-name=Ubuntu 1116font-name=Ubuntu 11
1917
=== modified file 'src/unity-greeter.vala'
--- src/unity-greeter.vala 2011-08-25 08:34:24 +0000
+++ src/unity-greeter.vala 2011-08-26 17:16:29 +0000
@@ -76,6 +76,7 @@
76 user_list.respond_to_prompt.connect (respond_to_prompt_cb);76 user_list.respond_to_prompt.connect (respond_to_prompt_cb);
77 user_list.start_session.connect (start_session_cb);77 user_list.start_session.connect (start_session_cb);
78 user_list.default_background = get_config_value ("greeter", "background", "#000000");78 user_list.default_background = get_config_value ("greeter", "background", "#000000");
79 user_list.set_logo (get_config_value ("greeter", "logo", Path.build_filename (Config.PKGDATADIR, "logo.png", null)));
79 user_list.show ();80 user_list.show ();
8081
81 foreach (var session in LightDM.get_sessions ())82 foreach (var session in LightDM.get_sessions ())
8283
=== modified file 'src/user-list.vala'
--- src/user-list.vala 2011-08-25 08:33:14 +0000
+++ src/user-list.vala 2011-08-26 17:16:29 +0000
@@ -117,6 +117,12 @@
117 }117 }
118 }118 }
119119
120 public void set_logo (string logo_path)
121 {
122 logo_surface = new Cairo.ImageSurface.from_png (logo_path);
123 logo_pattern = new Cairo.Pattern.for_surface (logo_surface);
124 }
125
120 public UserList ()126 public UserList ()
121 {127 {
122 can_focus = false;128 can_focus = false;
@@ -128,9 +134,6 @@
128 FreeType.new_face (library, "/usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-R.ttf", 0, out face);134 FreeType.new_face (library, "/usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-R.ttf", 0, out face);
129 font_face = Cairo.ft_font_face_create_for_ft_face (face, 0);135 font_face = Cairo.ft_font_face_create_for_ft_face (face, 0);
130136
131 logo_surface = new Cairo.ImageSurface.from_png (Path.build_filename (Config.PKGDATADIR, "logo.png", null));
132 logo_pattern = new Cairo.Pattern.for_surface (logo_surface);
133
134 menubar = new Gtk.MenuBar ();137 menubar = new Gtk.MenuBar ();
135138
136 menubar.draw.connect_after (menubar_draw_cb);139 menubar.draw.connect_after (menubar_draw_cb);

Subscribers

People subscribed via source and target branches

to all changes: