[gnome-photos/wip/abono/sidebar: 632/635] WIP Description
- From: Alessandro Bono <abono src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/abono/sidebar: 632/635] WIP Description
- Date: Thu, 2 Nov 2017 15:46:26 +0000 (UTC)
commit 38579dc5ec3ca88f237b022c0c3338e1d256f428
Author: Alessandro Bono <abono gnome org>
Date: Thu Nov 2 15:40:13 2017 +0100
WIP Description
src/photos-properties-sidebar.c | 2 +
src/photos-properties-sidebar.ui | 48 ++++++++++++++++++++++++++++++++++++++
2 files changed, 50 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-properties-sidebar.c b/src/photos-properties-sidebar.c
index b0595d3..3c7c767 100644
--- a/src/photos-properties-sidebar.c
+++ b/src/photos-properties-sidebar.c
@@ -26,6 +26,7 @@
struct _PhotosPropertiesSidebar
{
GtkScrolledWindow parent_instance;
+ GtkWidget *description_text_view;
GtkWidget *title_entry;
PhotosBaseItem *item;
};
@@ -69,6 +70,7 @@ photos_properties_sidebar_class_init (PhotosPropertiesSidebarClass *klass)
object_class->finalize = photos_properties_sidebar_finalize;
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/Photos/properties-sidebar.ui");
+ gtk_widget_class_bind_template_child (widget_class, PhotosPropertiesSidebar, description_text_view);
gtk_widget_class_bind_template_child (widget_class, PhotosPropertiesSidebar, title_entry);
}
diff --git a/src/photos-properties-sidebar.ui b/src/photos-properties-sidebar.ui
index 4b61607..647d280 100644
--- a/src/photos-properties-sidebar.ui
+++ b/src/photos-properties-sidebar.ui
@@ -53,6 +53,54 @@
<property name="top_attach">0</property>
</packing>
</child>
+ <child>
+ <object class="GtkGrid">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="orientation">vertical</property>
+ <child>
+ <object class="GtkLabel">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="halign">start</property>
+ <property name="hexpand">True</property>
+ <property name="label" translatable="yes">Description</property>
+ <attributes>
+ <attribute name="weight" value="bold"/>
+ </attributes>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkScrolledWindow">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="hscrollbar_policy">never</property>
+ <property name="shadow_type">in</property>
+ <child>
+ <object class="GtkTextView" id="description_text_view">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="hexpand">True</property>
+ <property name="wrap_mode">word-char</property>
+ <property name="accepts_tab">False</property>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">1</property>
+ </packing>
+ </child>
</object>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]