[gnome-calendar] edit-dialog: setup the correct label when selecting a calendar



commit a8f4346e1cf909d0f1ad570c872ade05164d0f06
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Wed Sep 28 00:34:23 2016 -0300

    edit-dialog: setup the correct label when selecting a calendar
    
    Since now we manually manage the headerbar title and subtitle, setting
    them via GtkHeaderBar API won't have any effect.
    
    Fix that by directly setting the subtitle label.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=771565

 src/gcal-edit-dialog.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/gcal-edit-dialog.c b/src/gcal-edit-dialog.c
index 1c4f01c..749034e 100644
--- a/src/gcal-edit-dialog.c
+++ b/src/gcal-edit-dialog.c
@@ -223,8 +223,7 @@ on_calendar_selected (GSimpleAction *action,
 
         self->selected_source = source;
 
-        gtk_header_bar_set_subtitle (GTK_HEADER_BAR (self->titlebar),
-                                     e_source_get_display_name (source));
+        gtk_label_set_label (GTK_LABEL (self->subtitle_label), e_source_get_display_name (source));
         break;
       }
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]