1 |
miknix 09/04/07 15:28:40 |
2 |
|
3 |
Added: gentoo-badge2.png gpe-login-0.95-gentoologo.patch |
4 |
Log: |
5 |
Add gentoo logo to gpe-login. |
6 |
Fix incorrect deps on RDEPEND. |
7 |
(Portage version: 2.1.6.7/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 gpe-base/gpe-login/files/gentoo-badge2.png |
11 |
|
12 |
<<Binary file>> |
13 |
|
14 |
|
15 |
1.1 gpe-base/gpe-login/files/gpe-login-0.95-gentoologo.patch |
16 |
|
17 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/gpe-base/gpe-login/files/gpe-login-0.95-gentoologo.patch?rev=1.1&view=markup |
18 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/gpe-base/gpe-login/files/gpe-login-0.95-gentoologo.patch?rev=1.1&content-type=text/plain |
19 |
|
20 |
Index: gpe-login-0.95-gentoologo.patch |
21 |
=================================================================== |
22 |
--- gpe-login.c 2008-08-13 19:08:28.000000000 +0100 |
23 |
+++ /home/miknix/Community/gpe-login.c 2009-04-07 14:16:16.000000000 +0100 |
24 |
@@ -1,6 +1,9 @@ |
25 |
/* |
26 |
* Copyright (C) 2002, 2003, 2005 Philip Blundell <philb@×××.org> |
27 |
* |
28 |
+ * Add gentoo logo widget |
29 |
+ * Copyright (C) 2009, Angelo Arrifano <miknix@g.o> |
30 |
+ * |
31 |
* This program is free software; you can redistribute it and/or |
32 |
* modify it under the terms of the GNU General Public License |
33 |
* as published by the Free Software Foundation; either version |
34 |
@@ -1584,6 +1587,8 @@ main (int argc, char *argv[]) |
35 |
FILE *cfp; |
36 |
GdkCursor *cursor; |
37 |
GtkWidget *socket_frame; |
38 |
+ GtkWidget *logo; |
39 |
+ |
40 |
|
41 |
/* gchar *gpe_catindent = gpe_get_catindent (); */ |
42 |
/* guint gpe_catspacing = gpe_get_catspacing (); */ |
43 |
@@ -2042,6 +2047,14 @@ main (int argc, char *argv[]) |
44 |
gtk_socket_steal (GTK_SOCKET (socket), xkbd_xid); |
45 |
} |
46 |
|
47 |
+ /* Show up a beauty gentoo powered logo */ |
48 |
+#define GENTOO_LOGO_DIR "/usr/share/pixmaps/gpe-login-gentoo.png" |
49 |
+ if (! access(GENTOO_LOGO_DIR, R_OK)) { |
50 |
+ logo = gtk_image_new_from_file(GENTOO_LOGO_DIR); |
51 |
+ gtk_box_pack_end (GTK_BOX (vbox2), logo, FALSE, FALSE, 0); |
52 |
+ gtk_widget_show(logo); |
53 |
+ } |
54 |
+ |
55 |
gtk_main (); |
56 |
|
57 |
cleanup_children (); |