remove lots of deprecated Gtk syntax

Esse commit está contido em:
fossfreedom
2015-01-28 20:40:04 +00:00
commit 4bc283a420
8 arquivos alterados com 73 adições e 78 exclusões
+1
Ver Arquivo
@@ -83,6 +83,7 @@ class CoverArtExport(GObject.Object):
'ui/coverart_exportembed.ui')) 'ui/coverart_exportembed.ui'))
ui.connect_signals(self) ui.connect_signals(self)
embeddialog = ui.get_object('exportembeddialog') embeddialog = ui.get_object('exportembeddialog')
embeddialog.set_transient_for(self.shell.props.window)
folderchooserbutton = ui.get_object('folderchooserbutton') folderchooserbutton = ui.get_object('folderchooserbutton')
use_album_name_checkbutton = ui.get_object('use_album_name_checkbutton') use_album_name_checkbutton = ui.get_object('use_album_name_checkbutton')
open_filemanager_checkbutton = ui.get_object('open_filemanager_checkbutton') open_filemanager_checkbutton = ui.get_object('open_filemanager_checkbutton')
+1 -1
Ver Arquivo
@@ -52,7 +52,7 @@ class Toolbar(GObject.Object):
# create the toolbar # create the toolbar
builder = Gtk.Builder() builder = Gtk.Builder()
builder.set_translation_domain(cl.Locale.LOCALE_DOMAIN) builder.set_translation_domain(cl.Locale.LOCALE_DOMAIN)
print (ui_file)
builder.add_from_file(ui_file) builder.add_from_file(ui_file)
# assign the controllers to the buttons # assign the controllers to the buttons
+1 -2
Ver Arquivo
@@ -1,11 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<interface> <interface>
<!-- interface-requires gtk+ 3.0 -->
<!-- interface-requires coverart_widgets 1.0 --> <!-- interface-requires coverart_widgets 1.0 -->
<object class="GtkImage" id="cancel-icon"> <object class="GtkImage" id="cancel-icon">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="stock">gtk-cancel</property> <property name="icon_name">gtk-cancel</property>
</object> </object>
<object class="GtkListStore" id="liststore1"> <object class="GtkListStore" id="liststore1">
<columns> <columns>
+1 -13
Ver Arquivo
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.16.1 --> <!-- Generated with glade 3.18.3 -->
<interface> <interface>
<requires lib="gtk+" version="3.10"/> <requires lib="gtk+" version="3.10"/>
<object class="GtkImage" id="add_image"> <object class="GtkImage" id="add_image">
@@ -982,8 +982,6 @@ albums to play</property>
<packing> <packing>
<property name="left_attach">2</property> <property name="left_attach">2</property>
<property name="top_attach">0</property> <property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing> </packing>
</child> </child>
<child> <child>
@@ -1000,8 +998,6 @@ albums to play</property>
<packing> <packing>
<property name="left_attach">2</property> <property name="left_attach">2</property>
<property name="top_attach">1</property> <property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing> </packing>
</child> </child>
<child> <child>
@@ -1013,8 +1009,6 @@ albums to play</property>
<packing> <packing>
<property name="left_attach">0</property> <property name="left_attach">0</property>
<property name="top_attach">0</property> <property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing> </packing>
</child> </child>
<child> <child>
@@ -1026,8 +1020,6 @@ albums to play</property>
<packing> <packing>
<property name="left_attach">0</property> <property name="left_attach">0</property>
<property name="top_attach">1</property> <property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing> </packing>
</child> </child>
<child> <child>
@@ -1039,8 +1031,6 @@ albums to play</property>
<packing> <packing>
<property name="left_attach">1</property> <property name="left_attach">1</property>
<property name="top_attach">0</property> <property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing> </packing>
</child> </child>
<child> <child>
@@ -1052,8 +1042,6 @@ albums to play</property>
<packing> <packing>
<property name="left_attach">1</property> <property name="left_attach">1</property>
<property name="top_attach">1</property> <property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing> </packing>
</child> </child>
</object> </object>
-1
Ver Arquivo
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<interface> <interface>
<!-- interface-requires coverart_widgets 1.0 --> <!-- interface-requires coverart_widgets 1.0 -->
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkGrid" id="toolbar"> <object class="GtkGrid" id="toolbar">
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="valign">start</property> <property name="valign">start</property>
-1
Ver Arquivo
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<interface> <interface>
<!-- interface-requires coverart_widgets 1.0 --> <!-- interface-requires coverart_widgets 1.0 -->
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkGrid" id="toolbar"> <object class="GtkGrid" id="toolbar">
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="valign">start</property> <property name="valign">start</property>
+10 -16
Ver Arquivo
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 -->
<interface> <interface>
<!-- interface-requires gtk+ 3.0 --> <requires lib="coverart_widgets" version="1.0"/>
<!-- interface-requires coverart_widgets 1.0 -->
<object class="GtkGrid" id="toolbar"> <object class="GtkGrid" id="toolbar">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="column-homogeneous">True</property> <property name="column_homogeneous">True</property>
<child> <child>
<object class="GtkBox" id="box2"> <object class="GtkBox" id="box2">
<property name="visible">True</property> <property name="visible">True</property>
@@ -17,7 +17,6 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="receives_default">False</property> <property name="receives_default">False</property>
<property name="use_action_appearance">False</property>
<property name="relief">half</property> <property name="relief">half</property>
</object> </object>
<packing> <packing>
@@ -49,7 +48,6 @@
<property name="halign">center</property> <property name="halign">center</property>
<property name="valign">center</property> <property name="valign">center</property>
<property name="margin_right">1</property> <property name="margin_right">1</property>
<property name="use_action_appearance">False</property>
<property name="relief">half</property> <property name="relief">half</property>
</object> </object>
<packing> <packing>
@@ -68,7 +66,6 @@
<property name="halign">center</property> <property name="halign">center</property>
<property name="valign">center</property> <property name="valign">center</property>
<property name="margin_right">1</property> <property name="margin_right">1</property>
<property name="use_action_appearance">False</property>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
@@ -79,14 +76,12 @@
<child> <child>
<object class="PopupButton" id="sort_by_artist"> <object class="PopupButton" id="sort_by_artist">
<property name="use_action_appearance">False</property> <property name="use_action_appearance">False</property>
<property name="visible">False</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="receives_default">False</property> <property name="receives_default">False</property>
<property name="has_tooltip">True</property> <property name="has_tooltip">True</property>
<property name="halign">center</property> <property name="halign">center</property>
<property name="valign">center</property> <property name="valign">center</property>
<property name="margin_right">1</property> <property name="margin_right">1</property>
<property name="use_action_appearance">False</property>
<property name="relief">half</property> <property name="relief">half</property>
</object> </object>
<packing> <packing>
@@ -98,14 +93,12 @@
<child> <child>
<object class="ImageToggleButton" id="sort_order_artist"> <object class="ImageToggleButton" id="sort_order_artist">
<property name="use_action_appearance">False</property> <property name="use_action_appearance">False</property>
<property name="visible">False</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="receives_default">True</property> <property name="receives_default">True</property>
<property name="has_tooltip">True</property> <property name="has_tooltip">True</property>
<property name="halign">center</property> <property name="halign">center</property>
<property name="valign">center</property> <property name="valign">center</property>
<property name="margin_right">1</property> <property name="margin_right">1</property>
<property name="use_action_appearance">False</property>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
@@ -161,7 +154,6 @@
<property name="halign">center</property> <property name="halign">center</property>
<property name="valign">center</property> <property name="valign">center</property>
<property name="margin_right">1</property> <property name="margin_right">1</property>
<property name="use_action_appearance">False</property>
<property name="relief">half</property> <property name="relief">half</property>
</object> </object>
<packing> <packing>
@@ -201,8 +193,11 @@
</packing> </packing>
</child> </child>
</object> </object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
</packing>
</child> </child>
<child> <child>
<object class="GtkBox" id="box3"> <object class="GtkBox" id="box3">
<property name="visible">True</property> <property name="visible">True</property>
@@ -212,8 +207,8 @@
<object class="GtkAlignment" id="entry_search_alignment"> <object class="GtkAlignment" id="entry_search_alignment">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="xscale">0.50</property>
<property name="xalign">1</property> <property name="xalign">1</property>
<property name="xscale">0.5</property>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
@@ -223,9 +218,8 @@
</child> </child>
</object> </object>
<packing> <packing>
<property name="expand">True</property> <property name="left_attach">1</property>
<property name="fill">True</property> <property name="top_attach">0</property>
<property name="position">1</property>
</packing> </packing>
</child> </child>
</object> </object>
+59 -44
Ver Arquivo
@@ -1,23 +1,59 @@
<?xml version="1.0"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 -->
<interface> <interface>
<!-- interface-naming-policy project-wide --> <requires lib="gtk+" version="3.10"/>
<object class="GtkWindow" id="CoverWindow"> <object class="GtkWindow" id="CoverWindow">
<property name="can_focus">False</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
<property name="window_position">center-on-parent</property> <property name="window_position">center-on-parent</property>
<property name="destroy_with_parent">True</property> <property name="destroy_with_parent">True</property>
<child> <child>
<object class="GtkVBox" id="vbox"> <object class="GtkBox" id="vbox">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property> <property name="orientation">vertical</property>
<child>
<object class="GtkScrolledWindow" id="scrolledwindow">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="vexpand">True</property>
<child>
<object class="GtkLayout" id="layout">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="has_focus">True</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
<property name="width">400</property>
<property name="height">400</property>
<child>
<object class="GtkImage" id="image">
<property name="width_request">0</property>
<property name="height_request">0</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="icon_name">gtk-missing-image</property>
</object>
</child>
</object>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child> <child>
<object class="GtkToolbar" id="toolbar"> <object class="GtkToolbar" id="toolbar">
<property name="visible">True</property> <property name="visible">True</property>
<property name="toolbar_style">text</property> <property name="can_focus">False</property>
<property name="toolbar_style">icons</property>
<child> <child>
<object class="GtkToolButton" id="save_as_button"> <object class="GtkToolButton" id="save_as_button">
<property name="visible">True</property> <property name="visible">True</property>
<property name="stock_id">gtk-save-as</property> <property name="can_focus">False</property>
<signal name="clicked" handler="on_save_as_button_clicked"/> <property name="icon_name">gtk-save-as</property>
<signal name="clicked" handler="on_save_as_button_clicked" swapped="no"/>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
@@ -27,8 +63,9 @@
<child> <child>
<object class="GtkToolButton" id="zoom_in_button"> <object class="GtkToolButton" id="zoom_in_button">
<property name="visible">True</property> <property name="visible">True</property>
<property name="stock_id">gtk-zoom-in</property> <property name="can_focus">False</property>
<signal name="clicked" handler="on_zoom_in_button_clicked"/> <property name="icon_name">gtk-zoom-in</property>
<signal name="clicked" handler="on_zoom_in_button_clicked" swapped="no"/>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
@@ -38,8 +75,9 @@
<child> <child>
<object class="GtkToolButton" id="zoom_out_button"> <object class="GtkToolButton" id="zoom_out_button">
<property name="visible">True</property> <property name="visible">True</property>
<property name="stock_id">gtk-zoom-out</property> <property name="can_focus">False</property>
<signal name="clicked" handler="on_zoom_out_button_clicked"/> <property name="icon_name">gtk-zoom-out</property>
<signal name="clicked" handler="on_zoom_out_button_clicked" swapped="no"/>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
@@ -49,8 +87,9 @@
<child> <child>
<object class="GtkToolButton" id="zoom_100_button"> <object class="GtkToolButton" id="zoom_100_button">
<property name="visible">True</property> <property name="visible">True</property>
<property name="stock_id">gtk-zoom-100</property> <property name="can_focus">False</property>
<signal name="clicked" handler="on_zoom_100_button_clicked"/> <property name="icon_name">gtk-zoom-100</property>
<signal name="clicked" handler="on_zoom_100_button_clicked" swapped="no"/>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
@@ -60,8 +99,9 @@
<child> <child>
<object class="GtkToolButton" id="zoom_fit_button"> <object class="GtkToolButton" id="zoom_fit_button">
<property name="visible">True</property> <property name="visible">True</property>
<property name="stock_id">gtk-zoom-fit</property> <property name="can_focus">False</property>
<signal name="clicked" handler="on_zoom_fit_button_clicked"/> <property name="icon_name">gtk-zoom-fit</property>
<signal name="clicked" handler="on_zoom_fit_button_clicked" swapped="no"/>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
@@ -71,10 +111,11 @@
<child> <child>
<object class="GtkToolButton" id="close_button"> <object class="GtkToolButton" id="close_button">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="stock_id">gtk-close</property> <property name="icon_name">gtk-close</property>
<signal name="clicked" handler="on_close_button_clicked" swapped="no"/>
<accelerator key="Escape" signal="clicked"/> <accelerator key="Escape" signal="clicked"/>
<signal name="clicked" handler="on_close_button_clicked"/>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
@@ -88,40 +129,14 @@
<property name="position">1</property> <property name="position">1</property>
</packing> </packing>
</child> </child>
<child>
<object class="GtkScrolledWindow" id="scrolledwindow">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hscrollbar_policy">automatic</property>
<property name="vscrollbar_policy">automatic</property>
<child>
<object class="GtkLayout" id="layout">
<property name="visible">True</property>
<property name="has_focus">True</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
<property name="width">400</property>
<property name="height">400</property>
<child>
<object class="GtkImage" id="image">
<property name="width_request">0</property>
<property name="height_request">0</property>
<property name="visible">True</property>
<property name="stock">gtk-missing-image</property>
</object>
</child>
</object>
</child>
</object>
<packing>
<property name="position">0</property>
</packing>
</child>
<child> <child>
<object class="GtkStatusbar" id="statusbar"> <object class="GtkStatusbar" id="statusbar">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property> <property name="position">2</property>
</packing> </packing>
</child> </child>