[gnome-boxes] display-page: No need to show an already shown widget
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] display-page: No need to show an already shown widget
- Date: Tue, 7 Aug 2012 14:56:37 +0000 (UTC)
commit 4815e3912208609930c8f57e3a378b44ce2ed897
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date: Fri Jul 20 03:34:51 2012 +0200
display-page: No need to show an already shown widget
https://bugzilla.gnome.org/show_bug.cgi?id=680293
src/display-page.vala | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/display-page.vala b/src/display-page.vala
index 6b62500..bdeb03e 100644
--- a/src/display-page.vala
+++ b/src/display-page.vala
@@ -200,6 +200,9 @@ private class Boxes.DisplayPage: GLib.Object {
}
public void show_display (Boxes.Display display, Widget widget) {
+ if (event_box.get_child () == widget)
+ return;
+
remove_display ();
this.display = display;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]