/** @brief True if RTP play is enabled */
int rtp_is_running;
+static void check_rtp_address(void);
+
/* Window creation --------------------------------------------------------- */
/* Note that all the client operations kicked off from here will only complete
*
* Updates the menu settings to correspond to the new page.
*/
-static void tab_switched(GtkNotebook attribute((unused)) *notebook,
+static void tab_switched(GtkNotebook *notebook,
GtkNotebookPage attribute((unused)) *page,
guint page_num,
gpointer attribute((unused)) user_data) {
menu_update(page_num);
+ GtkWidget *const tab = gtk_notebook_get_nth_page(notebook, page_num);
+ const struct tabtype *const t = g_object_get_data(G_OBJECT(tab), "type");
+ if(!t) return; /* TODO */
+ if(t->selected)
+ t->selected();
}
/** @brief Create the report box */
config->username, "rights",
0);
}
+ /* Recheck RTP status too */
+ check_rtp_address();
return TRUE; /* don't remove me */
}
rtp_supported = 0;
event_raise("logged-in", 0);
/* Force the periodic checks */
- check_rtp_address();
periodic_slow(0);
periodic_fast(0);
}
/* Start monitoring the log */
disorder_eclient_log(logclient, &log_callbacks, 0);
/* Initiate all the checks */
- check_rtp_address();
periodic_slow(0);
periodic_fast(0);
suppress_actions = 0;