Commit 328ab1e9 authored by A. Walton's avatar A. Walton Committed by Andrew Walton

Set the bookmark name widget in the connect server dialog insensitive if

2008-03-14  A. Walton  <awalton@svn.gnome.org>

	* src/nautilus-connect-server-dialog.c
	(bookmark_checkmark_toggled),
	(nautilus_connect_server_dialog_init):
	Set the bookmark name widget in the connect server dialog insensitive
	if the user doesn't check the add bookmark check button.


svn path=/trunk/; revision=13936
parent 3c35ab0d
2008-03-14 A. Walton <awalton@svn.gnome.org>
* src/nautilus-connect-server-dialog.c
(bookmark_checkmark_toggled),
(nautilus_connect_server_dialog_init):
Set the bookmark name widget in the connect server dialog insensitive
if the user doesn't check the add bookmark check button.
2008-03-14 A. Walton <awalton@svn.gnome.org>
* libnautilus-private/nautilus-bookmark.c
......
......@@ -779,6 +779,13 @@ port_insert_text (GtkEditable *editable,
}
}
static void
bookmark_checkmark_toggled (GtkToggleButton *toggle, NautilusConnectServerDialog *dialog)
{
gtk_widget_set_sensitive (GTK_WIDGET(dialog->details->name_entry),
gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON (toggle)));
}
static void
nautilus_connect_server_dialog_init (NautilusConnectServerDialog *dialog)
{
......@@ -907,6 +914,12 @@ nautilus_connect_server_dialog_init (NautilusConnectServerDialog *dialog)
dialog->details->bookmark_check = gtk_check_button_new_with_mnemonic (_("Add _bookmark"));
dialog->details->name_entry = gtk_entry_new ();
g_signal_connect (dialog->details->bookmark_check, "toggled",
G_CALLBACK (bookmark_checkmark_toggled), dialog);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (dialog->details->bookmark_check), FALSE);
gtk_widget_set_sensitive (GTK_WIDGET(dialog->details->name_entry), FALSE);
gtk_entry_set_activates_default (GTK_ENTRY (dialog->details->uri_entry), TRUE);
gtk_entry_set_activates_default (GTK_ENTRY (dialog->details->server_entry), TRUE);
gtk_entry_set_activates_default (GTK_ENTRY (dialog->details->share_entry), TRUE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment