文件操作 - NewPrinterName.ui
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/system-config-printer/ui/NewPrinterName.ui
编辑文件内容
<?xml version="1.0" encoding="UTF-8"?> <interface> <requires lib="gtk+" version="2.16"/> <!-- interface-naming-policy toplevel-contextual --> <object class="GtkDialog" id="NewPrinterName"> <property name="title" translatable="yes">Duplicate Printer</property> <property name="modal">True</property> <property name="window_position">center-on-parent</property> <property name="type_hint">dialog</property> <child internal-child="vbox"> <object class="GtkVBox" id="dialog-vbox6"> <property name="visible">True</property> <property name="spacing">6</property> <child> <object class="GtkLabel" id="label102"> <property name="visible">True</property> <property name="xalign">0</property> <property name="label" translatable="yes">New name for the printer</property> </object> <packing> <property name="expand">False</property> <property name="fill">False</property> <property name="position">2</property> </packing> </child> <child> <object class="GtkEntry" id="entDuplicateName"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="has_focus">True</property> <signal name="changed" handler="on_entDuplicateName_changed" swapped="no"/> </object> <packing> <property name="expand">False</property> <property name="fill">False</property> <property name="position">3</property> </packing> </child> <child internal-child="action_area"> <object class="GtkHButtonBox" id="dialog-action_area6"> <property name="visible">True</property> <property name="layout_style">end</property> <child> <object class="GtkButton" id="btnDuplicateCancel"> <property name="label">gtk-cancel</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="receives_default">False</property> <property name="use_stock">True</property> </object> <packing> <property name="expand">False</property> <property name="fill">False</property> <property name="position">0</property> </packing> </child> <child> <object class="GtkButton" id="btnDuplicateOk"> <property name="label">gtk-ok</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="can_default">True</property> <property name="has_default">True</property> <property name="receives_default">False</property> <property name="use_stock">True</property> </object> <packing> <property name="expand">False</property> <property name="fill">False</property> <property name="position">1</property> </packing> </child> </object> <packing> <property name="expand">False</property> <property name="pack_type">end</property> <property name="position">0</property> </packing> </child> </object> </child> <action-widgets> <action-widget response="-6">btnDuplicateCancel</action-widget> <action-widget response="-5">btnDuplicateOk</action-widget> </action-widgets> </object> </interface>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件