[evolution-rss] code cleanups
- From: Lucian Langa <lucilanga src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-rss] code cleanups
- Date: Fri, 5 Mar 2010 12:19:34 +0000 (UTC)
commit 3294331c2d043c7da202e6c0f6cf403d2da2c66a
Author: Lucian Langa <lucilanga gnome org>
Date: Fri Mar 5 14:18:52 2010 +0200
code cleanups
src/notification.c | 4 ----
src/rss.c | 12 ++++++------
2 files changed, 6 insertions(+), 10 deletions(-)
---
diff --git a/src/notification.c b/src/notification.c
index fabff23..e30574c 100644
--- a/src/notification.c
+++ b/src/notification.c
@@ -71,10 +71,6 @@ rss_error(gpointer key, gchar *name, gchar *error, gchar *emsg)
if (!g_hash_table_lookup(rf->error_hash, key)) {
// guint activity_id = g_hash_table_lookup(rf->activity, key);
#if (EVOLUTION_VERSION >= 22900) //kb//
- EShell *shell;
- GtkWindow *parent;
- GList *windows;
-
shell = e_shell_get_default ();
windows = e_shell_get_watched_windows (shell);
parent = (windows != NULL) ? GTK_WINDOW (windows->data) : NULL;
diff --git a/src/rss.c b/src/rss.c
index e38a3f0..dd38208 100644
--- a/src/rss.c
+++ b/src/rss.c
@@ -4389,16 +4389,16 @@ icon_activated (GtkStatusIcon *icon, gpointer pnotify)
}
}
#else
- if (gtk_window_is_active(evo_window)) {
- gtk_window_iconify(evo_window);
+ if (gtk_window_is_active(GTK_WINDOW(evo_window))) {
+ gtk_window_iconify(GTK_WINDOW(evo_window));
gtk_window_set_skip_taskbar_hint(
- evo_window,
+ GTK_WINDOW(evo_window),
TRUE);
} else {
- gtk_window_iconify(evo_window);
- evo_window_popup(evo_window);
+ gtk_window_iconify(GTK_WINDOW(evo_window));
+ evo_window_popup(GTK_WIDGET(evo_window));
gtk_window_set_skip_taskbar_hint(
- evo_window,
+ GTK_WINDOW(evo_window),
FALSE);
}
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]