1. 02 Oct, 2009 1 commit
    • Dan Williams's avatar
      editor: fix secrets requests after 78b7101d · 6878f634
      Dan Williams authored
      After 78b7101d, the page's connection
      would of course be the duplicated connection which is a plain
      NMConnection that user edits are done on.  THat of course doesn't
      implement NMSettingsConnectionInterface, and thus can't respond to
      requests for secrets.
      
      Instead, we have the CEPage subclasses for each setting type pass back
      the name of the setting they want secrets for, if they need secrets,
      and let the editor ask for the secrets since it has the original
      connection which usually implements NMSettingsConnectionInterface.
      
      By moving the addition of the page's GtkWidget to after page
      initialization, we also fix system VPN connections, which were broken
      because the VPN page's plugin-provided widget is only valid after
      the page is initialized, but the editor expected it to be valid
      right after requesting secrets.  In the case of system secrets, the
      request is over D-Bus and is async, which meant that the call would
      complete and the page would initalize long after the connection editor
      had tried to add the page to the UI.
      6878f634
  2. 02 Jun, 2009 1 commit
  3. 03 Apr, 2009 1 commit
    • Dan Williams's avatar
      Ensure PolicyKit autorization before editing system connections, and · 90e6e250
      Dan Williams authored
      2009-04-03  Dan Williams  <dcbw@redhat.com>
      
      	* Ensure PolicyKit autorization before editing system connections, and
      		request secrets from the system settings service for system connections.
      		This requires splitting each CEPage subclass's *_new() method into
      		two parts, the first doing minimal setup, and the second filling in
      		the UI with details from the backing NMConnection.  Between the first
      		and second parts, if required, secrets are requested from the system
      		settings service using PolicyKit.  As a bonus, actually handle errors
      		instead of dropping them on the floor.
      
      
      svn path=/trunk/; revision=1244
      90e6e250
  4. 26 Oct, 2008 1 commit
    • Dan Williams's avatar
      Patch from Tambet Ingo <tambet@gmail.com> · 9cd8d0b1
      Dan Williams authored
      2008-10-26  Dan Williams  <dcbw@redhat.com>
      
      	Patch from Tambet Ingo <tambet@gmail.com>
      
      	* src/connection-editor/ce-page.c
      	  src/connection-editor/ce-page.h
      	  src/connection-editor/page-wired.c
      	  src/utils/utils.c
      		- Use wired setting accessors
      
      
      svn path=/trunk/; revision=976
      9cd8d0b1
  5. 08 Jul, 2008 1 commit
    • Dan Williams's avatar
      src/connection-editor/nm-connection-editor.c · bb5ad284
      Dan Williams authored
      2008-07-08  Dan Williams  <dcbw@redhat.com>
      
      	* src/connection-editor/nm-connection-editor.c
      	  src/connection-editor/nm-connection-editor.h
      	  src/connection-editor/ce-page.c
      	  src/connection-editor/ce-page.h
      		- Move ce_spin_output_with_default() and ce_get_property_default() to
      			ce-page.c
      
      
      svn path=/trunk/; revision=785
      bb5ad284
  6. 26 Jun, 2008 1 commit
  7. 20 Jun, 2008 1 commit
    • Tambet Ingo's avatar
      src/connection-editor/ce-page.c src/connection-editor/ce-page.h · 291f1f12
      Tambet Ingo authored
      2008-06-20  Tambet Ingo  <tambet@gmail.com>
      
      	* src/connection-editor/ce-page.c
      	src/connection-editor/ce-page.h
      	src/connection-editor/nm-connection-editor.c
      	src/connection-editor/nm-connection-editor.h
      	src/connection-editor/nm-connection-list.c
      	src/connection-editor/page-dsl.c
      	src/connection-editor/page-ip4.c
      	src/connection-editor/page-mobile.c
      	src/connection-editor/page-ppp.c
      	src/connection-editor/page-vpn.c
      	src/connection-editor/page-wired-security.c
      	src/connection-editor/page-wired.c
      	src/connection-editor/page-wireless-security.c
      	src/connection-editor/page-wireless-security.h
      	src/connection-editor/page-wireless.c
      
      	Use a copy of the real connection in the connection editor. Fixes issues
      	where the connection is updated but writing it fails for some reason.
      	Keep the connection that's been edited updated after every UI change so
      	that pages can act on changes to other pages.
      
      svn path=/trunk/; revision=760
      291f1f12
  8. 13 Jun, 2008 1 commit
  9. 27 Apr, 2008 1 commit
    • Dan Williams's avatar
      src/utils/utils.c src/utils/utils.h - (utils_ether_ntop, utils_mac_valid): · d09f0f0f
      Dan Williams authored
      2008-04-27  Dan Williams  <dcbw@redhat.com>
      
      	* src/utils/utils.c
      	  src/utils/utils.h
      		- (utils_ether_ntop, utils_mac_valid): new functions
      
      	* src/connection-editor/ce-page.c
      	  src/connection-editor/ce-page.h
      		- (ce_page_mac_to_entry, ce_page_entry_to_mac): new functions
      
      	* src/connection-editor/ce-page-wireless.glade
      	  src/connection-editor/page-wireless.c
      		- Hook up BSSID and MAC address entries
      		- Hide widgets for settings NM doesn't yet support
      
      	* src/connection-editor/ce-page-wired.glade
      	  src/connection-editor/page-wired.c
      		- Hook up MAC address entry
      		- Hide widgets for settings NM doesn't yet support
      
      
      svn path=/trunk/; revision=701
      d09f0f0f
  10. 15 Apr, 2008 1 commit
    • Tambet Ingo's avatar
      Use nm_setting_duplicate() instead of hashing the setting first and then · 12c36d57
      Tambet Ingo authored
          2008-04-15  Tambet Ingo  <tambet@gmail.com>
      
          	* src/connection-editor/page-wireless.c (ce_page_wireless_new):
          	* src/connection-editor/page-wired.c (ce_page_wired_new):
          	* src/connection-editor/page-mobile.c (ce_page_mobile_new):
          	* src/connection-editor/page-ip4.c (ce_page_ip4_new):
          	* src/connection-editor/page-dsl.c (ce_page_dsl_new): Use
          	nm_setting_duplicate() instead of hashing the setting first and then
          	creating a new setting out of the hash. In addition to being annoying
          	to do, it also missed non-serializable properties in the duplicate.
      
          2008-04-15  Tambet Ingo  <tambet@gmail.com>
      
          	* src/connection-editor/page-wired-security.[ch]: Implement.
      
          	* src/connection-editor/nm-connection-editor.c
          	(nm_connection_editor_set_connection): Add wired security page.
      
          	* src/connection-editor/Makefile.am: Build new files.
      
          	* src/wireless-security/wireless-security.c
          	(ws_802_1x_auth_combo_init): Don't require a wireless security setting,
          	makes it preselect the correct EAP method for wired security as well.
      
          	* src/gconf-helpers/gconf-helpers.c (remove_leftovers): Implement.
          	(nm_gconf_write_connection): Remove the left over settings from GConf
          	which are not part of NMConnection anymore.
      
      svn path=/trunk/; revision=667
      12c36d57
  11. 10 Apr, 2008 1 commit
    • Tambet Ingo's avatar
      Another day, another page. · 9ca8ccbf
      Tambet Ingo authored
      2008-04-10  Tambet Ingo  <tambet@gmail.com>
      
      	* src/connection-editor/page-wired.c: Another day, another page.
      
      svn path=/trunk/; revision=664
      9ca8ccbf
  12. 26 Mar, 2008 1 commit
    • Dan Williams's avatar
      Patch from Tambet Ingo <tambet@gmail.com> · 8ef846c0
      Dan Williams authored
      2008-03-26  Dan Williams  <dcbw@redhat.com>
      
      	Patch from Tambet Ingo <tambet@gmail.com>
      
      	* src/connection-editor/ce-page.[ch]: Add a "changed" signal so that the pages
      	can tell when they change and the connection editor to notice it.
      
      	* src/connection-editor/nm-connection-editor.c: Listen to the CEPage::changed
      	signals, validate them, and update the dialog's "OK" button's sensitivity
      	accordingly.
      	(nm_connection_editor_run_and_close): Update the connection by iterating over
      	all pages and letting each update their own part.
      
      	* src/connection-editor/page-*.c: Add a stub for required "update_connection"
      	virtual function.
      
      	* src/connection-editor/page-wireless-security.c (ce_page_wireless_security_new):
      	Fix a bug where the default wireless combo box would always be the first item.
      	Don't take the "ok_button" argument, it's handled by the framework now.
      	(validate): Implement.
      
      
      svn path=/trunk/; revision=615
      8ef846c0
  13. 27 Feb, 2008 1 commit
    • Dan Williams's avatar
      Refactor connection editor page handling in preparation for making · e37f298d
      Dan Williams authored
      2008-02-27  Dan Williams  <dcbw@redhat.com>
      
      	Refactor connection editor page handling in preparation
      	for making Add/Edit work.
      
      	* src/connection-editor/Makefile.am
      	  connection-editor/ce-page.c
      	  connection-editor/ce-page.h
      		- Add the base CEPage class from which all other connection editor pages
      			derive
      
      	* connection-editor/page-ip4-address.c
      	  connection-editor/page-ip4-address.h
      	  connection-editor/page-ip4.c
      	  connection-editor/page-ip4.h
      	  connection-editor/page-wired.c
      	  connection-editor/page-wired.h
      	  connection-editor/page-wireless-security.c
      	  connection-editor/page-wireless-security.h
      	  connection-editor/page-wireless.c
      	  connection-editor/page-wireless.h
      		- Make each page a subclass of CEPage
      
      	* connection-editor/nm-connection-editor.c
      	  connection-editor/nm-connection-editor.h
      		- Update for these changes; handle CEPage objects instead of just
      			GtkWidgets
      
      
      svn path=/trunk/; revision=561
      e37f298d
  14. 28 Jan, 2008 1 commit
    • Dan Williams's avatar
      po/POTFILES.in - Add new translatables · 135eebb3
      Dan Williams authored
      2008-01-28  Dan Williams  <dcbw@redhat.com>
      
      	* po/POTFILES.in
      		- Add new translatables
      
      	* src/connection-editor/Makefile.am
      		- Add new pae sources and glade files
      
      	* src/connection-editor/page-wired.c
      	  src/connection-editor/page-wired.h
      	  src/connection-editor/ce-page-wired.glade
      		- Split wired bits out
      
      	* src/connection-editor/page-wireless.c
      	  src/connection-editor/page-wireless.h
      	  src/connection-editor/ce-page-wireless.glade
      		- Split wireless bits out
      
      	* src/connection-editor/page-wireless-security.c
      	  src/connection-editor/page-wireless-security.h
      		- Split wireless security bits out
      
      	* src/connection-editor/page-ip4-address.c
      	  src/connection-editor/page-ip4-address.h
      	  src/connection-editor/ce-page-ip4-address.glade
      		- Split IPv4 address bits out
      
      	* src/connection-editor/page-ip4.c
      	  src/connection-editor/page-ip4.h
      	  src/connection-editor/ce-page-ip4.glade
      		- Split IPv4 DNS & search domain bits out
      
      	* src/connection-editor/nm-connection-editor.c
      	  src/connection-editor/nm-connection-editor.h
      	  src/connection-editor/nm-connection-editor.glade
      		- Move all the settings pages to their own sources and glade files
      
      
      svn path=/trunk/; revision=485
      135eebb3