Le 23/10/2010 12:11, Ozan Çağlayan a écrit :
> All I want to do is to invert the default state of the 'Available to
> all users' checkbox to True so that it comes toggled and the buttons
> are polkit-aware.
Not sure how and why but this worked for me:
--- usr/share/nm-applet/nm-connection-editor.glade 2010/08/23 09:18:59
1.1
+++ usr/share/nm-applet/nm-connection-editor.glade 2010/08/23 10:14:58
@@ -561,6 +561,8 @@
<child>
<widget class="GtkCheckButton" id="system_checkbutton">
<property name="label" translatable="yes">Available to all
users</property>
+ <!-- This is a bit brutal but avoids a complicated dependency on
nm-applet -->
+ <property name="active">True</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
(sorry I do not remember what my comment means!)
> I modified the glade file and added a property
> active which is 'True', but I have to trigger the relevant callback
> in nm-connection-editor.c so that the UI is re-populated.
In my case NM starts with a modified .glade file.
_______________________________________________
networkmanager-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/networkmanager-list