File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
NUB_Admission_Costing_Calculator/docs Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -38,4 +38,19 @@ void display_result(const char *message)
3838NOTE: The `display_result` function is a utility function used throughout the GTK application to output
3939 messages to both the user interface and the console, aiding in both user interaction and debugging.
4040
41+ void show_undergraduate(GtkWidget *widget, gpointer data)
42+ - This callback function is triggered to show the undergraduate interface.
43+ - It first clears any previous content in the container using `gtk_container_foreach` and `gtk_widget_destroy`.
44+ - Then, it calls `create_undergraduate_interface` to build the undergraduate interface inside the content area.
45+ - Finally, it refreshes the container to display the new interface with `gtk_widget_show_all`.
46+
47+ void show_diploma(GtkWidget *widget, gpointer data)
48+ - Similar to `show_undergraduate`, this callback function is used to show the diploma interface.
49+ - It clears any existing content in the container.
50+ - Calls `create_diploma_interface` to construct the diploma interface within the content area.
51+ - Refreshes the container to update the display with the new interface.
52+
53+ NOTE: Both functions are essential for switching between different user interfaces within the application,
54+ ensuring a smooth transition and clear display of the relevant interface based on user selection.
55+
4156------------------------------------------------------------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments