[gnome-sound-recorder] listview.js: correct delete which creates empty listview
- From: Meg Ford (Margaret) <megford src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sound-recorder] listview.js: correct delete which creates empty listview
- Date: Sat, 5 Oct 2013 18:03:41 +0000 (UTC)
commit d03966c25b80287b71f515e4fb62f051fce94cc0
Author: Meg Ford <meg387 gmail com>
Date: Sat Oct 5 13:00:46 2013 -0500
listview.js: correct delete which creates empty listview
src/listview.js | 8 ++++++--
src/util.js | 3 +--
2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/src/listview.js b/src/listview.js
index 5809a39..c222cd9 100644
--- a/src/listview.js
+++ b/src/listview.js
@@ -153,8 +153,12 @@ const Listview = new Lang.Class({
this._enumerator.close(null);
if (MainWindow.offsetController.getEndIdx() == -1) {
- MainWindow.view.listBoxAdd();
- MainWindow.view.scrolledWinAdd();
+ if (listType == ListType.NEW) {
+ MainWindow.view.listBoxAdd();
+ MainWindow.view.scrolledWinAdd();
+ } else if (listType == ListType.REFRESH) {
+ MainWindow.view.scrolledWinDelete();
+ }
currentlyEnumerating = CurrentlyEnumerating.FALSE;
} else {
diff --git a/src/util.js b/src/util.js
index 0c24a0b..78ca673 100644
--- a/src/util.js
+++ b/src/util.js
@@ -1,6 +1,7 @@
// -*- Mode: js; indent-tabs-mode: nil; c-basic-offset: 4; tab-width: 4 -*-
//
// Copyright (c) 2013 Giovanni Campagna <scampa giovanni gmail com>
+// Copyright (c) 2013 Meg Ford <megford gnome org>
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
@@ -26,9 +27,7 @@
function loadStyleSheet() {
let file = 'application.css';
-
let provider = new Gtk.CssProvider();
- log(GLib.build_filenamev([pkg.pkgdatadir, file]));
provider.load_from_path(GLib.build_filenamev([pkg.pkgdatadir,
file]));
Gtk.StyleContext.add_provider_for_screen(Gdk.Screen.get_default(),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]