Verified Kaydet (Commit) 7deb7aa4 authored tarafından Erdem Ersoy's avatar Erdem Ersoy

Rewrite Flatpak GUI mess (7/X):

* Rewrite installwindow.py (1/X)
* Add a FIXME to mainwindow.py
* Fix (?) a warning when main window is closed
üst 4abbf06d
...@@ -58,7 +58,7 @@ class InfoWindow(object): ...@@ -58,7 +58,7 @@ class InfoWindow(object):
self.InfoWindow.show() self.InfoWindow.show()
def on_delete_info_window(self, widget, event): def on_delete_info_window(self, widget, event):
widget.destroy() widget.hide_on_delete()
def on_copy_to_clipboard(self, button): def on_copy_to_clipboard(self, button):
clipboard_current = Gtk.Clipboard.get(Gdk.SELECTION_CLIPBOARD) clipboard_current = Gtk.Clipboard.get(Gdk.SELECTION_CLIPBOARD)
......
...@@ -256,9 +256,9 @@ class MainWindow(object): ...@@ -256,9 +256,9 @@ class MainWindow(object):
return False return False
def on_delete_main_window(self, widget, event): def on_delete_main_window(self, widget, event):
widget.destroy() widget.hide_on_delete()
def on_columns_changed(self, tree_view): def on_columns_changed(self, tree_view): # FIXME: Remove
selection = tree_view.get_selection() selection = tree_view.get_selection()
tree_model, tree_iter = selection.get_selected() tree_model, tree_iter = selection.get_selected()
if tree_iter is None: if tree_iter is None:
...@@ -565,10 +565,8 @@ class MainWindow(object): ...@@ -565,10 +565,8 @@ class MainWindow(object):
branch = tree_model.get_value(tree_iter, 2) branch = tree_model.get_value(tree_iter, 2)
remote = tree_model.get_value(tree_iter, 3) remote = tree_model.get_value(tree_iter, 3)
InstallWindow(self.Application, real_name, arch, branch, InstallWindow(self.Application, self.FlatpakInstallation, real_name, arch, branch,
remote, self.FlatpakInstallation, remote, self.ListStoreMain, self.SearchFilter)
self.TreeViewMain, self.RunMenuItem,
self.InstallMenuItem, self.UninstallMenuItem)
def on_install_from_entry(self, menu_item): def on_install_from_entry(self, menu_item):
InstallFromEntryWindow(self.Application, self.FlatpakInstallation, InstallFromEntryWindow(self.Application, self.FlatpakInstallation,
......
...@@ -37,7 +37,7 @@ Author: Erdem Ersoy ...@@ -37,7 +37,7 @@ Author: Erdem Ersoy
<property name="default_height">400</property> <property name="default_height">400</property>
<property name="icon_name">document-save</property> <property name="icon_name">document-save</property>
<property name="show_menubar">False</property> <property name="show_menubar">False</property>
<signal name="destroy" handler="onDestroy" swapped="no"/> <signal name="delete-event" handler="on_delete_action_window" swapped="no"/>
<child> <child>
<placeholder/> <placeholder/>
</child> </child>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment