Fix issue with gtk_radio_menu_item_new_with_label_from_widget() and
gtk_radio_menu_item_new_with_mnemonic_from_widget() that was preventing Sawfish from working correctly, okay sturm@.
This commit is contained in:
parent
dcff4ccc1e
commit
512e738ee3
@ -1,10 +1,10 @@
|
|||||||
# $OpenBSD: Makefile,v 1.17 2006/01/22 23:21:46 sturm Exp $
|
# $OpenBSD: Makefile,v 1.18 2006/04/30 12:47:16 pedro Exp $
|
||||||
|
|
||||||
COMMENT= "GTK+ binding for librep Lisp environment"
|
COMMENT= "GTK+ binding for librep Lisp environment"
|
||||||
|
|
||||||
VERSION= 0.18
|
VERSION= 0.18
|
||||||
DISTNAME= rep-gtk-${VERSION}
|
DISTNAME= rep-gtk-${VERSION}
|
||||||
PKGNAME= ${DISTNAME}p4
|
PKGNAME= ${DISTNAME}p5
|
||||||
CATEGORIES= x11
|
CATEGORIES= x11
|
||||||
|
|
||||||
HOMEPAGE= http://rep-gtk.sourceforge.net/
|
HOMEPAGE= http://rep-gtk.sourceforge.net/
|
||||||
|
@ -1,19 +1,21 @@
|
|||||||
$OpenBSD: patch-gtk-compat_c,v 1.1 2005/06/03 19:08:30 sturm Exp $
|
$OpenBSD: patch-gtk-compat_c,v 1.2 2006/04/30 12:47:16 pedro Exp $
|
||||||
--- gtk-compat.c.orig Fri Jun 3 12:02:25 2005
|
--- gtk-compat.c.orig Fri Jul 12 01:19:22 2002
|
||||||
+++ gtk-compat.c Fri Jun 3 12:02:47 2005
|
+++ gtk-compat.c Fri Apr 28 20:35:19 2006
|
||||||
@@ -62,6 +62,7 @@ gtk_menu_popup_interp (GtkMenu *menu,
|
@@ -64,7 +64,7 @@ gtk_menu_popup_interp (GtkMenu *menu,
|
||||||
func, func_data, button, activate_time);
|
|
||||||
}
|
|
||||||
|
|
||||||
+#if 0
|
|
||||||
GtkWidget*
|
GtkWidget*
|
||||||
gtk_radio_menu_item_new_with_label_from_widget (GtkRadioMenuItem *group,
|
gtk_radio_menu_item_new_with_label_from_widget (GtkRadioMenuItem *group,
|
||||||
gchar *label)
|
- gchar *label)
|
||||||
@@ -77,6 +78,7 @@ gtk_radio_menu_item_new_with_mnemonic_fr
|
+ const gchar *label)
|
||||||
|
{
|
||||||
GSList *g = group? gtk_radio_menu_item_group (group) : NULL;
|
GSList *g = group? gtk_radio_menu_item_group (group) : NULL;
|
||||||
return gtk_radio_menu_item_new_with_mnemonic (g, label);
|
return gtk_radio_menu_item_new_with_label (g, label);
|
||||||
}
|
@@ -72,7 +72,7 @@ gtk_radio_menu_item_new_with_label_from_
|
||||||
+#endif
|
|
||||||
|
|
||||||
GtkWidget*
|
GtkWidget*
|
||||||
gtk_radio_menu_item_new_from_widget (GtkRadioMenuItem *group)
|
gtk_radio_menu_item_new_with_mnemonic_from_widget (GtkRadioMenuItem *group,
|
||||||
|
- gchar *label)
|
||||||
|
+ const gchar *label)
|
||||||
|
{
|
||||||
|
GSList *g = group? gtk_radio_menu_item_group (group) : NULL;
|
||||||
|
return gtk_radio_menu_item_new_with_mnemonic (g, label);
|
||||||
|
@ -1,18 +1,16 @@
|
|||||||
$OpenBSD: patch-rep-gtk_h,v 1.1 2005/06/03 19:08:30 sturm Exp $
|
$OpenBSD: patch-rep-gtk_h,v 1.2 2006/04/30 12:47:16 pedro Exp $
|
||||||
--- rep-gtk.h.orig Fri Jun 3 12:03:02 2005
|
--- rep-gtk.h.orig Wed Feb 12 06:51:45 2003
|
||||||
+++ rep-gtk.h Fri Jun 3 12:03:31 2005
|
+++ rep-gtk.h Fri Apr 28 20:35:59 2006
|
||||||
@@ -289,12 +289,15 @@ void gtk_menu_popup_interp (GtkMenu *men
|
@@ -291,10 +291,11 @@ void gtk_menu_popup_interp (GtkMenu *men
|
||||||
guint32 activate_time,
|
|
||||||
repv position);
|
|
||||||
|
|
||||||
+#if 0
|
|
||||||
GtkWidget*
|
GtkWidget*
|
||||||
gtk_radio_menu_item_new_with_label_from_widget (GtkRadioMenuItem *group,
|
gtk_radio_menu_item_new_with_label_from_widget (GtkRadioMenuItem *group,
|
||||||
gchar *label);
|
- gchar *label);
|
||||||
|
+ const gchar *label);
|
||||||
GtkWidget*
|
GtkWidget*
|
||||||
gtk_radio_menu_item_new_with_mnemonic_from_widget (GtkRadioMenuItem *group,
|
gtk_radio_menu_item_new_with_mnemonic_from_widget (GtkRadioMenuItem *group,
|
||||||
gchar *label);
|
- gchar *label);
|
||||||
+#endif
|
+ const gchar *label);
|
||||||
+
|
+
|
||||||
GtkWidget* gtk_radio_menu_item_new_from_widget (GtkRadioMenuItem *group);
|
GtkWidget* gtk_radio_menu_item_new_from_widget (GtkRadioMenuItem *group);
|
||||||
GtkWidget* gtk_pixmap_new_interp (char *file, GtkWidget *intended_parent);
|
GtkWidget* gtk_pixmap_new_interp (char *file, GtkWidget *intended_parent);
|
||||||
|
Loading…
Reference in New Issue
Block a user