diff options
Diffstat (limited to 'Linux_C_12/cCrossCallxDI_121.c')
-rw-r--r-- | Linux_C_12/cCrossCallxDI_121.c | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/Linux_C_12/cCrossCallxDI_121.c b/Linux_C_12/cCrossCallxDI_121.c index 42225ff..5171bb6 100644 --- a/Linux_C_12/cCrossCallxDI_121.c +++ b/Linux_C_12/cCrossCallxDI_121.c @@ -14,6 +14,7 @@ #include "cCrossCallxDI_121.h"
#include "cCrossCall_121.h"
#include "cCCallWindows_121.h"
+#include "cCrossCallWindows_121.h"
/* Global data with external references:
@@ -250,12 +251,10 @@ static gboolean frame_key_release_handler(GtkWidget *widget, GdkEventKey *event, void EvalCcRqCREATESDIFRAMEWINDOW (CrossCallInfo *pcci) /* accept file open; frame ptr, menubar results. */
{
GtkWidget *window, *menuBar, *box;
+ GtkAccelGroup *accel_group;
printf("EvalCcRqCREATESDIFRAMEWINDOW\n");
- /* Create the menubar. */
- menuBar = gtk_menu_bar_new();
-
/* Create the window. */
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_signal_connect (GTK_OBJECT (window), "focus-in-event",
@@ -287,11 +286,15 @@ void EvalCcRqCREATESDIFRAMEWINDOW (CrossCallInfo *pcci) /* accept file open; fra GTK_SIGNAL_FUNC(frame_drag_data_handler), NULL);
}
- gtk_window_add_accel_group (GTK_WINDOW (window), gtk_accel_group_new());
+ /* Create accel_group */
+ accel_group = gtk_accel_group_new();
+ gtk_window_add_accel_group (GTK_WINDOW (window), accel_group);
+
+ /* Create the menubar. */
+ menuBar = gtk_menu_bar_new();
+ gtk_container_add(GTK_CONTAINER(window), menuBar);
- box = gtk_vbox_new(FALSE, 0);
- gtk_container_add(GTK_CONTAINER(window), box);
- gtk_box_pack_start(GTK_BOX(box), menuBar, FALSE, FALSE, 0);
+ gtk_widget_show(GTK_WIDGET(window));
gtk_widget_show(menuBar);
MakeReturn2Cci (pcci, (int64_t) window, (int64_t) menuBar);
@@ -604,6 +607,8 @@ OS InstallCrossCallxDI (OS ios) AddCrossCallEntry (newTable, CcRqCREATETOOLBARSEPARATOR, EvalCcRqCREATETOOLBARSEPARATOR);
AddCrossCallEntries (gCrossCallProcedureTable, newTable);
+ ios = InstallCrossCallWindows(ios);
+
return ios;
}
|