diff --git a/sflphone-gtk/src/mainwindow.c b/sflphone-gtk/src/mainwindow.c index 7de3e52e6ca8bfb52732d3e939acf37dc67a03fb..e18a48ee6f4872f857dfc3f089145b8c5f80d6b2 100644 --- a/sflphone-gtk/src/mainwindow.c +++ b/sflphone-gtk/src/mainwindow.c @@ -19,6 +19,7 @@ #include <config.h> #include <actions.h> +#include <notebook.h> #include <calllist.h> #include <calltree.h> #include <configwindow.h> @@ -146,7 +147,7 @@ create_main_window () widget = create_toolbar(); gtk_box_pack_start (GTK_BOX (vbox), widget, FALSE /*expand*/, TRUE /*fill*/, 0 /*padding*/); - gtk_box_pack_start (GTK_BOX (vbox), create_call_tree(), TRUE /*expand*/, TRUE /*fill*/, 0 /*padding*/); + gtk_box_pack_start (GTK_BOX (vbox), create_call_notebook(), TRUE /*expand*/, TRUE /*fill*/, 0 /*padding*/); gtk_box_pack_start (GTK_BOX (vbox), subvbox, FALSE /*expand*/, FALSE /*fill*/, 0 /*padding*/); diff --git a/sflphone-gtk/src/notebook.c b/sflphone-gtk/src/notebook.c new file mode 100644 index 0000000000000000000000000000000000000000..9b1e7c2cd484f2315389fe3055617edce40105f5 --- /dev/null +++ b/sflphone-gtk/src/notebook.c @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2007 Savoir-Faire Linux inc. + * Author: Antoine Reversat <antoine.reversat@savoirfairelinux.net> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +#include <gtk/gtk.h> +#include <calltree.h> +#include <calllist.h> +#include <notebook.h> + +GtkWidget* +create_call_notebook(){ + GtkWidget* notebook; + GtkWidget* call_tab; + GtkWidget* called_tab; + GtkWidget* rcvd_tab; + GtkWidget* missed_tab; + + notebook = gtk_notebook_new(); + + call_tab = create_call_tree(); + gtk_notebook_append_page(GTK_NOTEBOOK(notebook), call_tab, gtk_label_new("Call")); + gtk_notebook_append_page(GTK_NOTEBOOK(notebook), called_tab, gtk_label_new("Called")); + gtk_notebook_append_page(GTK_NOTEBOOK(notebook), rcvd_tab, gtk_label_new("Received")); + gtk_notebook_append_page(GTK_NOTEBOOK(notebook), missed_tab, gtk_label_new("Missed")); + return notebook; +} diff --git a/sflphone-gtk/src/notebook.h b/sflphone-gtk/src/notebook.h new file mode 100644 index 0000000000000000000000000000000000000000..b23fc4ecef4ca579c57ed643188399c8ae83f100 --- /dev/null +++ b/sflphone-gtk/src/notebook.h @@ -0,0 +1,26 @@ +/* + * Copyright (C) 2007 Savoir-Faire Linux inc. + * Author: Antoine Reversat <antoine.reversat@savoirfairelinux.com> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +#ifndef __NOTEBOOK_H__ +#define __NOTEBOOK_H__ + +#include <gtk/gtk.h> +GtkWidget* create_call_notebook(); + +#endif