mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-08 12:55:32 +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
|
struct _CallsCallRecordRow
|
||||||
{
|
{
|
||||||
GtkOverlay parent_instance;
|
GtkListBoxRow parent_instance;
|
||||||
|
|
||||||
GtkImage *avatar;
|
GtkImage *avatar;
|
||||||
GtkImage *type;
|
GtkImage *type;
|
||||||
|
@ -57,7 +57,7 @@ struct _CallsCallRecordRow
|
||||||
CallsNewCallBox *new_call;
|
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 {
|
enum {
|
||||||
|
|
|
@ -36,7 +36,7 @@ G_BEGIN_DECLS
|
||||||
#define CALLS_TYPE_CALL_RECORD_ROW (calls_call_record_row_get_type ())
|
#define CALLS_TYPE_CALL_RECORD_ROW (calls_call_record_row_get_type ())
|
||||||
|
|
||||||
G_DECLARE_FINAL_TYPE (CallsCallRecordRow, calls_call_record_row,
|
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,
|
CallsCallRecordRow *calls_call_record_row_new (CallsCallRecord *record,
|
||||||
CallsContacts *contacts,
|
CallsContacts *contacts,
|
||||||
|
|
|
@ -2,7 +2,13 @@
|
||||||
<!-- Generated with glade 3.22.1 -->
|
<!-- Generated with glade 3.22.1 -->
|
||||||
<interface>
|
<interface>
|
||||||
<requires lib="gtk+" version="3.20"/>
|
<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="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<child>
|
<child>
|
||||||
|
@ -34,6 +40,7 @@
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="margin_left">10</property>
|
<property name="margin_left">10</property>
|
||||||
|
<property name="ellipsize">middle</property>
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="position">2</property>
|
<property name="position">2</property>
|
||||||
|
@ -87,5 +94,7 @@
|
||||||
<property name="position">4</property>
|
<property name="position">4</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
</template>
|
</template>
|
||||||
</interface>
|
</interface>
|
||||||
|
|
Loading…
Reference in a new issue