Commit 649f8cdf authored by Dan Williams's avatar Dan Williams

editor: re-add ce_spin_output_with_default()

This time, it prints "default" in the spin button instead of "automatic"
when the spin holds the default value.
parent 55e34f33
......@@ -84,6 +84,14 @@ ce_spin_output_with_automatic (GtkSpinButton *spin, gpointer user_data)
_("automatic"));
}
gboolean
ce_spin_output_with_default (GtkSpinButton *spin, gpointer user_data)
{
return spin_output_with_default_string (spin,
GPOINTER_TO_INT (user_data),
_("default"));
}
int
ce_get_property_default (NMSetting *setting, const char *property_name)
{
......
......@@ -120,6 +120,8 @@ GByteArray *ce_page_entry_to_mac (GtkEntry *entry, int type, gboolean *invalid);
gboolean ce_spin_output_with_automatic (GtkSpinButton *spin, gpointer user_data);
gboolean ce_spin_output_with_default (GtkSpinButton *spin, gpointer user_data);
int ce_get_property_default (NMSetting *setting, const char *property_name);
void ce_page_complete_init (CEPage *self,
......
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