[Xfce4-commits] [panel-plugins/xfce4-netload-plugin] 01/02: Revert "Do not enforce max length for text/device entries (bug #9869)"
noreply at xfce.org
noreply at xfce.org
Sat Nov 22 18:06:33 CET 2014
This is an automated email from the git hooks/post-receive script.
mmassonnet pushed a commit to branch master
in repository panel-plugins/xfce4-netload-plugin.
commit fbda085f4ed1435c873bce8a70c11d06da63060a
Author: Mike Massonnet <m8t at gandi.net>
Date: Sat Nov 22 18:03:32 2014 +0100
Revert "Do not enforce max length for text/device entries (bug #9869)"
This reverts commit 215438c9e674b642cc757b2c1ec04700c8a1141a.
---
panel-plugin/netload.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/panel-plugin/netload.c b/panel-plugin/netload.c
index bd9168c..fca03a3 100644
--- a/panel-plugin/netload.c
+++ b/panel-plugin/netload.c
@@ -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);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list