[log] align timestamps to the right

This commit is contained in:
Hylke Bons 2010-10-21 18:49:53 +01:00
parent 4c0de94ab6
commit 7a1337c760
2 changed files with 21 additions and 11 deletions

View file

@ -92,10 +92,10 @@ Contributors:
Steven Harms (sharms@ubuntu.com) Steven Harms (sharms@ubuntu.com)
Vincent Untz (vuntz@gnome.org) Vincent Untz (vuntz@gnome.org)
Thanks very much! Thanks very much!";
Git# is Copyright © 2007-2009 by the Git Development Community /* Git# is Copyright © 2007-2009 by the Git Development Community
See source file headers for specific contributor copyrights. See source file headers for specific contributor copyrights.
All rights reserved. All rights reserved.
@ -144,7 +144,7 @@ version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details."; GNU Lesser General Public License for more details."; */
VBox wrapper = new VBox (false, 0); VBox wrapper = new VBox (false, 0);

View file

@ -129,6 +129,7 @@ namespace SparkleShare {
dialog_buttons.Add (open_folder_button); dialog_buttons.Add (open_folder_button);
dialog_buttons.Add (close_button); dialog_buttons.Add (close_button);
LayoutVertical.PackStart (new HSeparator (), false, false, 0);
// We have to hide the menubar somewhere... // We have to hide the menubar somewhere...
LayoutVertical.PackStart (MenuBar, false, false, 0); LayoutVertical.PackStart (MenuBar, false, false, 0);
LayoutVertical.PackStart (dialog_buttons, false, false, 0); LayoutVertical.PackStart (dialog_buttons, false, false, 0);
@ -381,15 +382,24 @@ namespace SparkleShare {
} }
Label change_set_info = new Label ("<b>" + change_set.UserName + "</b>\n" + HBox change_set_info_hbox = new HBox (false, 0);
"<span fgcolor='" + secondary_text_color +"'><small>" +
"at " + change_set.DateTime.ToString ("H:mm") +
"</small></span>") {
UseMarkup = true,
Xalign = 0
};
log_entry.PackStart (change_set_info, false, false, 0); Label change_set_info = new Label ("<b>" + change_set.UserName + "</b>") {
UseMarkup = true,
Xalign = 0
};
Label change_set_time = new Label ("<span fgcolor='" + secondary_text_color +"'><small>" +
change_set.DateTime.ToString ("H:mm") +
"</small></span>") {
Xalign = 1,
UseMarkup = true
};
change_set_info_hbox.PackStart (change_set_info, true, true, 0);
change_set_info_hbox.PackStart (change_set_time, false, false, 0);
log_entry.PackStart (change_set_info_hbox, false, false, 0);
if (edited_files.Children.Length > 0) { if (edited_files.Children.Length > 0) {