[chronojump] Menu: Fixed? menu width
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Menu: Fixed? menu width
- Date: Mon, 23 Mar 2020 12:05:29 +0000 (UTC)
commit 9bc4e81c91203b25543834cc8ae317cad8dc72e7
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Mar 23 13:04:30 2020 +0100
Menu: Fixed? menu width
glade/app1.glade | 1 -
src/gui/app1/menu.cs | 7 +++++++
2 files changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index e848649a..62ed8bad 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -764,7 +764,6 @@
<property name="right_padding">2</property>
<child>
<widget class="GtkViewport" id="viewport_menu_top">
- <property name="width_request">200</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
diff --git a/src/gui/app1/menu.cs b/src/gui/app1/menu.cs
index cfc90114..00020010 100644
--- a/src/gui/app1/menu.cs
+++ b/src/gui/app1/menu.cs
@@ -37,6 +37,7 @@ public partial class ChronoJumpWindow
[Widget] Gtk.Arrow arrow_menu_show_encoder_down;
[Widget] Gtk.Arrow arrow_menu_show_help_up;
[Widget] Gtk.Arrow arrow_menu_show_help_down;
+ [Widget] Gtk.Button button_show_menu;
[Widget] Gtk.Button button_show_modes;
//[Widget] Gtk.HPaned hpaned_contacts_main;
[Widget] Gtk.Viewport viewport_hpaned_contacts_main;
@@ -178,6 +179,12 @@ public partial class ChronoJumpWindow
//to care about viewport_menu_top being lower width allocated and a bit hidden by
hpaned_contacts_main
LogB.Information("viewport_menu_top.Allocation.Width: " +
viewport_menu_top.Allocation.Width.ToString());
LogB.Information("viewport_menu_top.SizeRequest.Width: " +
viewport_menu_top.SizeRequest().Width.ToString());
+
+ LogB.Information("button_show_menu.Allocation.Width: " +
button_show_menu.Allocation.Width.ToString());
+ LogB.Information("button_show_menu.SizeRequest.Width: " +
button_show_menu.SizeRequest().Width.ToString());
+
+ LogB.Information("button_show_modes.Allocation.Width: " +
button_show_modes.Allocation.Width.ToString());
+ LogB.Information("button_show_modes.SizeRequest.Width: " +
button_show_modes.SizeRequest().Width.ToString());
*/
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]