[gnome-shell/hotplug: 15/21] sniffer: timing/padding tweaks
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/hotplug: 15/21] sniffer: timing/padding tweaks
- Date: Mon, 27 Jun 2011 19:53:13 +0000 (UTC)
commit 4b24720e907bc065c3c3294badcb36f9d109b51f
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Jun 23 10:09:09 2011 -0400
sniffer: timing/padding tweaks
data/theme/gnome-shell.css | 2 +-
src/hotplug-sniffer/shell-mime-sniffer.c | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css
index 7f9d6ca..4a15fd6 100644
--- a/data/theme/gnome-shell.css
+++ b/data/theme/gnome-shell.css
@@ -1168,7 +1168,7 @@ StTooltip StLabel {
.hotplug-resident-box {
spacing: 8px;
- padding-right: 72px;
+ padding-right: 48px;
}
.hotplug-resident-mount {
diff --git a/src/hotplug-sniffer/shell-mime-sniffer.c b/src/hotplug-sniffer/shell-mime-sniffer.c
index d49d6b9..37b68c3 100644
--- a/src/hotplug-sniffer/shell-mime-sniffer.c
+++ b/src/hotplug-sniffer/shell-mime-sniffer.c
@@ -40,7 +40,7 @@
G_FILE_ATTRIBUTE_STANDARD_NAME "," \
G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE ","
-#define WATCHDOG_TIMEOUT_SECONDS 3
+#define WATCHDOG_TIMEOUT 1500
#define DIRECTORY_LOAD_ITEMS_PER_CALLBACK 100
#define HIGH_SCORE_RATIO 0.10
@@ -587,8 +587,8 @@ shell_mime_sniffer_sniff_async (ShellMimeSniffer *self,
self->priv->cancellable = g_cancellable_new ();
self->priv->watchdog_id =
- g_timeout_add_seconds (WATCHDOG_TIMEOUT_SECONDS,
- watchdog_timeout_reached_cb, self);
+ g_timeout_add (WATCHDOG_TIMEOUT,
+ watchdog_timeout_reached_cb, self);
start_loading_file (self);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]