mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-07 12:25:31 +00:00
CallHistory: Disable selecting/activating rows and ellipzise
This makes the name in each row ellipzise in the middle. Signed-off-by: Julian Sparber <julian@sparber.net>
This commit is contained in:
parent
a14f3fd7a0
commit
a91da3f84b
3 changed files with 84 additions and 75 deletions
|
@ -39,7 +39,7 @@
|
|||
|
||||
struct _CallsCallRecordRow
|
||||
{
|
||||
GtkOverlay parent_instance;
|
||||
GtkListBoxRow parent_instance;
|
||||
|
||||
GtkImage *avatar;
|
||||
GtkImage *type;
|
||||
|
@ -57,7 +57,7 @@ struct _CallsCallRecordRow
|
|||
CallsNewCallBox *new_call;
|
||||
};
|
||||
|
||||
G_DEFINE_TYPE (CallsCallRecordRow, calls_call_record_row, GTK_TYPE_BOX);
|
||||
G_DEFINE_TYPE (CallsCallRecordRow, calls_call_record_row, GTK_TYPE_LIST_BOX_ROW)
|
||||
|
||||
|
||||
enum {
|
||||
|
|
|
@ -36,7 +36,7 @@ G_BEGIN_DECLS
|
|||
#define CALLS_TYPE_CALL_RECORD_ROW (calls_call_record_row_get_type ())
|
||||
|
||||
G_DECLARE_FINAL_TYPE (CallsCallRecordRow, calls_call_record_row,
|
||||
CALLS, CALL_RECORD_ROW, GtkBox);
|
||||
CALLS, CALL_RECORD_ROW, GtkListBoxRow)
|
||||
|
||||
CallsCallRecordRow *calls_call_record_row_new (CallsCallRecord *record,
|
||||
CallsContacts *contacts,
|
||||
|
|
|
@ -2,7 +2,13 @@
|
|||
<!-- Generated with glade 3.22.1 -->
|
||||
<interface>
|
||||
<requires lib="gtk+" version="3.20"/>
|
||||
<template class="CallsCallRecordRow" parent="GtkBox">
|
||||
<template class="CallsCallRecordRow" parent="GtkListBoxRow">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="activatable">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<child>
|
||||
|
@ -34,6 +40,7 @@
|
|||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="margin_left">10</property>
|
||||
<property name="ellipsize">middle</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="position">2</property>
|
||||
|
@ -87,5 +94,7 @@
|
|||
<property name="position">4</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</template>
|
||||
</interface>
|
||||
|
|
Loading…
Reference in a new issue