The “Glue”: callbacks.c

Listing 9.11 is callbacks.c for this project. In general, the aim has been to call functions here that are in comm_utils.c and keep the bulk of the code in that file (comm_utils.c).

Listing 9.11. callbacks.c from the Worldwide Commissions Applications
#ifdef HAVE_CONFIG_H 
#  include <config.h> 
#endif 

#include <gtk/gtk.h> 

#include "callbacks.h" 
#include "interface.h" 
#include "support.h" 
#include "comm_utils.h" 
#include "ddc.h" 

GtkWidget *frm_login; 
GtkWidget *frm_table_display; 
GtkWidget *frm_commissions; 

gboolean 
on_frm_login_delete_event              (GtkWidget       *widget, 
                                        GdkEvent        *event, 
                                        gpointer         user_data) 
{
  /* This is the event to shut down the application. */ gtk_main_quit(); return FALSE; } void on_cmd_login_clicked (GtkButton ...

Get MySQL Building User Interfaces now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.