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:
pedro 2006-04-30 12:47:16 +00:00
parent dcff4ccc1e
commit 512e738ee3
3 changed files with 25 additions and 25 deletions

View File

@ -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"
VERSION= 0.18
DISTNAME= rep-gtk-${VERSION}
PKGNAME= ${DISTNAME}p4
PKGNAME= ${DISTNAME}p5
CATEGORIES= x11
HOMEPAGE= http://rep-gtk.sourceforge.net/

View File

@ -1,19 +1,21 @@
$OpenBSD: patch-gtk-compat_c,v 1.1 2005/06/03 19:08:30 sturm Exp $
--- gtk-compat.c.orig Fri Jun 3 12:02:25 2005
+++ gtk-compat.c Fri Jun 3 12:02:47 2005
@@ -62,6 +62,7 @@ gtk_menu_popup_interp (GtkMenu *menu,
func, func_data, button, activate_time);
}
$OpenBSD: patch-gtk-compat_c,v 1.2 2006/04/30 12:47:16 pedro Exp $
--- gtk-compat.c.orig Fri Jul 12 01:19:22 2002
+++ gtk-compat.c Fri Apr 28 20:35:19 2006
@@ -64,7 +64,7 @@ gtk_menu_popup_interp (GtkMenu *menu,
+#if 0
GtkWidget*
gtk_radio_menu_item_new_with_label_from_widget (GtkRadioMenuItem *group,
gchar *label)
@@ -77,6 +78,7 @@ gtk_radio_menu_item_new_with_mnemonic_fr
- 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);
}
+#endif
return gtk_radio_menu_item_new_with_label (g, label);
@@ -72,7 +72,7 @@ gtk_radio_menu_item_new_with_label_from_
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);

View File

@ -1,18 +1,16 @@
$OpenBSD: patch-rep-gtk_h,v 1.1 2005/06/03 19:08:30 sturm Exp $
--- rep-gtk.h.orig Fri Jun 3 12:03:02 2005
+++ rep-gtk.h Fri Jun 3 12:03:31 2005
@@ -289,12 +289,15 @@ void gtk_menu_popup_interp (GtkMenu *men
guint32 activate_time,
repv position);
$OpenBSD: patch-rep-gtk_h,v 1.2 2006/04/30 12:47:16 pedro Exp $
--- rep-gtk.h.orig Wed Feb 12 06:51:45 2003
+++ rep-gtk.h Fri Apr 28 20:35:59 2006
@@ -291,10 +291,11 @@ void gtk_menu_popup_interp (GtkMenu *men
+#if 0
GtkWidget*
gtk_radio_menu_item_new_with_label_from_widget (GtkRadioMenuItem *group,
gchar *label);
- gchar *label);
+ const gchar *label);
GtkWidget*
gtk_radio_menu_item_new_with_mnemonic_from_widget (GtkRadioMenuItem *group,
gchar *label);
+#endif
- gchar *label);
+ const gchar *label);
+
GtkWidget* gtk_radio_menu_item_new_from_widget (GtkRadioMenuItem *group);
GtkWidget* gtk_pixmap_new_interp (char *file, GtkWidget *intended_parent);