freebsd-ports/audio/midimountain/files/patch-midimountain::glade_interface.cpp

34 lines
869 B
C++
Raw Normal View History

--- midimountain/glade_interface.cpp.orig Mon Oct 29 10:42:25 2001
+++ midimountain/glade_interface.cpp Sat Dec 15 13:59:02 2001
2001-08-05 19:05:11 +02:00
@@ -10,6 +10,7 @@
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>
+#include <assert.h>
#include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>
@@ -17,6 +18,22 @@
#include "glade_callbacks.h"
2001-08-05 19:05:11 +02:00
#include "glade_interface.h"
#include "../midimountain/glade_support.h"
+
2001-08-05 19:05:11 +02:00
+void gtk_widget_add_accelerator (GtkWidget *widget,
+ const gchar *accel_signal,
+ GtkAccelGroup *accel_group,
+ guint accel_key,
+ guint accel_mods,
+ int accel_flags)
+{
+ assert(0 <= accel_flags && accel_flags <= 8);
+ gtk_widget_add_accelerator(widget,
+ accel_signal,
+ accel_group,
+ accel_key,
+ accel_mods,
+ (GtkAccelFlags)accel_flags);
+}
2001-08-05 19:05:11 +02:00
GtkWidget*
create_wndMain (void)