[Aptitude-devel] [PATCH 4 of 5] SizeGroup for the search in packages and dependency paths. Changed spacing from 5 to 6. Added spacing to tab labels
Luca Bruno
lethalman88 at gmail.com
Wed Dec 24 14:40:48 UTC 2008
# HG changeset patch
# User Luca Bruno <lethalman88 at gmail.com>
# Date 1230128386 -3600
# Node ID 2d91666cc72f842ce7fca8509166a99446ae7f35
# Parent 8c6559fcd9b4b7c4d879bb9c69cc3f64a4b42571
SizeGroup for the search in packages and dependency paths. Changed spacing from 5 to 6. Added spacing to tab labels.
diff --git a/src/gtk/aptitude.glade b/src/gtk/aptitude.glade
--- a/src/gtk/aptitude.glade
+++ b/src/gtk/aptitude.glade
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
-<!--Generated with glade3 3.4.5 on Wed Dec 24 14:32:06 2008 -->
+<!--Generated with glade3 3.4.5 on Wed Dec 24 15:19:39 2008 -->
<glade-interface>
<widget class="GtkWindow" id="main_window">
<property name="title" translatable="yes">Aptitude Package Manager</property>
@@ -428,7 +428,7 @@
<widget class="GtkHBox" id="hbox7">
<property name="height_request">32</property>
<property name="visible">True</property>
- <property name="spacing">5</property>
+ <property name="spacing">6</property>
<child>
<widget class="GtkLabel" id="label1">
<property name="visible">True</property>
@@ -655,6 +655,7 @@
<child>
<widget class="GtkHBox" id="main_notebook_download_label_hbox">
<property name="visible">True</property>
+ <property name="spacing">6</property>
<child>
<widget class="GtkLabel" id="main_notebook_download_label">
<property name="visible">True</property>
@@ -700,9 +701,9 @@
<widget class="GtkHBox" id="hbox2">
<property name="height_request">32</property>
<property name="visible">True</property>
- <property name="spacing">5</property>
+ <property name="spacing">6</property>
<child>
- <widget class="GtkLabel" id="label2">
+ <widget class="GtkLabel" id="main_notebook_packages_limit_label">
<property name="visible">True</property>
<property name="label" translatable="yes">Search:</property>
</widget>
@@ -741,9 +742,11 @@
<child>
<widget class="GtkHBox" id="hbox8">
<property name="visible">True</property>
+ <property name="spacing">6</property>
<child>
- <widget class="GtkLabel" id="label19">
+ <widget class="GtkLabel" id="main_notebook_packages_show_only_label">
<property name="visible">True</property>
+ <property name="xalign">0</property>
<property name="label" translatable="yes">Show </property>
</widget>
<packing>
@@ -820,6 +823,7 @@
<child>
<widget class="GtkHBox" id="main_notebook_packages_label_hbox">
<property name="visible">True</property>
+ <property name="spacing">6</property>
<child>
<widget class="GtkLabel" id="main_notebook_label_packages">
<property name="visible">True</property>
@@ -1289,9 +1293,9 @@
<widget class="GtkHBox" id="hbox4">
<property name="height_request">32</property>
<property name="visible">True</property>
- <property name="spacing">5</property>
+ <property name="spacing">6</property>
<child>
- <widget class="GtkLabel" id="label13">
+ <widget class="GtkLabel" id="dependency_path_start_limit_label">
<property name="visible">True</property>
<property name="label" translatable="yes">Search:</property>
</widget>
@@ -1330,9 +1334,11 @@
<child>
<widget class="GtkHBox" id="hbox9">
<property name="visible">True</property>
+ <property name="spacing">6</property>
<child>
- <widget class="GtkLabel" id="label20">
+ <widget class="GtkLabel" id="dependency_path_start_show_only_label">
<property name="visible">True</property>
+ <property name="xalign">0</property>
<property name="label" translatable="yes">Show </property>
</widget>
<packing>
@@ -1411,9 +1417,9 @@
<widget class="GtkHBox" id="hbox5">
<property name="height_request">32</property>
<property name="visible">True</property>
- <property name="spacing">5</property>
+ <property name="spacing">6</property>
<child>
- <widget class="GtkLabel" id="label12">
+ <widget class="GtkLabel" id="dependency_path_end_limit_label">
<property name="visible">True</property>
<property name="label" translatable="yes">Search:</property>
</widget>
@@ -1452,9 +1458,11 @@
<child>
<widget class="GtkHBox" id="hbox10">
<property name="visible">True</property>
+ <property name="spacing">6</property>
<child>
- <widget class="GtkLabel" id="label21">
+ <widget class="GtkLabel" id="dependency_path_end_show_only_label">
<property name="visible">True</property>
+ <property name="xalign">0</property>
<property name="label" translatable="yes">Show </property>
</widget>
<packing>
diff --git a/src/gtk/dependency_chains_tab.cc b/src/gtk/dependency_chains_tab.cc
--- a/src/gtk/dependency_chains_tab.cc
+++ b/src/gtk/dependency_chains_tab.cc
@@ -82,6 +82,17 @@
results_view->get_version_column()->set_visible(false);
selection_changed();
+
+ Glib::RefPtr<Gtk::SizeGroup> size_group = Gtk::SizeGroup::create(Gtk::SIZE_GROUP_HORIZONTAL);
+ Gtk::Label *path_label;
+ get_xml()->get_widget("dependency_path_start_limit_label", path_label);
+ size_group->add_widget (*path_label);
+ get_xml()->get_widget("dependency_path_start_show_only_label", path_label);
+ size_group->add_widget (*path_label);
+ get_xml()->get_widget("dependency_path_end_limit_label", path_label);
+ size_group->add_widget (*path_label);
+ get_xml()->get_widget("dependency_path_end_show_only_label", path_label);
+ size_group->add_widget (*path_label);
// \todo do something sensible on "closed".
cache_reloaded.connect(sigc::mem_fun(this, &DependencyChainsTab::selection_changed));
diff --git a/src/gtk/packagestab.cc b/src/gtk/packagestab.cc
--- a/src/gtk/packagestab.cc
+++ b/src/gtk/packagestab.cc
@@ -271,6 +271,13 @@
pPkgView->package_menu_actions_changed.connect(package_menu_actions_changed.make_slot());
apt_undos->changed.connect(undo_available_changed.make_slot());
+
+ Glib::RefPtr<Gtk::SizeGroup> size_group = Gtk::SizeGroup::create(Gtk::SIZE_GROUP_HORIZONTAL);
+ Gtk::Label *path_label;
+ get_xml()->get_widget("dependency_path_start_limit_label", path_label);
+ size_group->add_widget (*path_label);
+ get_xml()->get_widget("dependency_path_start_show_only_label", path_label);
+ size_group->add_widget (*path_label);
get_widget()->show();
}
More information about the Aptitude-devel
mailing list