Revert "Do not enforce max length for text/device entries (bug #9869)"

This reverts commit 215438c9e6.
master
Mike Massonnet 2014-11-22 18:03:32 +01:00
parent c9f41f4633
commit fbda085f4e
1 changed files with 4 additions and 0 deletions

View File

@ -1025,6 +1025,8 @@ static void monitor_create_options(XfcePanelPlugin *plugin, t_global_monitor *gl
gtk_size_group_add_widget(sg, global->monitor->opt_use_label);
global->monitor->opt_entry = gtk_entry_new();
gtk_entry_set_max_length(GTK_ENTRY(global->monitor->opt_entry),
MAX_LENGTH);
gtk_entry_set_text(GTK_ENTRY(global->monitor->opt_entry),
global->monitor->options.label_text);
gtk_widget_show(global->monitor->opt_entry);
@ -1055,6 +1057,8 @@ static void monitor_create_options(XfcePanelPlugin *plugin, t_global_monitor *gl
global->monitor->net_entry = gtk_entry_new();
gtk_label_set_mnemonic_widget(GTK_LABEL(device_label),
global->monitor->net_entry);
gtk_entry_set_max_length(GTK_ENTRY(global->monitor->net_entry),
MAX_LENGTH);
gtk_entry_set_text(GTK_ENTRY(global->monitor->net_entry),
global->monitor->options.network_device);
gtk_widget_show(global->monitor->opt_entry);