mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-08-27 20:09:23 +00:00
Use a styled text renderer for name and date
This commit is contained in:
parent
8ee8a23d5c
commit
f93c6e8b36
|
@ -223,6 +223,7 @@ AC_SUBST(GITG_PLUGIN_LIBDIR)
|
|||
|
||||
GITG_PLUGIN_CFLAGS="$GITG_CFLAGS"
|
||||
GITG_PLUGIN_LIBS="$GITG_LIBS \
|
||||
\$(top_builddir)/libgd/libgd.la \
|
||||
\$(top_builddir)/libgitg/libgitg-1.0.la \
|
||||
\$(top_builddir)/libgitg-ext/libgitg-ext-1.0.la \
|
||||
\$(top_builddir)/libgitg-gtk/libgitg-gtk-1.0.la"
|
||||
|
@ -247,11 +248,13 @@ GITG_PLUGIN_VALAFLAGS=" \
|
|||
--pkg libsoup-2.4 \
|
||||
--pkg webkit2gtk-3.0 \
|
||||
--pkg config \
|
||||
--pkg gd-1.0 \
|
||||
\$(GITG_VALAFLAGS) \
|
||||
--vapidir \$(top_srcdir)/vapi \
|
||||
--vapidir \$(top_builddir)/libgitg \
|
||||
--vapidir \$(top_builddir)/libgitg-gtk \
|
||||
--vapidir \$(top_builddir)/libgitg-ext"
|
||||
--vapidir \$(top_builddir)/libgitg-ext \
|
||||
--vapidir \$(top_builddir)/libgd"
|
||||
|
||||
AC_SUBST(GITG_PLUGIN_VALAFLAGS)
|
||||
|
||||
|
@ -285,6 +288,7 @@ LIBGD_INIT([
|
|||
tagged-entry
|
||||
stack
|
||||
revealer
|
||||
_view-common
|
||||
static
|
||||
vapi
|
||||
])
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
INCLUDES = \
|
||||
-I$(top_srcdir) \
|
||||
-I$(srcdir) \
|
||||
-I$(top_srcdir)/libgd \
|
||||
$(GITG_PLUGIN_CFLAGS) \
|
||||
$(WARN_CFLAGS) \
|
||||
-DDATADIR=\""$(datadir)"\" \
|
||||
|
|
|
@ -182,11 +182,16 @@ namespace GitgHistory
|
|||
{
|
||||
var ret = GitgExt.UI.from_builder("history/view-history.ui",
|
||||
"scrolled_window_commit_list",
|
||||
"commit_list_view");
|
||||
"commit_list_view",
|
||||
"renderer_commit_list_author",
|
||||
"renderer_commit_list_date");
|
||||
|
||||
d_view = ret["commit_list_view"] as Gtk.TreeView;
|
||||
d_view.model = d_model;
|
||||
|
||||
(ret["renderer_commit_list_author"] as Gd.StyledTextRenderer).add_class("dim-label");
|
||||
(ret["renderer_commit_list_date"] as Gd.StyledTextRenderer).add_class("dim-label");
|
||||
|
||||
d_view.get_selection().changed.connect((sel) => {
|
||||
selection_changed();
|
||||
});
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
<property name="resizable">True</property>
|
||||
<property name="fixed-width">200</property>
|
||||
<child>
|
||||
<object class="GtkCellRendererText" id="renderer_commit_list_author">
|
||||
<object class="GdStyledTextRenderer" id="renderer_commit_list_author">
|
||||
<property name="ellipsize">end</property>
|
||||
</object>
|
||||
<attributes>
|
||||
|
@ -53,7 +53,7 @@
|
|||
<property name="resizable">True</property>
|
||||
<property name="fixed-width">150</property>
|
||||
<child>
|
||||
<object class="GtkCellRendererText" id="renderer_commit_list_date">
|
||||
<object class="GdStyledTextRenderer" id="renderer_commit_list_date">
|
||||
<property name="ellipsize">end</property>
|
||||
</object>
|
||||
<attributes>
|
||||
|
|
Loading…
Reference in a new issue