[gtk+] inspector: Cosmetic improvements to the recorder
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] inspector: Cosmetic improvements to the recorder
- Date: Wed, 2 Nov 2016 02:06:54 +0000 (UTC)
commit 2d14217cd706416f80ba2931ef21988056f4dddd
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Nov 1 22:06:25 2016 -0400
inspector: Cosmetic improvements to the recorder
gtk/inspector/recorder.c | 9 +++++----
gtk/inspector/recorder.ui | 24 +++++++++++++++++-------
2 files changed, 22 insertions(+), 11 deletions(-)
---
diff --git a/gtk/inspector/recorder.c b/gtk/inspector/recorder.c
index 6da2e6f..8921086 100644
--- a/gtk/inspector/recorder.c
+++ b/gtk/inspector/recorder.c
@@ -70,18 +70,18 @@ recordings_clear_all (GtkButton *button,
g_list_store_remove_all (G_LIST_STORE (priv->recordings));
}
-static void
+static void
recordings_list_row_selected (GtkListBox *box,
GtkListBoxRow *row,
GtkInspectorRecorder *recorder)
{
GtkInspectorRecorderPrivate *priv = gtk_inspector_recorder_get_instance_private (recorder);
GtkInspectorRecording *recording;
-
+
if (row)
{
recording = g_list_model_get_item (priv->recordings, gtk_list_box_row_get_index (row));
-
+
gtk_render_node_view_set_render_node (GTK_RENDER_NODE_VIEW (priv->render_node_view),
gtk_inspector_render_recording_get_node
(GTK_INSPECTOR_RENDER_RECORDING (recording)));
gtk_render_node_view_set_clip_region (GTK_RENDER_NODE_VIEW (priv->render_node_view),
@@ -145,9 +145,10 @@ gtk_inspector_recorder_recordings_list_create_widget (gpointer item,
GtkWidget *widget;
char *str;
- str = g_strdup_printf ("Cute drawing at time %lld", (long long) gtk_inspector_recording_get_timestamp
(recording));
+ str = g_strdup_printf ("Frame at %lld", (long long) gtk_inspector_recording_get_timestamp (recording));
widget = gtk_label_new (str);
g_free (str);
+ gtk_label_set_xalign (GTK_LABEL (widget), 0);
gtk_widget_show_all (widget);
return widget;
diff --git a/gtk/inspector/recorder.ui b/gtk/inspector/recorder.ui
index ed7e4b6..e988d93 100644
--- a/gtk/inspector/recorder.ui
+++ b/gtk/inspector/recorder.ui
@@ -10,17 +10,22 @@
<child>
<object class="GtkBox">
<property name="visible">True</property>
+ <property name="orientation">horizontal</property>
+ <property name="spacing">6</property>
+ <property name="margin">6</property>
<child>
<object class="GtkToggleButton">
<property name="visible">True</property>
- <property name="icon-name">media-record</property>
+ <property name="relief">none</property>
+ <property name="icon-name">media-record-symbolic</property>
<property name="active" bind-source="GtkInspectorRecorder" bind-property="recording"
bind-flags="bidirectional|sync-create"/>
</object>
</child>
<child>
<object class="GtkButton">
<property name="visible">True</property>
- <property name="icon-name">edit-clear-all</property>
+ <property name="relief">none</property>
+ <property name="icon-name">edit-clear-all-symbolic</property>
<signal name="clicked" handler="recordings_clear_all"/>
</object>
</child>
@@ -30,12 +35,14 @@
<object class="GtkPaned">
<property name="visible">True</property>
<property name="orientation">horizontal</property>
- <property name="position">300</property>
+ <property name="position">250</property>
+ <property name="position-set">1</property>
<child>
<object class="GtkScrolledWindow">
<property name="visible">True</property>
<property name="hscrollbar-policy">automatic</property>
<property name="vscrollbar-policy">automatic</property>
+ <property name="propagate-natural-width">1</property>
<child>
<object class="GtkListBox" id="recordings_list">
<property name="visible">True</property>
@@ -53,20 +60,24 @@
<object class="GtkPaned" id="paned">
<property name="visible">True</property>
<property name="orientation">horizontal</property>
- <property name="position">100</property>
+ <property name="position">250</property>
+ <property name="position-set">1</property>
+ <style>
+ <class name="view"/>
+ </style>
<child>
<object class="GtkScrolledWindow">
<property name="visible">True</property>
<property name="expand">True</property>
<property name="hscrollbar-policy">automatic</property>
<property name="vscrollbar-policy">automatic</property>
- <property name="min-content-height">100</property>
+ <property name="propagate-natural-width">1</property>
<child>
<object class="GtkTreeView" id="render_node_tree">
<property name="visible">True</property>
<property name="search-column">0</property>
<property name="enable-search">0</property>
- <property name="enable-grid-lines">vertical</property>
+ <property name="headers-visible">0</property>
<child internal-child="selection">
<object class="GtkTreeSelection">
<signal name="changed" handler="render_node_list_selection_changed"/>
@@ -75,7 +86,6 @@
<child>
<object class="GtkTreeViewColumn" id="render_node_name_column">
<property name="resizable">True</property>
- <property name="title" translatable="yes">Name</property>
<child>
<object class="GtkCellRendererText"/>
<attributes>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]