When editing the DNS servers of a given connection, a simple entry is enough to display and edit the DNS servers. The user can separate IP addresses with commas. This is exemplified by the mockup at [1]. This, however, is not the current implementation, which uses a combination of listbox rows, entries and buttons to manage that with added complexity. Fix that by using an entry to handle the DNS servers. [1] https://raw.githubusercontent.com/gnome-design-team/gnome-mockups/master/system-settings/network/aday2/network-wires.png https://bugzilla.gnome.org/show_bug.cgi?id=779841
70 lines
2.2 KiB
C
70 lines
2.2 KiB
C
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
|
|
*
|
|
* Copyright (C) 2012 Red Hat, Inc.
|
|
*
|
|
* Licensed under the GNU General Public License Version 2
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more ip6.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
*/
|
|
|
|
#ifndef __CE_PAGE_IP6_H
|
|
#define __CE_PAGE_IP6_H
|
|
|
|
#include <glib-object.h>
|
|
|
|
#include <gtk/gtk.h>
|
|
#include "ce-page.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define CE_TYPE_PAGE_IP6 (ce_page_ip6_get_type ())
|
|
#define CE_PAGE_IP6(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), CE_TYPE_PAGE_IP6, CEPageIP6))
|
|
#define CE_PAGE_IP6_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), CE_TYPE_PAGE_IP6, CEPageIP6Class))
|
|
#define CE_IS_PAGE_IP6(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), CE_TYPE_PAGE_IP6))
|
|
#define CE_IS_PAGE_IP6_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), CE_TYPE_PAGE_IP6))
|
|
#define CE_PAGE_IP6_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), CE_TYPE_PAGE_IP6, CEPageIP6Class))
|
|
|
|
typedef struct _CEPageIP6 CEPageIP6;
|
|
typedef struct _CEPageIP6Class CEPageIP6Class;
|
|
|
|
struct _CEPageIP6
|
|
{
|
|
CEPage parent;
|
|
|
|
NMSettingIPConfig *setting;
|
|
|
|
GtkToggleButton *disabled;
|
|
GtkWidget *address_list;
|
|
GtkSwitch *auto_dns;
|
|
GtkWidget *dns_entry;
|
|
GtkSwitch *auto_routes;
|
|
GtkWidget *routes_list;
|
|
GtkWidget *never_default;
|
|
};
|
|
|
|
struct _CEPageIP6Class
|
|
{
|
|
CEPageClass parent_class;
|
|
};
|
|
|
|
GType ce_page_ip6_get_type (void);
|
|
|
|
CEPage *ce_page_ip6_new (NMConnection *connection,
|
|
NMClient *client);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __CE_PAGE_IP6_H */
|
|
|