eye-on-manga/src/interface.c

39 lines
752 B
C
Raw Normal View History

2010-10-17 13:48:02 +02:00
#include <hildon/hildon.h>
#include "interface.h"
#include "eom-main-window.h"
#include "eom-detail-window.h"
#include "eom-new-item-dialog.h"
#include "data.h"
2010-10-17 13:48:02 +02:00
void interface_show_main_window(void)
{
GtkWidget *window;
window = eom_main_window_new();
2010-10-17 13:48:02 +02:00
gtk_widget_show_all(window);
eom_main_window_load(EOM_MAIN_WINDOW(window));
2010-10-17 13:48:02 +02:00
}
GtkWidget *interface_show_detail_window(gint manga_id)
2010-10-20 22:37:54 +02:00
{
GtkWidget *window;
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;
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;
}