summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-10-01 11:54:14 +0200
committerlukefromdc <[email protected]>2019-10-03 03:47:01 +0000
commitaf0ca89b1991b08325a31a11c133fc6000c5a2cd (patch)
tree8c6af4acb8d2b1a4bea3acee38aa2efe23dc5543 /src
parent62e3fa54b0770ae4cb789688952b7013a3df28e6 (diff)
downloadengrampa-af0ca89b1991b08325a31a11c133fc6000c5a2cd.tar.bz2
engrampa-af0ca89b1991b08325a31a11c133fc6000c5a2cd.tar.xz
Show archive type in properties dialog
Diffstat (limited to 'src')
-rw-r--r--src/dlg-prop.c5
-rw-r--r--src/ui/properties.ui29
2 files changed, 34 insertions, 0 deletions
diff --git a/src/dlg-prop.c b/src/dlg-prop.c
index 5a42166..b7087f2 100644
--- a/src/dlg-prop.c
+++ b/src/dlg-prop.c
@@ -165,6 +165,11 @@ dlg_prop (FrWindow *window)
gtk_label_set_text (GTK_LABEL (label), s);
g_free (s);
+ /**/
+
+ label = _gtk_builder_get_widget (data->builder, "p_mime_type_label");
+ gtk_label_set_text (GTK_LABEL (label), window->archive->command->mime_type);
+
/* Set the signals handlers. */
g_signal_connect (G_OBJECT (data->dialog),
diff --git a/src/ui/properties.ui b/src/ui/properties.ui
index 99eae7d..9b5a94d 100644
--- a/src/ui/properties.ui
+++ b/src/ui/properties.ui
@@ -265,6 +265,35 @@
<property name="top_attach">2</property>
</packing>
</child>
+ <child>
+ <object class="GtkLabel" id="p_mime_type_label_label">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="halign">start</property>
+ <property name="label" translatable="yes">Type:</property>
+ <property name="justify">center</property>
+ <attributes>
+ <attribute name="weight" value="bold"/>
+ </attributes>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">7</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="p_mime_type_label">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="halign">start</property>
+ <property name="selectable">True</property>
+ <property name="ellipsize">start</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="top_attach">7</property>
+ </packing>
+ </child>
</object>
<packing>
<property name="expand">False</property>