This commit is contained in:
Matthias Clasen 2011-10-17 22:19:10 -04:00
parent 2a80a697e3
commit 591be0e285
5 changed files with 59 additions and 25 deletions

1
.gitignore vendored
View File

@ -11,3 +11,4 @@ gtk+-2.21.5.tar.bz2
/gtk+-2.24.4.tar.bz2 /gtk+-2.24.4.tar.bz2
/gtk+-2.24.5.tar.xz /gtk+-2.24.5.tar.xz
/gtk+-2.24.6.tar.xz /gtk+-2.24.6.tar.xz
/gtk+-2.24.7.tar.xz

36
gtk2-schar.patch Normal file
View File

@ -0,0 +1,36 @@
diff -up gtk+-2.24.7/gdk/gdkmarshalers.c.schar gtk+-2.24.7/gdk/gdkmarshalers.c
--- gtk+-2.24.7/gdk/gdkmarshalers.c.schar 2011-10-17 18:05:32.000000000 -0400
+++ gtk+-2.24.7/gdk/gdkmarshalers.c 2011-10-17 20:07:54.859431530 -0400
@@ -5,7 +5,7 @@
#ifdef G_ENABLE_DEBUG
#define g_marshal_value_peek_boolean(v) g_value_get_boolean (v)
-#define g_marshal_value_peek_char(v) g_value_get_schar (v)
+#define g_marshal_value_peek_char(v) g_value_get_char (v)
#define g_marshal_value_peek_uchar(v) g_value_get_uchar (v)
#define g_marshal_value_peek_int(v) g_value_get_int (v)
#define g_marshal_value_peek_uint(v) g_value_get_uint (v)
diff -up gtk+-2.24.7/gtk/gtkmarshal.c.schar gtk+-2.24.7/gtk/gtkmarshal.c
--- gtk+-2.24.7/gtk/gtkmarshal.c.schar 2011-10-17 20:10:48.682425316 -0400
+++ gtk+-2.24.7/gtk/gtkmarshal.c 2011-10-17 20:10:56.723425027 -0400
@@ -6,7 +6,7 @@
#ifdef G_ENABLE_DEBUG
#define g_marshal_value_peek_boolean(v) g_value_get_boolean (v)
-#define g_marshal_value_peek_char(v) g_value_get_schar (v)
+#define g_marshal_value_peek_char(v) g_value_get_char (v)
#define g_marshal_value_peek_uchar(v) g_value_get_uchar (v)
#define g_marshal_value_peek_int(v) g_value_get_int (v)
#define g_marshal_value_peek_uint(v) g_value_get_uint (v)
diff -up gtk+-2.24.7/gtk/gtkmarshalers.c.schar gtk+-2.24.7/gtk/gtkmarshalers.c
--- gtk+-2.24.7/gtk/gtkmarshalers.c.schar 2011-10-17 18:05:54.000000000 -0400
+++ gtk+-2.24.7/gtk/gtkmarshalers.c 2011-10-17 20:07:54.860431529 -0400
@@ -6,7 +6,7 @@
#ifdef G_ENABLE_DEBUG
#define g_marshal_value_peek_boolean(v) g_value_get_boolean (v)
-#define g_marshal_value_peek_char(v) g_value_get_schar (v)
+#define g_marshal_value_peek_char(v) g_value_get_char (v)
#define g_marshal_value_peek_uchar(v) g_value_get_uchar (v)
#define g_marshal_value_peek_int(v) g_value_get_int (v)
#define g_marshal_value_peek_uint(v) g_value_get_uint (v)

View File

@ -17,7 +17,7 @@
Summary: The GIMP ToolKit (GTK+), a library for creating GUIs for X Summary: The GIMP ToolKit (GTK+), a library for creating GUIs for X
Name: gtk2 Name: gtk2
Version: 2.24.6 Version: 2.24.7
Release: 1%{?dist} Release: 1%{?dist}
License: LGPLv2+ License: LGPLv2+
Group: System Environment/Libraries Group: System Environment/Libraries
@ -39,6 +39,7 @@ Patch8: tooltip-positioning.patch
#Patch14: gtk2-landscape-pdf-print.patch #Patch14: gtk2-landscape-pdf-print.patch
# https://bugzilla.gnome.org/show_bug.cgi?id=611313 # https://bugzilla.gnome.org/show_bug.cgi?id=611313
Patch15: window-dragging.patch Patch15: window-dragging.patch
Patch16: gtk2-schar.patch
BuildRequires: atk-devel >= %{atk_version} BuildRequires: atk-devel >= %{atk_version}
BuildRequires: glib2-devel >= %{glib2_version} BuildRequires: glib2-devel >= %{glib2_version}
@ -155,6 +156,7 @@ This package contains developer documentation for the GTK+ widget toolkit.
%patch8 -p1 -b .tooltip-positioning %patch8 -p1 -b .tooltip-positioning
#%patch14 -p1 -b .landscape-pdf-print #%patch14 -p1 -b .landscape-pdf-print
%patch15 -p1 -b .window-dragging %patch15 -p1 -b .window-dragging
%patch16 -p1 -b .schar
%build %build
(if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; CONFIGFLAGS=--enable-gtk-doc; fi; (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; CONFIGFLAGS=--enable-gtk-doc; fi;
@ -341,6 +343,9 @@ fi
%doc tmpdocs/examples %doc tmpdocs/examples
%changelog %changelog
* Mon Oct 17 2011 Matthias Clasen <mclasen@redhat.com> - 2.24.7-1
- Update to 2.24.7
* Tue Aug 30 2011 Matthias Clasen <mclasen@redhat.com> - 2.24.6-1 * Tue Aug 30 2011 Matthias Clasen <mclasen@redhat.com> - 2.24.6-1
- Update to 2.24.6 - Update to 2.24.6

View File

@ -1 +1 @@
4d7efde4ac24dbaa720bc0744eee8235 gtk+-2.24.6.tar.xz 719df30b5076a0e37b62f968a5e1312c gtk+-2.24.7.tar.xz

View File

@ -1,8 +1,7 @@
diff --git a/gtk/gtkmenushell.c b/gtk/gtkmenushell.c diff -up gtk+-2.24.7/gtk/gtkmenushell.c.window-dragging gtk+-2.24.7/gtk/gtkmenushell.c
index 4788590..cb94c64 100644 --- gtk+-2.24.7/gtk/gtkmenushell.c.window-dragging 2011-08-15 22:30:52.000000000 -0400
--- a/gtk/gtkmenushell.c +++ gtk+-2.24.7/gtk/gtkmenushell.c 2011-10-17 19:50:52.180468086 -0400
+++ b/gtk/gtkmenushell.c @@ -589,18 +589,45 @@ gtk_menu_shell_button_press (GtkWidget
@@ -585,18 +585,45 @@ gtk_menu_shell_button_press (GtkWidget *widget,
if (!menu_shell->active || !menu_shell->button) if (!menu_shell->active || !menu_shell->button)
{ {
@ -55,26 +54,20 @@ index 4788590..cb94c64 100644
} }
} }
} }
diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c diff -up gtk+-2.24.7/gtk/gtktoolbar.c.window-dragging gtk+-2.24.7/gtk/gtktoolbar.c
index 8f065a7..c72a09f 100644 --- gtk+-2.24.7/gtk/gtktoolbar.c.window-dragging 2011-10-01 11:29:06.000000000 -0400
--- a/gtk/gtktoolbar.c +++ gtk+-2.24.7/gtk/gtktoolbar.c 2011-10-17 19:52:56.104463657 -0400
+++ b/gtk/gtktoolbar.c @@ -2701,6 +2701,8 @@ static gboolean
@@ -2699,17 +2699,41 @@ static gboolean
gtk_toolbar_button_press (GtkWidget *toolbar, gtk_toolbar_button_press (GtkWidget *toolbar,
GdkEventButton *event) GdkEventButton *event)
{ {
+ GtkWidget *window; + GtkWidget *window;
+ +
if (event->button == 3) if (_gtk_button_event_triggers_context_menu (event))
{ {
gboolean return_value; gboolean return_value;
- @@ -2711,7 +2713,29 @@ gtk_toolbar_button_press (GtkWidget
+
g_signal_emit (toolbar, toolbar_signals[POPUP_CONTEXT_MENU], 0,
(int)event->x_root, (int)event->y_root, event->button,
&return_value);
-
+
return return_value; return return_value;
} }
- -
@ -104,11 +97,10 @@ index 8f065a7..c72a09f 100644
return FALSE; return FALSE;
} }
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c diff -up gtk+-2.24.7/gtk/gtkwidget.c.window-dragging gtk+-2.24.7/gtk/gtkwidget.c
index 58ce2db..921c22a 100644 --- gtk+-2.24.7/gtk/gtkwidget.c.window-dragging 2011-10-17 19:50:52.175468086 -0400
--- a/gtk/gtkwidget.c +++ gtk+-2.24.7/gtk/gtkwidget.c 2011-10-17 19:50:52.184468086 -0400
+++ b/gtk/gtkwidget.c @@ -2467,6 +2467,13 @@ gtk_widget_class_init (GtkWidgetClass *k
@@ -2443,6 +2443,13 @@ gtk_widget_class_init (GtkWidgetClass *klass)
0.0, 1.0, 0.04, 0.0, 1.0, 0.04,
GTK_PARAM_READABLE)); GTK_PARAM_READABLE));