diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-08-27 17:57:14 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-08-27 17:57:14 +0800 |
commit | 5e28683dab504d1b1c4d4d4a3bbcdb17519f335e (patch) | |
tree | 0560b18469cbdbcf8320ada23abb648e04a95acf /src/empathy-main-window.c | |
parent | 17d384008361384be53a2466fcd9a7e837e10d09 (diff) | |
parent | 750400297f05dd45369f2bb77c7a351c4561a585 (diff) | |
download | gsoc2013-empathy-5e28683dab504d1b1c4d4d4a3bbcdb17519f335e.tar gsoc2013-empathy-5e28683dab504d1b1c4d4d4a3bbcdb17519f335e.tar.gz gsoc2013-empathy-5e28683dab504d1b1c4d4d4a3bbcdb17519f335e.tar.bz2 gsoc2013-empathy-5e28683dab504d1b1c4d4d4a3bbcdb17519f335e.tar.lz gsoc2013-empathy-5e28683dab504d1b1c4d4d4a3bbcdb17519f335e.tar.xz gsoc2013-empathy-5e28683dab504d1b1c4d4d4a3bbcdb17519f335e.tar.zst gsoc2013-empathy-5e28683dab504d1b1c4d4d4a3bbcdb17519f335e.zip |
Merge branch 'trivia'
Diffstat (limited to 'src/empathy-main-window.c')
-rw-r--r-- | src/empathy-main-window.c | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c index 07725fa3b..fa6f15310 100644 --- a/src/empathy-main-window.c +++ b/src/empathy-main-window.c @@ -91,8 +91,10 @@ /* Name in the geometry file */ #define GEOMETRY_NAME "main-window" -/* Labels for empty contact list */ -#define NO_MATCH_FOUND _("No match found") +enum { + PAGE_NO_MATCH = 0, + PAGE_CONTACT_LIST +}; G_DEFINE_TYPE (EmpathyMainWindow, empathy_main_window, GTK_TYPE_WINDOW); @@ -375,11 +377,16 @@ main_window_row_deleted_cb (GtkTreeModel *model, if (empathy_individual_view_is_searching ( priv->individual_view)) { - gtk_label_set_text (GTK_LABEL (priv->no_entry_label), - NO_MATCH_FOUND); + gchar *tmp; + + tmp = g_strdup_printf ("<b><span size='xx-large'>%s</span></b>", + _("No match found")); + + gtk_label_set_markup (GTK_LABEL (priv->no_entry_label), tmp); + g_free (tmp); + gtk_notebook_set_current_page ( - GTK_NOTEBOOK (priv->notebook), - 0); + GTK_NOTEBOOK (priv->notebook), PAGE_NO_MATCH); } } } @@ -395,7 +402,7 @@ main_window_row_inserted_cb (GtkTreeModel *model, if (priv->empty) { priv->empty = FALSE; gtk_notebook_set_current_page (GTK_NOTEBOOK (priv->notebook), - 1); + PAGE_CONTACT_LIST); gtk_widget_grab_focus (GTK_WIDGET (priv->individual_view)); } } |