2013-05-03 00:34:43 +02:00
|
|
|
/* Eye on Manga - Manga collection software for Maemo 5
|
|
|
|
Copyright (C) 2010-2013 Tom Willemse
|
|
|
|
|
|
|
|
Eye on Manga 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.
|
|
|
|
|
|
|
|
Eye on Manga 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 Eye on Manga. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
2010-10-17 13:48:02 +02:00
|
|
|
#include <hildon/hildon.h>
|
|
|
|
#include "interface.h"
|
2010-10-21 21:00:26 +02:00
|
|
|
#include "eom-main-window.h"
|
2012-10-23 01:49:27 +02:00
|
|
|
#include "eom-detail-window.h"
|
2010-10-21 21:00:26 +02:00
|
|
|
#include "eom-new-item-dialog.h"
|
2010-10-19 01:28:46 +02:00
|
|
|
#include "data.h"
|
2010-10-17 13:48:02 +02:00
|
|
|
|
|
|
|
void interface_show_main_window(void)
|
|
|
|
{
|
|
|
|
GtkWidget *window;
|
|
|
|
|
2010-10-21 21:00:26 +02:00
|
|
|
window = eom_main_window_new();
|
2010-10-17 13:48:02 +02:00
|
|
|
gtk_widget_show_all(window);
|
|
|
|
|
2012-10-21 15:26:34 +02:00
|
|
|
eom_main_window_load(EOM_MAIN_WINDOW(window));
|
2010-10-17 13:48:02 +02:00
|
|
|
}
|
|
|
|
|
2012-10-23 01:49:27 +02:00
|
|
|
GtkWidget *interface_show_detail_window(gint manga_id)
|
2010-10-20 22:37:54 +02:00
|
|
|
{
|
|
|
|
GtkWidget *window;
|
|
|
|
|
2012-10-23 01:49:27 +02:00
|
|
|
window = eom_detail_window_new(manga_id);
|
2010-10-20 22:37:54 +02:00
|
|
|
gtk_widget_show_all(window);
|
2010-10-22 02:19:47 +02:00
|
|
|
|
|
|
|
return window;
|
2010-10-20 22:37:54 +02:00
|
|
|
}
|
|
|
|
|
2010-10-17 13:48:02 +02:00
|
|
|
GtkWidget *interface_show_new_item_dialog(GtkWindow *window)
|
|
|
|
{
|
|
|
|
GtkWidget *dialog;
|
|
|
|
|
2010-10-21 21:00:26 +02:00
|
|
|
dialog = eom_new_item_dialog_new();
|
2010-10-17 13:48:02 +02:00
|
|
|
gtk_widget_show_all(dialog);
|
|
|
|
|
|
|
|
gtk_window_set_transient_for(GTK_WINDOW(dialog), window);
|
|
|
|
|
|
|
|
return dialog;
|
|
|
|
}
|