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"
|
|
|
|
#include "eom-edit-window.h"
|
|
|
|
#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);
|
|
|
|
|
2010-10-21 21:00:26 +02:00
|
|
|
eom_main_window_load(EOM_MAIN_WINDOW(window));
|
2010-10-17 13:48:02 +02:00
|
|
|
}
|
|
|
|
|
2010-10-20 22:37:54 +02:00
|
|
|
void interface_show_edit_window(void)
|
|
|
|
{
|
|
|
|
HildonWindowStack *stack;
|
|
|
|
GtkWidget *window;
|
|
|
|
|
|
|
|
stack = hildon_window_stack_get_default();
|
|
|
|
|
2010-10-21 21:00:26 +02:00
|
|
|
window = eom_edit_window_new(1);
|
2010-10-20 22:37:54 +02:00
|
|
|
hildon_window_stack_push(stack, HILDON_STACKABLE_WINDOW(window), NULL);
|
|
|
|
gtk_widget_show_all(window);
|
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
}
|