[glom] DataWidget: Do not expand the Open and Find buttons.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] DataWidget: Do not expand the Open and Find buttons.
- Date: Thu, 8 Sep 2011 14:10:22 +0000 (UTC)
commit 8b1ffc31a134e239c8d4f3948f9ae49985b134f8
Author: Murray Cumming <murrayc murrayc com>
Date: Thu Sep 8 16:10:12 2011 +0200
DataWidget: Do not expand the Open and Find buttons.
* glom/mode_data/datawidget/datawidget.cc: Use Gtk::PACK_SHRINK.
ChangeLog | 6 ++++++
glom/mode_data/datawidget/datawidget.cc | 4 ++--
2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 793f566..119a9dc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2011-09-08 Murray Cumming <murrayc murrayc com>
+ DataWidget: Do not expand the Open and Find buttons.
+
+ * glom/mode_data/datawidget/datawidget.cc: Use Gtk::PACK_SHRINK.
+
+2011-09-08 Murray Cumming <murrayc murrayc com>
+
Print Layout: Do not show the formatting context menu items when it is useless.
* glom/print_layout/canvas_print_layout.cc: on_item_show_context_menu():
diff --git a/glom/mode_data/datawidget/datawidget.cc b/glom/mode_data/datawidget/datawidget.cc
index e64fa28..8ad5d4c 100644
--- a/glom/mode_data/datawidget/datawidget.cc
+++ b/glom/mode_data/datawidget/datawidget.cc
@@ -222,7 +222,7 @@ DataWidget::DataWidget(const sharedptr<LayoutItem_Field>& field, const Glib::ust
//Add a button for related record navigation:
m_button_go_to_details = Gtk::manage(new Gtk::Button(Gtk::Stock::OPEN));
m_button_go_to_details->set_tooltip_text(_("Open the record identified by this ID, in the other table."));
- hbox_parent->pack_start(*m_button_go_to_details);
+ hbox_parent->pack_start(*m_button_go_to_details, Gtk::PACK_SHRINK);
m_button_go_to_details->signal_clicked().connect(sigc::mem_fun(*this, &DataWidget::on_button_open_details));
//Add a button to make it easier to choose an ID for this field.
@@ -232,7 +232,7 @@ DataWidget::DataWidget(const sharedptr<LayoutItem_Field>& field, const Glib::ust
{
Gtk::Button* button_select = Gtk::manage(new Gtk::Button(Gtk::Stock::FIND));
button_select->set_tooltip_text(_("Enter search criteria to identify records in the other table, to choose an ID for this field."));
- hbox_parent->pack_start(*button_select);
+ hbox_parent->pack_start(*button_select, Gtk::PACK_SHRINK);
button_select->signal_clicked().connect(sigc::mem_fun(*this, &DataWidget::on_button_select_id));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]