From 6bcb4db25d5bb89b66ecb22299a69df2de215f4d Mon Sep 17 00:00:00 2001 From: Mohammed Sadiq Date: Mon, 24 Sep 2018 07:38:06 +0530 Subject: [PATCH] history-box: Add empty view --- src/calls-history-box.c | 4 ++-- src/calls-history-box.h | 2 +- src/ui/history-box.ui | 47 +++++++++++++++++++++++++++++++++++------ 3 files changed, 44 insertions(+), 9 deletions(-) diff --git a/src/calls-history-box.c b/src/calls-history-box.c index c0d8444..1b50577 100644 --- a/src/calls-history-box.c +++ b/src/calls-history-box.c @@ -37,12 +37,12 @@ struct _CallsHistoryBox { - GtkTreeView parent_instance; + GtkStack parent_instance; GtkListStore *history_store; }; -G_DEFINE_TYPE (CallsHistoryBox, calls_history_box, GTK_TYPE_TREE_VIEW); +G_DEFINE_TYPE (CallsHistoryBox, calls_history_box, GTK_TYPE_STACK) static void diff --git a/src/calls-history-box.h b/src/calls-history-box.h index 77196b5..5037046 100644 --- a/src/calls-history-box.h +++ b/src/calls-history-box.h @@ -34,7 +34,7 @@ G_BEGIN_DECLS #define CALLS_TYPE_HISTORY_BOX (calls_history_box_get_type ()) -G_DECLARE_FINAL_TYPE (CallsHistoryBox, calls_history_box, CALLS, HISTORY_BOX, GtkTreeView); +G_DECLARE_FINAL_TYPE (CallsHistoryBox, calls_history_box, CALLS, HISTORY_BOX, GtkStack) G_END_DECLS diff --git a/src/ui/history-box.ui b/src/ui/history-box.ui index 5de67f4..8344553 100644 --- a/src/ui/history-box.ui +++ b/src/ui/history-box.ui @@ -4,12 +4,47 @@ -