[meld] dirdiff: Fix GTK+ allocation breakage, part X of Y
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] dirdiff: Fix GTK+ allocation breakage, part X of Y
- Date: Sat, 11 Mar 2017 23:46:13 +0000 (UTC)
commit 0396666bd2a7eeab5e7459059071c876c5a4d791
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sun Mar 12 09:42:49 2017 +1000
dirdiff: Fix GTK+ allocation breakage, part X of Y
I'm not going to dive into why this fixes our allocation warnings. You
can't make me. I assume it has something to do with animation callbacks
and private GtkCSSGadget API and complete disregard for your users.
meld/dirdiff.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/meld/dirdiff.py b/meld/dirdiff.py
index 12730a5..f521f9d 100644
--- a/meld/dirdiff.py
+++ b/meld/dirdiff.py
@@ -578,13 +578,13 @@ class DirDiff(melddoc.MeldDoc, gnomeglade.Component):
def _sync_vscroll(self, adjustment):
adjs = [sw.get_vadjustment() for sw in self.scrolledwindow]
- self._do_to_others(adjustment, adjs, "set_value",
- (adjustment.get_value(), ))
+ self._do_to_others(
+ adjustment, adjs, "set_value", (int(adjustment.get_value()),))
def _sync_hscroll(self, adjustment):
adjs = [sw.get_hadjustment() for sw in self.scrolledwindow]
- self._do_to_others(adjustment, adjs, "set_value",
- (adjustment.get_value(), ))
+ self._do_to_others(
+ adjustment, adjs, "set_value", (int(adjustment.get_value()),))
def _get_focused_pane(self):
for i, treeview in enumerate(self.treeview):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]