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
|
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,90 +2,99 @@
|
||||||
<!-- 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="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
|
<property name="activatable">False</property>
|
||||||
|
<property name="selectable">False</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkImage" id="avatar">
|
<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>
|
||||||
<property name="margin_left">8</property>
|
<child>
|
||||||
<property name="margin_top">8</property>
|
<object class="GtkImage" id="avatar">
|
||||||
<property name="margin_bottom">8</property>
|
<property name="visible">True</property>
|
||||||
<property name="icon-name">avatar-default-symbolic</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="icon-size">6</property>
|
<property name="margin_left">8</property>
|
||||||
</object>
|
<property name="margin_top">8</property>
|
||||||
<packing>
|
<property name="margin_bottom">8</property>
|
||||||
<property name="position">0</property>
|
<property name="icon-name">avatar-default-symbolic</property>
|
||||||
</packing>
|
<property name="icon-size">6</property>
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkImage" id="type">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="can_focus">False</property>
|
|
||||||
<property name="margin_left">8</property>
|
|
||||||
</object>
|
|
||||||
<packing>
|
|
||||||
<property name="position">1</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkLabel" id="target">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="can_focus">False</property>
|
|
||||||
<property name="margin_left">10</property>
|
|
||||||
</object>
|
|
||||||
<packing>
|
|
||||||
<property name="position">2</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkButton" id="redial">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="margin_left">12</property>
|
|
||||||
<property name="margin_right">8</property>
|
|
||||||
<property name="margin_top">8</property>
|
|
||||||
<property name="margin_bottom">8</property>
|
|
||||||
<property name="halign">center</property>
|
|
||||||
<property name="valign">center</property>
|
|
||||||
<signal name="clicked" handler="redial_clicked_cb" swapped="yes"/>
|
|
||||||
<style>
|
|
||||||
<class name="image-button"/>
|
|
||||||
</style>
|
|
||||||
<child internal-child="accessible">
|
|
||||||
<object class="AtkObject" id="a11y-hide-dial-pad">
|
|
||||||
<property name="accessible-name" translatable="yes">Call the party</property>
|
|
||||||
</object>
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="position">0</property>
|
||||||
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkImage">
|
<object class="GtkImage" id="type">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="icon-name">call-start-symbolic</property>
|
<property name="can_focus">False</property>
|
||||||
|
<property name="margin_left">8</property>
|
||||||
</object>
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="position">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel" id="target">
|
||||||
|
<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>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="redial">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="margin_left">12</property>
|
||||||
|
<property name="margin_right">8</property>
|
||||||
|
<property name="margin_top">8</property>
|
||||||
|
<property name="margin_bottom">8</property>
|
||||||
|
<property name="halign">center</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<signal name="clicked" handler="redial_clicked_cb" swapped="yes"/>
|
||||||
|
<style>
|
||||||
|
<class name="image-button"/>
|
||||||
|
</style>
|
||||||
|
<child internal-child="accessible">
|
||||||
|
<object class="AtkObject" id="a11y-hide-dial-pad">
|
||||||
|
<property name="accessible-name" translatable="yes">Call the party</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="icon-name">call-start-symbolic</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="pack_type">end</property>
|
||||||
|
<property name="position">3</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel" id="time">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="margin_left">8</property>
|
||||||
|
<property name="justify">center</property>
|
||||||
|
<style>
|
||||||
|
<class name="dim-label"/>
|
||||||
|
</style>
|
||||||
|
<attributes>
|
||||||
|
<attribute name="scale" value="0.7"/>
|
||||||
|
</attributes>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="pack_type">end</property>
|
||||||
|
<property name="position">4</property>
|
||||||
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
|
||||||
<property name="pack_type">end</property>
|
|
||||||
<property name="position">3</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkLabel" id="time">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="can_focus">False</property>
|
|
||||||
<property name="margin_left">8</property>
|
|
||||||
<property name="justify">center</property>
|
|
||||||
<style>
|
|
||||||
<class name="dim-label"/>
|
|
||||||
</style>
|
|
||||||
<attributes>
|
|
||||||
<attribute name="scale" value="0.7"/>
|
|
||||||
</attributes>
|
|
||||||
</object>
|
|
||||||
<packing>
|
|
||||||
<property name="pack_type">end</property>
|
|
||||||
<property name="position">4</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
</child>
|
||||||
</template>
|
</template>
|
||||||
</interface>
|
</interface>
|
||||||
|
|
Loading…
Reference in a new issue