-//////////////////////////////////////////////////////////////////////////////
-// Create and show the Reset, Run, Stop, Trace and Step buttons
-//////////////////////////////////////////////////////////////////////////////
-void
-emugtk_AddButtons( void )
-{
- RESET_pixmap = gdk_pixmap_colormap_create_from_xpm_d( NULL,
- gtk_widget_get_default_colormap(),
- &RESET_mask,
- NULL,
- ( gchar ** ) reset_xpm );
- RESET_widget = gtk_pixmap_new( RESET_pixmap, RESET_mask );
-
- RUN_pixmap = gdk_pixmap_colormap_create_from_xpm_d( NULL,
- gtk_widget_get_default_colormap(),
- &RUN_mask,
- NULL,
- ( gchar ** ) run_xpm );
- RUN_widget = gtk_pixmap_new( RUN_pixmap, RUN_mask );
-
- STOP_pixmap = gdk_pixmap_colormap_create_from_xpm_d( NULL,
- gtk_widget_get_default_colormap(),
- &STOP_mask,
- NULL,
- ( gchar ** ) stop_xpm );
- STOP_widget = gtk_pixmap_new( STOP_pixmap, STOP_mask );
-
- STEP_pixmap = gdk_pixmap_colormap_create_from_xpm_d( NULL,
- gtk_widget_get_default_colormap(),
- &STEP_mask,
- NULL,
- ( gchar ** ) step_xpm );
- STEP_widget = gtk_pixmap_new( STEP_pixmap, STEP_mask );
-
- ButtonTable = gtk_table_new( 1, 4, TRUE );
- gtk_widget_set_usize( GTK_WIDGET( ButtonTable ), BUTTONS_BAR_WIDTH, BUTTONS_BAR_HEIGHT );
- gtk_fixed_put( GTK_FIXED( emumainfixed ), ButtonTable, 0, 0 );
-
- ButtonReset = gtk_button_new();
- ButtonRun = gtk_button_new();
- ButtonStop = gtk_button_new();
- ButtonStep = gtk_button_new();
-
- gtk_container_add( GTK_CONTAINER( ButtonReset ), RESET_widget );
- gtk_container_add( GTK_CONTAINER( ButtonRun ), RUN_widget );
- gtk_container_add( GTK_CONTAINER( ButtonStop ), STOP_widget );
- gtk_container_add( GTK_CONTAINER( ButtonStep ), STEP_widget );
-
- gtk_widget_set_usize( GTK_WIDGET( ButtonReset ), BUTTON_WIDTH, BUTTON_HEIGHT );
- gtk_widget_set_usize( GTK_WIDGET( ButtonRun ), BUTTON_WIDTH, BUTTON_HEIGHT );
- gtk_widget_set_usize( GTK_WIDGET( ButtonStop ), BUTTON_WIDTH, BUTTON_HEIGHT );
- gtk_widget_set_usize( GTK_WIDGET( ButtonStep ), BUTTON_WIDTH, BUTTON_HEIGHT );
-
- gtk_table_attach_defaults( GTK_TABLE( ButtonTable ), ButtonReset, 0, 1, 0, 1);
- gtk_table_attach_defaults( GTK_TABLE( ButtonTable ), ButtonRun, 1, 2, 0, 1);
- gtk_table_attach_defaults( GTK_TABLE( ButtonTable ), ButtonStop, 2, 3, 0, 1);
- gtk_table_attach_defaults( GTK_TABLE( ButtonTable ), ButtonStep, 3, 4, 0, 1);
-
- gtk_widget_show( GTK_WIDGET( ButtonReset ) );
- gtk_widget_show( GTK_WIDGET( ButtonRun ) );
- gtk_widget_show( GTK_WIDGET( ButtonStop ) );
- gtk_widget_show( GTK_WIDGET( ButtonStep ) );
-
- gtk_widget_show_all( GTK_WIDGET( ButtonTable ) );
-}