--- gtk/main.c +++ gtk/main.c @@ -213,7 +213,7 @@ static GtkWidget *main_first_pane, *main_second_pane; static GtkWidget *status_pane_left, *status_pane_right; static GtkWidget *menubar, *main_vbox, *main_tb, *stat_hbox, *filter_tb; -static GtkWidget *priv_warning_dialog; +// static GtkWidget *priv_warning_dialog; #ifdef HAVE_AIRPCAP GtkWidget *airpcap_tb; @@ -1569,11 +1569,11 @@ GtkWidget *close_dlg = NULL; -static void -priv_warning_dialog_cb(gpointer dialog, gint btn _U_, gpointer data _U_) -{ - recent.privs_warn_if_elevated = !simple_dialog_check_get(dialog); -} +// static void +// priv_warning_dialog_cb(gpointer dialog, gint btn _U_, gpointer data _U_) +// { +// recent.privs_warn_if_elevated = !simple_dialog_check_get(dialog); +// } #ifdef _WIN32 static void @@ -3066,17 +3066,17 @@ main_load_window_geometry(top_level); /* Tell the user not to run as root. */ - if (running_with_special_privs() && recent.privs_warn_if_elevated) { - cur_user = get_cur_username(); - cur_group = get_cur_groupname(); - priv_warning_dialog = simple_dialog(ESD_TYPE_WARN, ESD_BTN_OK, - "Running as user \"%s\" and group \"%s\".\n" - "This could be dangerous.", cur_user, cur_group); - g_free(cur_user); - g_free(cur_group); - simple_dialog_check_set(priv_warning_dialog, "Don't show this message again."); - simple_dialog_set_cb(priv_warning_dialog, priv_warning_dialog_cb, NULL); - } +// if (running_with_special_privs() && recent.privs_warn_if_elevated) { +// cur_user = get_cur_username(); +// cur_group = get_cur_groupname(); +// priv_warning_dialog = simple_dialog(ESD_TYPE_WARN, ESD_BTN_OK, +// "Running as user \"%s\" and group \"%s\".\n" +// "This could be dangerous.", cur_user, cur_group); +// g_free(cur_user); +// g_free(cur_group); +// simple_dialog_check_set(priv_warning_dialog, "Don't show this message again."); +// simple_dialog_set_cb(priv_warning_dialog, priv_warning_dialog_cb, NULL); +// } #ifdef _WIN32 /* Warn the user if npf.sys isn't loaded. */