[longomatch] Panel header buttons should not focus on click.
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Panel header buttons should not focus on click.
- Date: Wed, 18 Mar 2015 14:42:52 +0000 (UTC)
commit fd8fcfe7e8383df2aa46d955364ada0ba7b64976
Author: Julien Moutte <julien fluendo com>
Date: Sat Mar 14 09:39:05 2015 +0100
Panel header buttons should not focus on click.
Otherwise shortcuts like space bar would trigger validation of the project instead of pausing playback in
the video periods sync widget.
.../gtk-gui/LongoMatch.Gui.Panel.PanelHeader.cs | 10 ++++++++--
LongoMatch.GUI/gtk-gui/gui.stetic | 1 +
2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Panel.PanelHeader.cs
b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Panel.PanelHeader.cs
index 2717186..202480a 100644
--- a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Panel.PanelHeader.cs
+++ b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Panel.PanelHeader.cs
@@ -5,12 +5,19 @@ namespace LongoMatch.Gui.Panel
public partial class PanelHeader
{
private global::Gtk.EventBox headereventbox;
+
private global::Gtk.HBox headerhbox;
+
private global::Gtk.Image logoimage;
+
private global::Gtk.Label titlelabel;
+
private global::Gtk.Button applyroundedbutton;
+
private global::Gtk.Image applyroundedbuttonimage;
+
private global::Gtk.Button backrectbutton;
+
private global::Gtk.Image backrectbuttonimage;
protected virtual void Build ()
@@ -52,11 +59,11 @@ namespace LongoMatch.Gui.Panel
this.applyroundedbutton.HeightRequest = 40;
this.applyroundedbutton.CanFocus = true;
this.applyroundedbutton.Name = "applyroundedbutton";
+ this.applyroundedbutton.FocusOnClick = false;
// Container child applyroundedbutton.Gtk.Container+ContainerChild
this.applyroundedbuttonimage = new global::Gtk.Image ();
this.applyroundedbuttonimage.Name = "applyroundedbuttonimage";
this.applyroundedbutton.Add (this.applyroundedbuttonimage);
- this.applyroundedbutton.Label = null;
this.headerhbox.Add (this.applyroundedbutton);
global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.headerhbox
[this.applyroundedbutton]));
w4.PackType = ((global::Gtk.PackType)(1));
@@ -74,7 +81,6 @@ namespace LongoMatch.Gui.Panel
this.backrectbuttonimage = new global::Gtk.Image ();
this.backrectbuttonimage.Name = "backrectbuttonimage";
this.backrectbutton.Add (this.backrectbuttonimage);
- this.backrectbutton.Label = null;
this.headerhbox.Add (this.backrectbutton);
global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.headerhbox
[this.backrectbutton]));
w6.PackType = ((global::Gtk.PackType)(1));
diff --git a/LongoMatch.GUI/gtk-gui/gui.stetic b/LongoMatch.GUI/gtk-gui/gui.stetic
index 27606a4..88b7862 100644
--- a/LongoMatch.GUI/gtk-gui/gui.stetic
+++ b/LongoMatch.GUI/gtk-gui/gui.stetic
@@ -10188,6 +10188,7 @@ You can continue with the current capture, cancel it or save your project.
<property name="HeightRequest">40</property>
<property name="CanFocus">True</property>
<property name="Type">Custom</property>
+ <property name="FocusOnClick">False</property>
<child>
<widget class="Gtk.Image" id="applyroundedbuttonimage">
<property name="MemberName" />
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]