mupen64plus-oldsvn/main/gui_gtk/main_gtk.h
James Hood f6d65f0ab6 -Added multi-threading support to gtk gui. This allows info_message, confirm_message, alert_message functions to safely be called from any thread.
-I also changed the name of gui_parseArgs to gui_init, which will affect the kde4 gui code slightly when it's merged back into trunk.
2008-04-15 23:38:29 +00:00

46 lines
1.7 KiB
C

/***************************************************************************
main_gtk.h - Handles the main window and 'glues' it with other windows
----------------------------------------------------------------------------
Began : Fri Nov 8 2002
Copyright : (C) 2002 by blight
Email : blight@Ashitaka
****************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef __MAIN_GTK_H__
#define __MAIN_GTK_H__
#include <gtk/gtk.h>
typedef struct
{
GtkWidget *window;
GtkWidget *toplevelVBox; // vbox containing menubar, toolbar, rombrowser, statusbar
GtkWidget *menuBar;
GtkWidget *toolBar;
GtkWidget *romScrolledWindow, *romTreeView;
GtkWidget *statusBarHBox;
} SMainWindow;
extern SMainWindow g_MainWindow;
void reload();
void statusbar_message( const char *section, const char *fmt, ... );
// helper macro
#define GUI_PROCESS_QUEUED_EVENTS() \
{ \
gdk_threads_leave(); \
while(g_main_context_iteration(NULL, FALSE)); \
gdk_threads_enter(); \
}
#endif // __MAIN_GTK_H__