-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added tabs.h, tabs.c for eventual module-tab data structure, added fi…
…le-menu.h and file-menu.c and modified makefile so no linking errors! Also did some stuff in main.c and menus.c that is not quite working yet. git-svn-id: https://subversion.cs.uiuc.edu/svn/bang/eoh2009@153 69d76c3e-0761-0410-948c-9895a8bb34fc
- Loading branch information
asjacob2
committed
Mar 12, 2009
1 parent
fd195ee
commit fa12e98
Showing
6 changed files
with
57 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#include"bang-machine-utils.h" | ||
#include"../base/bang.h" | ||
#include<gtk/gtk.h> | ||
#include<stdlib.h> | ||
|
||
void BMACHINE_open_module(GtkWidget *widget) { | ||
|
||
GtkWidget *dialog = gtk_file_chooser_dialog_new ("Open a Multiplicity module",widget,GTK_FILE_CHOOSER_ACTION_OPEN, | ||
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, | ||
GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, | ||
NULL); | ||
|
||
if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_ACCEPT) | ||
{ | ||
char *filename; | ||
|
||
filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (dialog)); | ||
// do some stuff with filename | ||
g_free (filename); | ||
} | ||
|
||
gtk_widget_destroy (dialog); | ||
|
||
|
||
} | ||
/* | ||
void BMACHINE_close_module(GtkWidget *widget) { | ||
}*/ | ||
|
||
/* Shut down Multiplicity */ | ||
void BMACHINE_exit() { | ||
BANG_close(); | ||
gtk_main_quit(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#ifndef __FILE_MENU_H | ||
#define __FILE_MENU_H | ||
#include<gtk/gtk.h> | ||
void BMACHINE_open_module(GtkWidget *widget); | ||
//void BMACHINE_close_module(GtkWidget *widget); | ||
void BMACHINE_exit(); | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#ifndef __SERVER_MENU_H | ||
#define __SERVER_MENU_H | ||
#include<glib.h> | ||
#include<gtk/gtk.h> | ||
|
||
void BMACHINE_open_module | ||
#endif |