diff options
author | Javier Jardón <jjardon@gnome.org> | 2009-11-13 13:29:35 +0800 |
---|---|---|
committer | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2009-11-17 07:53:40 +0800 |
commit | 6f9fe3b417a3870ce48288f1273843af05d39624 (patch) | |
tree | bf9836bcf0e67793ee18e3beca4835880ed656aa /libempathy-gtk/empathy-presence-chooser.c | |
parent | e836a987945a601d70082eef2c6f2fd6796c4fd3 (diff) | |
download | gsoc2013-empathy-6f9fe3b417a3870ce48288f1273843af05d39624.tar gsoc2013-empathy-6f9fe3b417a3870ce48288f1273843af05d39624.tar.gz gsoc2013-empathy-6f9fe3b417a3870ce48288f1273843af05d39624.tar.bz2 gsoc2013-empathy-6f9fe3b417a3870ce48288f1273843af05d39624.tar.lz gsoc2013-empathy-6f9fe3b417a3870ce48288f1273843af05d39624.tar.xz gsoc2013-empathy-6f9fe3b417a3870ce48288f1273843af05d39624.tar.zst gsoc2013-empathy-6f9fe3b417a3870ce48288f1273843af05d39624.zip |
Use accessor functions instead direct access.
Some functions still remaining because there is not API
in GTK+ 2.19.0 yet.
http://bugzilla.gnome.org/show_bug.cgi?id=586476
Reviewed-By: Danielle Madeley <danielle.madeley@collabora.co.uk>
Diffstat (limited to 'libempathy-gtk/empathy-presence-chooser.c')
-rw-r--r-- | libempathy-gtk/empathy-presence-chooser.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-presence-chooser.c b/libempathy-gtk/empathy-presence-chooser.c index 33e533273..08c328681 100644 --- a/libempathy-gtk/empathy-presence-chooser.c +++ b/libempathy-gtk/empathy-presence-chooser.c @@ -385,7 +385,7 @@ presence_chooser_set_status_editing (EmpathyPresenceChooser *self, /* attempt to get the toplevel for this widget */ window = gtk_widget_get_toplevel (GTK_WIDGET (self)); - if (GTK_WIDGET_TOPLEVEL (window) && GTK_IS_WINDOW (window)) { + if (gtk_widget_is_toplevel (window) && GTK_IS_WINDOW (window)) { /* unset the focus */ gtk_window_set_focus (GTK_WINDOW (window), NULL); } @@ -530,7 +530,7 @@ presence_chooser_entry_button_press_event_cb (EmpathyPresenceChooser *self, if (!priv->editing_status && event->button == 1 && - !GTK_WIDGET_HAS_FOCUS (entry)) { + !gtk_widget_has_focus (entry)) { gtk_widget_grab_focus (entry); gtk_editable_select_region (GTK_EDITABLE (entry), 0, -1); @@ -598,7 +598,7 @@ presence_chooser_changed_cb (GtkComboBox *self, gpointer user_data) /* attempt to get the toplevel for this widget */ window = gtk_widget_get_toplevel (GTK_WIDGET (self)); - if (!GTK_WIDGET_TOPLEVEL (window) || !GTK_IS_WINDOW (window)) { + if (!gtk_widget_is_toplevel (window) || !GTK_IS_WINDOW (window)) { window = NULL; } |