eye-on-manga/src/interface.c
Tom Willemsen 4d3bb22d33 Rename edit window to detail window
It won't function as an edit window much longer.
2012-10-23 01:49:27 +02:00

38 lines
752 B
C

#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"
void interface_show_main_window(void)
{
GtkWidget *window;
window = eom_main_window_new();
gtk_widget_show_all(window);
eom_main_window_load(EOM_MAIN_WINDOW(window));
}
GtkWidget *interface_show_detail_window(gint manga_id)
{
GtkWidget *window;
window = eom_detail_window_new(manga_id);
gtk_widget_show_all(window);
return window;
}
GtkWidget *interface_show_new_item_dialog(GtkWindow *window)
{
GtkWidget *dialog;
dialog = eom_new_item_dialog_new();
gtk_widget_show_all(dialog);
gtk_window_set_transient_for(GTK_WINDOW(dialog), window);
return dialog;
}