static void spinbutton_changed_cb (GtkWidget *widget, gpointer user_data) { gtk_spin_button_update (GTK_SPIN_BUTTON (widget)); stuff_changed_cb (widget, user_data); }
static void pw_type_combo_changed_cb (GtkWidget *combo, gpointer user_data) { OpenswanPluginUiWidget *self = OPENSWAN_PLUGIN_UI_WIDGET (user_data); pw_type_changed_helper (self, combo); stuff_changed_cb (combo, self); }
static void password_storage_changed_cb (GObject *entry, GParamSpec *pspec, gpointer user_data) { VpncEditor *self = VPNC_EDITOR (user_data); stuff_changed_cb (NULL, self); }
static void hybrid_toggled_cb (GtkWidget *widget, gpointer user_data) { VpncEditorPrivate *priv = VPNC_EDITOR_GET_PRIVATE (user_data); gboolean enabled = FALSE; GtkWidget *cafile_label, *ca_file_chooser; cafile_label = GTK_WIDGET (gtk_builder_get_object (priv->builder, "cafile_label")); g_return_if_fail (cafile_label); ca_file_chooser = GTK_WIDGET (gtk_builder_get_object (priv->builder, "ca_file_chooser")); g_return_if_fail (ca_file_chooser); enabled = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (widget)); gtk_widget_set_sensitive (cafile_label, enabled); gtk_widget_set_sensitive (ca_file_chooser, enabled); stuff_changed_cb (widget, user_data); }
static void advanced_dialog_response_cb (GtkWidget *dialog, gint response, gpointer user_data) { L2tpPluginUiWidget *self = L2TP_PLUGIN_UI_WIDGET (user_data); L2tpPluginUiWidgetPrivate *priv = L2TP_PLUGIN_UI_WIDGET_GET_PRIVATE (self); GError *error = NULL; if (response != GTK_RESPONSE_OK) { advanced_dialog_close_cb (dialog, self); return; } if (priv->advanced) g_hash_table_destroy (priv->advanced); priv->advanced = advanced_dialog_new_hash_from_dialog (dialog, &error); if (!priv->advanced) { g_message ("%s: error reading advanced settings: %s", __func__, error->message); g_error_free (error); } advanced_dialog_close_cb (dialog, self); stuff_changed_cb (NULL, self); }