[gnome-calendar/calendar-management] source-manager: avoid a minor compile warning
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/calendar-management] source-manager: avoid a minor compile warning
- Date: Wed, 4 Feb 2015 01:03:59 +0000 (UTC)
commit 1ffb8bfc813ff96bdad2cc66811aece4fbb5f197
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Tue Feb 3 23:03:21 2015 -0200
source-manager: avoid a minor compile warning
src/gcal-source-manager-dialog.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/gcal-source-manager-dialog.c b/src/gcal-source-manager-dialog.c
index 15c7829..05616ce 100644
--- a/src/gcal-source-manager-dialog.c
+++ b/src/gcal-source-manager-dialog.c
@@ -271,11 +271,16 @@ row_activated_cb (GtkListBox *listbox,
gpointer user_data)
{
GcalSourceManagerDialogPrivate *priv;
+ ESource *source;
+
priv = gcal_source_manager_dialog_get_instance_private (GCAL_SOURCE_MANAGER_DIALOG (user_data));
+ source = g_hash_table_lookup (priv->row_to_source, row);
+
+ update_action_states (GCAL_SOURCE_MANAGER_DIALOG (user_data), source);
if (row != NULL)
{
- gtk_popover_set_relative_to (GTK_POPOVER (priv->source_popover), row);
+ gtk_popover_set_relative_to (GTK_POPOVER (priv->source_popover), GTK_WIDGET (row));
gtk_widget_show (priv->source_popover);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]