[empathy] empathy_status_icon_new: always call status_icon_set_visibility
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] empathy_status_icon_new: always call status_icon_set_visibility
- Date: Mon, 12 Jul 2010 07:43:23 +0000 (UTC)
commit b17b7bcb810f293a2de4515bbc7239b786189293
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Fri Jul 9 14:39:54 2010 +0200
empathy_status_icon_new: always call status_icon_set_visibility
Seems calling gtk_widget_show() doesn't mark the window as active right away.
This code used to work fine before but doesn't since we replace
empathy_main_window_show() by empathy_main_window_dup().
src/empathy-status-icon.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/empathy-status-icon.c b/src/empathy-status-icon.c
index a11c703..97ab255 100644
--- a/src/empathy-status-icon.c
+++ b/src/empathy-status-icon.c
@@ -732,9 +732,7 @@ empathy_status_icon_new (GtkWindow *window, gboolean hide_contact_list)
should_hide = TRUE;
}
- if (gtk_window_is_active (priv->window) == should_hide) {
- status_icon_set_visibility (icon, !should_hide, FALSE);
- }
+ status_icon_set_visibility (icon, !should_hide, FALSE);
return icon;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]