Fix lengths for full ip addresses.
authorRoy Marples <roy@marples.name>
Mon, 24 May 2010 07:10:23 +0000 (07:10 +0000)
committerRoy Marples <roy@marples.name>
Mon, 24 May 2010 07:10:23 +0000 (07:10 +0000)
src/dhcpcd-gtk/prefs.c

index ee51f27d069a65227ba2c361a5cc7cde7f1d088c..2f6fc6d7e4a164c28b25fc5db22cd6e67207f1a4 100644 (file)
@@ -535,7 +535,7 @@ dhcpcd_prefs_show(DHCPCD_CONNECTION *con)
        
        w = gtk_label_new(_("IP Address:"));
        address = gtk_entry_new();
-       gtk_entry_set_max_length(GTK_ENTRY(address), 15);
+       gtk_entry_set_max_length(GTK_ENTRY(address), 18);
        g_signal_connect(G_OBJECT(address), "focus-out-event",
            G_CALLBACK(address_lost_focus), NULL);
        attach_label(w, 0, 1, 0, 1);
@@ -543,7 +543,7 @@ dhcpcd_prefs_show(DHCPCD_CONNECTION *con)
 
        w = gtk_label_new(_("Router:"));
        router = gtk_entry_new();
-       gtk_entry_set_max_length(GTK_ENTRY(router), 12);
+       gtk_entry_set_max_length(GTK_ENTRY(router), 15);
        g_signal_connect(G_OBJECT(router), "focus-out-event",
            G_CALLBACK(entry_lost_focus), NULL);
        attach_label(w, 0, 1, 2, 3);