1 |
vostorga 11/07/27 16:34:07 |
2 |
|
3 |
Added: lxpanel-0.5.7-requisition.patch |
4 |
lxpanel-0.5.7-tooltip-netstatus.patch |
5 |
Log: |
6 |
Fix usage of GtkRequisition and tooltip |
7 |
|
8 |
(Portage version: 2.1.10.3/cvs/Linux i686) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 lxde-base/lxpanel/files/lxpanel-0.5.7-requisition.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/lxde-base/lxpanel/files/lxpanel-0.5.7-requisition.patch?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/lxde-base/lxpanel/files/lxpanel-0.5.7-requisition.patch?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: lxpanel-0.5.7-requisition.patch |
17 |
=================================================================== |
18 |
From 200121f93d7c6ac9aadb53c58f45906ecd1e3b7a Mon Sep 17 00:00:00 2001 |
19 |
From: Julien Lavergne <julien.lavergne@×××××.com> |
20 |
Date: Sun, 24 Jul 2011 15:43:24 +0200 |
21 |
Subject: [PATCH] Fix usage of GtkRequisition |
22 |
|
23 |
--- |
24 |
src/plugins/menu.c | 8 ++++---- |
25 |
1 files changed, 4 insertions(+), 4 deletions(-) |
26 |
|
27 |
diff --git a/src/plugins/menu.c b/src/plugins/menu.c |
28 |
index 59a8dad..6d0ad9c 100644 |
29 |
--- a/src/plugins/menu.c |
30 |
+++ b/src/plugins/menu.c |
31 |
@@ -142,10 +142,10 @@ menu_pos(GtkMenu *menu, gint *x, gint *y, gboolean *push_in, GtkWidget *widget) |
32 |
gdk_window_get_origin(widget->window, &ox, &oy); |
33 |
#endif |
34 |
#if GTK_CHECK_VERSION(2,20,0) |
35 |
- GtkRequisition *requisition; |
36 |
- gtk_widget_get_requisition(GTK_WIDGET(menu),requisition); |
37 |
- w = requisition->width; |
38 |
- h = requisition->height; |
39 |
+ GtkRequisition requisition; |
40 |
+ gtk_widget_get_requisition(GTK_WIDGET(menu), &requisition); |
41 |
+ w = requisition.width; |
42 |
+ h = requisition.height; |
43 |
|
44 |
#else |
45 |
w = GTK_WIDGET(menu)->requisition.width; |
46 |
-- |
47 |
1.7.0.1 |
48 |
|
49 |
|
50 |
|
51 |
|
52 |
1.1 lxde-base/lxpanel/files/lxpanel-0.5.7-tooltip-netstatus.patch |
53 |
|
54 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/lxde-base/lxpanel/files/lxpanel-0.5.7-tooltip-netstatus.patch?rev=1.1&view=markup |
55 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/lxde-base/lxpanel/files/lxpanel-0.5.7-tooltip-netstatus.patch?rev=1.1&content-type=text/plain |
56 |
|
57 |
Index: lxpanel-0.5.7-tooltip-netstatus.patch |
58 |
=================================================================== |
59 |
From c30911ee2846a7ab544552651e679786483f2168 Mon Sep 17 00:00:00 2001 |
60 |
From: Andrea Florio <andrea@××××××××.org> |
61 |
Date: Mon, 25 Jul 2011 00:55:29 +0200 |
62 |
Subject: [PATCH] fixed error in tooltipS function call |
63 |
|
64 |
--- |
65 |
src/plugins/netstatus/netstatus-icon.c | 3 ++- |
66 |
1 files changed, 2 insertions(+), 1 deletions(-) |
67 |
|
68 |
diff --git a/src/plugins/netstatus/netstatus-icon.c b/src/plugins/netstatus/netstatus-icon.c |
69 |
index 2cd3ccb..b3bfc19 100644 |
70 |
--- a/src/plugins/netstatus/netstatus-icon.c |
71 |
+++ b/src/plugins/netstatus/netstatus-icon.c |
72 |
@@ -26,6 +26,7 @@ |
73 |
|
74 |
#include <gtk/gtk.h> |
75 |
#include <glib/gi18n.h> |
76 |
+#include <gtk/gtktooltips.h> |
77 |
|
78 |
#include "netstatus-util.h" |
79 |
#include "netstatus-enums.h" |
80 |
@@ -899,7 +900,7 @@ netstatus_icon_instance_init (NetstatusIcon *icon, |
81 |
gtk_container_add (GTK_CONTAINER (icon), icon->priv->signal_image); |
82 |
gtk_widget_hide (icon->priv->signal_image); |
83 |
|
84 |
- icon->priv->tooltips = gtk_tooltip_new (); |
85 |
+ icon->priv->tooltips = gtk_tooltips_new (); |
86 |
g_object_ref (icon->priv->tooltips); |
87 |
gtk_object_sink (GTK_OBJECT (icon->priv->tooltips)); |
88 |
|
89 |
-- |
90 |
1.7.0.1 |