[med-svn] [aghermann] 02/23: touch up wEDFFileDetails

andrei zavada hmmr-guest at alioth.debian.org
Sat Aug 17 18:05:38 UTC 2013


This is an automated email from the git hooks/post-receive script.

hmmr-guest pushed a commit to branch master
in repository aghermann.

commit f9887f79bf124f84f1fe60f22dcdb12fcd9df7c5
Author: Andrei Zavada <johnhommer at gmail.com>
Date:   Sun Jul 28 11:23:21 2013 +0300

    touch up wEDFFileDetails
---
 data/mw-dialogs.glade                  |    3 +--
 src/aghermann/ui/mw/construct.cc       |    1 +
 src/aghermann/ui/mw/measurements_cb.cc |    9 ++++++---
 src/aghermann/ui/mw/widgets.hh         |    2 ++
 4 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/data/mw-dialogs.glade b/data/mw-dialogs.glade
index f2c927b..a2c8807 100644
--- a/data/mw-dialogs.glade
+++ b/data/mw-dialogs.glade
@@ -955,7 +955,6 @@ With bug reports, either send yours to <a href="mailto:aghermann-users at lists.
     <property name="skip_taskbar_hint">True</property>
     <property name="skip_pager_hint">True</property>
     <property name="gravity">north-east</property>
-    <property name="opacity">0.94999999999999996</property>
     <signal name="close" handler="gtk_widget_hide" swapped="no"/>
     <signal name="delete-event" handler="gtk_true" swapped="no"/>
     <signal name="response" handler="gtk_widget_hide" swapped="no"/>
@@ -999,7 +998,7 @@ With bug reports, either send yours to <a href="mailto:aghermann-users at lists.
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <child>
-              <object class="GtkLabel" id="label32">
+              <object class="GtkLabel" id="lEDFFileDetails">
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
                 <property name="xalign">0</property>
diff --git a/src/aghermann/ui/mw/construct.cc b/src/aghermann/ui/mw/construct.cc
index b084975..4331526 100644
--- a/src/aghermann/ui/mw/construct.cc
+++ b/src/aghermann/ui/mw/construct.cc
@@ -546,6 +546,7 @@ SExpDesignUIWidgets ()
 
       // ------- wEDFFileDetails
 	if ( !AGH_GBGETOBJ (GtkDialog,		wEDFFileDetails) ||
+	     !AGH_GBGETOBJ (GtkLabel,		lEDFFileDetails) ||
 	     !AGH_GBGETOBJ (GtkTextView,	lEDFFileDetailsReport) )
 		throw runtime_error ("Failed to construct widgets");
 
diff --git a/src/aghermann/ui/mw/measurements_cb.cc b/src/aghermann/ui/mw/measurements_cb.cc
index cb6d70d..223942d 100644
--- a/src/aghermann/ui/mw/measurements_cb.cc
+++ b/src/aghermann/ui/mw/measurements_cb.cc
@@ -222,9 +222,12 @@ iSubjectTimelineEDFInfo_activate_cb(
 	gtk_text_buffer_set_text(
 		ED.tEDFFileDetailsReport,
 		F().details( 0|sigfile::CSource::TDetails::with_channels).c_str(), -1);
-	gtk_window_set_title(
-		(GtkWindow*)ED.wEDFFileDetails,
-		snprintf_buf( "%s header", F().filename()));
+	gtk_label_set_markup(
+		ED.lEDFFileDetails,
+		snprintf_buf(
+			"<big>Header of\n"
+			"<i>%s</i></big>",
+			F().filename()));
 	gtk_widget_show_all( (GtkWidget*)ED.wEDFFileDetails);
 }
 
diff --git a/src/aghermann/ui/mw/widgets.hh b/src/aghermann/ui/mw/widgets.hh
index 5324130..4eb3449 100644
--- a/src/aghermann/ui/mw/widgets.hh
+++ b/src/aghermann/ui/mw/widgets.hh
@@ -260,6 +260,8 @@ struct SExpDesignUIWidgets {
 	// edf header
 	GtkDialog
 		*wEDFFileDetails;
+	GtkLabel
+		*lEDFFileDetails;
 	GtkTextView
 		*lEDFFileDetailsReport;
 	GtkTextBuffer

-- 
Alioth's /git/debian-med/git-commit-notice on /srv/git.debian.org/git/debian-med/aghermann.git



More information about the debian-med-commit mailing list