diff --git a/resources/choose_dep_dialog.ui b/resources/choose_dep_dialog.ui deleted file mode 100644 index fcfb2ea04d3ee28cac1d1c72ab9c281823423541..0000000000000000000000000000000000000000 --- a/resources/choose_dep_dialog.ui +++ /dev/null @@ -1,119 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Generated with glade 3.20.0 --> -<interface> - <requires lib="gtk+" version="3.12"/> - <template class="PamacChooseDependenciesDialog" parent="GtkDialog"> - <property name="can_focus">False</property> - <property name="border_width">3</property> - <property name="title" translatable="yes">Choose Optional Dependencies</property> - <property name="modal">True</property> - <property name="window_position">center-on-parent</property> - <property name="default_width">600</property> - <property name="icon_name">system-software-install</property> - <property name="type_hint">dialog</property> - <property name="urgency_hint">True</property> - <property name="deletable">False</property> - <child internal-child="vbox"> - <object class="GtkBox" id="dialog-vbox1"> - <property name="can_focus">False</property> - <property name="orientation">vertical</property> - <property name="spacing">12</property> - <child internal-child="action_area"> - <object class="GtkButtonBox" id="dialog-action_area1"> - <property name="can_focus">False</property> - <property name="layout_style">end</property> - <child> - <object class="GtkButton" id="cancel_button"> - <property name="label" translatable="yes">_Cancel</property> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="has_focus">True</property> - <property name="receives_default">False</property> - <property name="use_underline">True</property> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">0</property> - </packing> - </child> - <child> - <object class="GtkButton" id="valid_button"> - <property name="label" translatable="yes">Choose</property> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="has_focus">True</property> - <property name="can_default">True</property> - <property name="has_default">True</property> - <property name="receives_default">False</property> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">1</property> - </packing> - </child> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="pack_type">end</property> - <property name="position">0</property> - </packing> - </child> - <child> - <object class="GtkScrolledWindow" id="scrolledwindow5"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="shadow_type">in</property> - <property name="min_content_width">350</property> - <property name="min_content_height">250</property> - <child> - <object class="GtkTreeView" id="treeview"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="headers_visible">False</property> - <property name="headers_clickable">False</property> - <property name="enable_search">False</property> - <property name="show_expanders">False</property> - <child internal-child="selection"> - <object class="GtkTreeSelection" id="treeview-selection5"> - <property name="mode">none</property> - </object> - </child> - <child> - <object class="GtkTreeViewColumn" id="treeviewcolumn1"> - <property name="sizing">autosize</property> - <child> - <object class="GtkCellRendererToggle" id="renderertoggle"> - <signal name="toggled" handler="on_renderertoggle_toggled" swapped="no"/> - </object> - <attributes> - <attribute name="active">0</attribute> - </attributes> - </child> - <child> - <object class="GtkCellRendererText" id="renderertext1"/> - <attributes> - <attribute name="text">1</attribute> - </attributes> - </child> - </object> - </child> - </object> - </child> - </object> - <packing> - <property name="expand">True</property> - <property name="fill">True</property> - <property name="position">2</property> - </packing> - </child> - </object> - </child> - <action-widgets> - <action-widget response="-6">cancel_button</action-widget> - <action-widget response="-5">valid_button</action-widget> - </action-widgets> - </template> -</interface> diff --git a/resources/manager_window.ui b/resources/manager_window.ui index a56024403c415c46c96fcbe00da6545e8f12bdf7..45959b97c6e52e0415bea68367e1c26f4276f64a 100644 --- a/resources/manager_window.ui +++ b/resources/manager_window.ui @@ -783,30 +783,6 @@ <child> <placeholder/> </child> - <child> - <placeholder/> - </child> - <child> - <placeholder/> - </child> - <child> - <placeholder/> - </child> - <child> - <placeholder/> - </child> - <child> - <placeholder/> - </child> - <child> - <placeholder/> - </child> - <child> - <placeholder/> - </child> - <child> - <placeholder/> - </child> </object> </child> </object> @@ -836,30 +812,6 @@ <child> <placeholder/> </child> - <child> - <placeholder/> - </child> - <child> - <placeholder/> - </child> - <child> - <placeholder/> - </child> - <child> - <placeholder/> - </child> - <child> - <placeholder/> - </child> - <child> - <placeholder/> - </child> - <child> - <placeholder/> - </child> - <child> - <placeholder/> - </child> </object> </child> </object> diff --git a/src/choose_dep_dialog.vala b/src/choose_dep_dialog.vala deleted file mode 100644 index 2c724a3cbe1e43321500865d6fd2a96e4613ff55..0000000000000000000000000000000000000000 --- a/src/choose_dep_dialog.vala +++ /dev/null @@ -1,47 +0,0 @@ -/* - * pamac-vala - * - * Copyright (C) 2014-2016 Guillaume Benoit <guillaume@manjaro.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a get of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -namespace Pamac { - - [GtkTemplate (ui = "/org/manjaro/pamac/manager/choose_dep_dialog.ui")] - class ChooseDependenciesDialog : Gtk.Dialog { - - [GtkChild] - public Gtk.TreeView treeview; - - public Gtk.ListStore deps_list; - - public ChooseDependenciesDialog (Gtk.ApplicationWindow? window) { - Object (transient_for: window, use_header_bar: 1); - - deps_list = new Gtk.ListStore (2, typeof (bool), typeof (string)); - treeview.set_model (deps_list); - } - - [GtkCallback] - void on_renderertoggle_toggled (string path) { - Gtk.TreeIter iter; - bool selected; - if (deps_list.get_iter_from_string (out iter, path)) {; - deps_list.get (iter, 0, out selected); - deps_list.set (iter, 0, !selected); - } - } - } -}