openbsd-ports/audio/soundtracker/patches/patch-app_menubar_c
jasper d36c03233e - remove gnome flavor
- regen patches

ok wcobb@ (MAINTAINER)
2008-08-21 14:11:14 +00:00

39 lines
1.6 KiB
Plaintext

$OpenBSD: patch-app_menubar_c,v 1.2 2008/08/21 14:11:14 jasper Exp $
--- app/menubar.c.orig Mon May 20 16:33:38 2002
+++ app/menubar.c Thu Aug 21 15:54:06 2008
@@ -117,7 +117,7 @@ menubar_clear_callback (gint reply,
gpointer data)
{
if(reply == 0) {
- if((gint)data == 0) {
+ if(GPOINTER_TO_INT(data) == 0) {
gui_free_xm();
gui_new_xm();
xm->modified = 0;
@@ -709,19 +709,22 @@ menubar_gnome_to_gtk (GnomeUIInfo *gnometree,
switch(gnometree->type) {
case GNOME_APP_UI_SUBTREE:
menubar_gtk_items[n].callback = (GtkItemFactoryCallback)gnometree->func;
- menubar_gtk_items[n].callback_action = (guint)gnometree->funcparam;
+ menubar_gtk_items[n].callback_action =
+ GPOINTER_TO_UINT(gnometree->funcparam);
menubar_gtk_items[n].item_type = "<Branch>";
strip_underscores(buf, buf);
n = menubar_gnome_to_gtk((GnomeUIInfo*)gnometree->dummy1, n + 1, buf) - 1;
break;
case GNOME_APP_UI_ITEM:
menubar_gtk_items[n].callback = (GtkItemFactoryCallback)gnometree->func;
- menubar_gtk_items[n].callback_action = (guint)gnometree->funcparam;
+ menubar_gtk_items[n].callback_action =
+ GPOINTER_TO_UINT(gnometree->funcparam);
menubar_gtk_items[n].item_type = NULL;
break;
case GNOME_APP_UI_TOGGLEITEM:
menubar_gtk_items[n].callback = (GtkItemFactoryCallback)gnometree->func;
- menubar_gtk_items[n].callback_action = (guint)gnometree->funcparam;
+ menubar_gtk_items[n].callback_action =
+ GPOINTER_TO_UINT(gnometree->funcparam);
menubar_gtk_items[n].item_type = "<ToggleItem>";
break;
case GNOME_APP_UI_SEPARATOR: