[empathy] empathy_window_present: remove useless 'steal_focus' arg
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] empathy_window_present: remove useless 'steal_focus' arg
- Date: Mon, 15 Mar 2010 15:28:31 +0000 (UTC)
commit c1d6af1cfbb1801d26a0a550dc7ae9a81e642bc0
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Thu Mar 11 10:35:25 2010 +0100
empathy_window_present: remove useless 'steal_focus' arg
libempathy-gtk/empathy-ui-utils.c | 3 +--
libempathy-gtk/empathy-ui-utils.h | 3 +--
src/empathy-chat-window.c | 2 +-
src/empathy-main-window.c | 2 +-
src/empathy-map-view.c | 4 ++--
src/empathy-status-icon.c | 2 +-
6 files changed, 7 insertions(+), 9 deletions(-)
---
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c
index b337606..b91bf03 100644
--- a/libempathy-gtk/empathy-ui-utils.c
+++ b/libempathy-gtk/empathy-ui-utils.c
@@ -1385,8 +1385,7 @@ empathy_window_iconify (GtkWindow *window, GtkStatusIcon *status_icon)
/* Takes care of moving the window to the current workspace. */
void
-empathy_window_present (GtkWindow *window,
- gboolean steal_focus)
+empathy_window_present (GtkWindow *window)
{
GdkWindow *gdk_window;
diff --git a/libempathy-gtk/empathy-ui-utils.h b/libempathy-gtk/empathy-ui-utils.h
index 38732c7..8834cb4 100644
--- a/libempathy-gtk/empathy-ui-utils.h
+++ b/libempathy-gtk/empathy-ui-utils.h
@@ -104,8 +104,7 @@ gboolean empathy_text_iter_backward_search (const GtkTextIter*iter,
const GtkTextIter*limit);
/* Windows */
gboolean empathy_window_get_is_visible (GtkWindow *window);
-void empathy_window_present (GtkWindow *window,
- gboolean steal_focus);
+void empathy_window_present (GtkWindow *window);
void empathy_window_iconify (GtkWindow *window,
GtkStatusIcon *status_icon);
GtkWindow * empathy_get_toplevel_window (GtkWidget *widget);
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c
index 158faa0..9648417 100644
--- a/src/empathy-chat-window.c
+++ b/src/empathy-chat-window.c
@@ -2242,7 +2242,7 @@ empathy_chat_window_present_chat (EmpathyChat *chat)
priv = GET_PRIV (window);
empathy_chat_window_switch_to_chat (window, chat);
- empathy_window_present (GTK_WINDOW (priv->dialog), TRUE);
+ empathy_window_present (GTK_WINDOW (priv->dialog));
gtk_widget_grab_focus (chat->input_text_view);
}
diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c
index 7c8aad4..fe9af9c 100644
--- a/src/empathy-main-window.c
+++ b/src/empathy-main-window.c
@@ -1306,7 +1306,7 @@ empathy_main_window_show (void)
GSList *l;
if (main_window) {
- empathy_window_present (GTK_WINDOW (main_window->window), TRUE);
+ empathy_window_present (GTK_WINDOW (main_window->window));
return main_window->window;
}
diff --git a/src/empathy-map-view.c b/src/empathy-map-view.c
index fd6106c..287d9b6 100644
--- a/src/empathy-map-view.c
+++ b/src/empathy-map-view.c
@@ -351,7 +351,7 @@ empathy_map_view_show (void)
if (window)
{
- empathy_window_present (GTK_WINDOW (window->window), TRUE);
+ empathy_window_present (GTK_WINDOW (window->window));
return window->window;
}
@@ -415,7 +415,7 @@ empathy_map_view_show (void)
model = GTK_TREE_MODEL (window->list_store);
gtk_tree_model_foreach (model, map_view_contacts_foreach, window);
- empathy_window_present (GTK_WINDOW (window->window), TRUE);
+ empathy_window_present (GTK_WINDOW (window->window));
/* Set up time updating loop */
window->timeout_id = g_timeout_add_seconds (5,
diff --git a/src/empathy-status-icon.c b/src/empathy-status-icon.c
index d0cdac3..d1ea96c 100644
--- a/src/empathy-status-icon.c
+++ b/src/empathy-status-icon.c
@@ -362,7 +362,7 @@ status_icon_set_visibility (EmpathyStatusIcon *icon,
if (!visible) {
empathy_window_iconify (priv->window, priv->icon);
} else {
- empathy_window_present (GTK_WINDOW (priv->window), TRUE);
+ empathy_window_present (GTK_WINDOW (priv->window));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]