[gtksourceview] Completion: use gtk_widget_get_visible() instead of is_visible()
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] Completion: use gtk_widget_get_visible() instead of is_visible()
- Date: Thu, 7 Mar 2013 20:01:46 +0000 (UTC)
commit db3ce380a91c96888bdf5598b11529646f21e819
Author: Sébastien Wilmet <swilmet gnome org>
Date: Thu Mar 7 20:57:22 2013 +0100
Completion: use gtk_widget_get_visible() instead of is_visible()
gtk_widget_is_visible() is a new GTK+ function. The required version of
GTK+ has not been updated in configure.ac.
But anyway the main_window is a toplevel widget, so get_visible() is
sufficient.
gtksourceview/gtksourcecompletion.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtksourceview/gtksourcecompletion.c b/gtksourceview/gtksourcecompletion.c
index cc08aee..1a83e0a 100644
--- a/gtksourceview/gtksourcecompletion.c
+++ b/gtksourceview/gtksourcecompletion.c
@@ -2489,7 +2489,7 @@ gtk_source_completion_hide (GtkSourceCompletion *completion)
reset_completion (completion);
- if (gtk_widget_is_visible (GTK_WIDGET (completion->priv->main_window)))
+ if (gtk_widget_get_visible (GTK_WIDGET (completion->priv->main_window)))
{
g_signal_emit (completion, signals[HIDE], 0);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]