From d9db9822240a5aece8ee660bebb2afe7202a7f53 Mon Sep 17 00:00:00 2001 From: Felix Kaser Date: Thu, 5 Aug 2010 10:19:39 +0200 Subject: added structure to show text when list empty I've added a notebook which holds the treeview and on another page it holds a label. The logic when to switch has to be implemented. --- src/empathy-main-window.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/empathy-main-window.c') diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c index 826cda487..b82c077f8 100644 --- a/src/empathy-main-window.c +++ b/src/empathy-main-window.c @@ -115,6 +115,8 @@ struct _EmpathyMainWindowPriv { GtkWidget *presence_chooser; GtkWidget *errors_vbox; GtkWidget *search_bar; + GtkWidget *notebook; + GtkWidget *no_entry_label; GtkToggleAction *show_protocols; GtkRadioAction *sort_by_name; @@ -1511,6 +1513,8 @@ empathy_main_window_init (EmpathyMainWindow *window) "view_show_map", &show_map_widget, "room_join_favorites", &priv->room_join_favorites, "presence_toolbar", &priv->presence_toolbar, + "notebook", &priv->notebook, + "no_entry_label", &priv->no_entry_label, "roster_scrolledwindow", &sw, NULL); g_free (filename); @@ -1645,6 +1649,11 @@ empathy_main_window_init (EmpathyMainWindow *window) g_signal_connect_swapped (window, "map", G_CALLBACK (gtk_widget_grab_focus), priv->individual_view); + /* TODO: Set up the TreeView Notebook */ + // have to detect when the contact list is empty (gtk_tree_model_get_iter_first) + //if we are searching display: no match found, otherwise: your contact list is empty + //hook to row-added and row removed? fire own signals when empty, not empty? + /* Load user-defined accelerators. */ main_window_accels_load (); -- cgit v1.2.3