Example #1
0
gint MainBoxBrowseEvent(GtkWidget *widget, GdkEvent event, gpointer data)
{
    MainBoxUnfocus();
    gtk_file_selection_set_filename(GTK_FILE_SELECTION(selectionbox.window),
                                    gtk_entry_get_text(GTK_ENTRY(mainbox.file)));
    selectionbox.wherefrom = 1; // From the Main Window
    SelectionBoxRefocus();
    return(TRUE);
} // END MainBoxBrowseEvent()
Example #2
0
gint DeviceBoxBrowseEvent(GtkWidget *widget, GdkEvent event, gpointer data)
{
	DeviceBoxUnfocus();
	// Transfer file name to file selection
	gtk_file_selection_set_filename(GTK_FILE_SELECTION(selectionbox.window),
	                                gtk_entry_get_text(GTK_ENTRY(devicebox.file)));
	selectionbox.wherefrom = 2; // From the Device Window
	SelectionBoxRefocus();
	return (TRUE);
} // END DeviceBoxBrowseEvent()