int main (int argc, gchar *argv[]) { gchar *interface = NULL; gchar *type = NULL; GOptionEntry entries[] = { { "configure", 'c', 0, G_OPTION_ARG_STRING, &interface, N_("Configure a network interface"), N_("INTERFACE") }, { "configure-type", 't', 0, G_OPTION_ARG_STRING, &type, N_("Configure the first network interface with a specific type"), N_("TYPE") }, { NULL } }; #if !GLIB_CHECK_VERSION (2, 32, 0) g_thread_init (NULL); #endif gst_init_tool ("network-admin", argc, argv, entries); tool = gst_network_tool_new (); gst_dialog_require_authentication_for_widgets (tool->main_dialog, policy_widgets); gst_dialog_connect_signals (tool->main_dialog, signals); gst_dialog_connect_signals_after (tool->main_dialog, signals_after); set_text_buffers_callback (); init_filters (); if (interface) init_standalone_dialog (tool, SEARCH_DEV, interface); else if (type) init_standalone_dialog (tool, SEARCH_TYPE, type); else gtk_widget_show (GTK_WIDGET (tool->main_dialog)); gtk_main (); return 0; }
int main (int argc, char *argv[]) { gst_init_tool ("users-admin", argc, argv, NULL); tool = GST_TOOL (gst_users_tool_new ()); gst_dialog_connect_signals (tool->main_dialog, signals); main_window_prepare (GST_USERS_TOOL (tool)); gtk_widget_show (GTK_WIDGET (tool->main_dialog)); gtk_main (); return 0; }
int main (int argc, char *argv[]) { gst_init_tool ("services-admin", argc, argv, NULL); tool = gst_services_tool_new (); gst_dialog_connect_signals (tool->main_dialog, signals); table_create (); service_settings_table_create (); gtk_widget_show (GTK_WIDGET (tool->main_dialog)); gtk_main (); return 0; }