ocarina: Remove old code from window.cpp

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
Bryan Schumaker 2012-03-29 08:28:48 -04:00
parent 72522aab56
commit 6f3397c1a4
1 changed files with 0 additions and 33 deletions

View File

@ -9,11 +9,6 @@
#include <libsaria/stack.h>
#include <libsaria/prefs.h>
/*#include <ocarina/gtk.h>
#include <ocarina/ocarina.h>
#include <ocarina/window.h>
#include <ocarina/shortcut.h>
*/
static GtkWidget *win;
static int old_w, old_h;
static bool ignore_configure_event = false;
@ -97,7 +92,6 @@ static gboolean key_pressed(GtkWidget *widget, GdkEvent *event, gpointer data)
return TRUE;
}
static gboolean key_pressed_after(GtkWidget *widget, GdkEvent *event, gpointer data)
{
string key = gdk_keyval_name(event->key.keyval);
@ -113,33 +107,6 @@ static gboolean key_pressed_after(GtkWidget *widget, GdkEvent *event, gpointer d
return TRUE;
}
/*
void window_resize(int w, int h)
{
gtk_window_resize(GTK_WINDOW(window), w, h);
}
void window_init(string title, string icon)
{
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
GTK_CONNECT(window, "destroy", destroy_window, NULL);
GTK_CONNECT(window, "key-press-event", handle_shortcut, NULL);
window_resize(800, 600);
gtk_widget_show(window);
window_title(title);
window_icon(icon);
}
void window_add(GtkWidget *widget)
{
container_add(window, widget);
}
void window_focus()
{
gtk_window_set_focus(GTK_WINDOW(window), NULL);
}*/
namespace ocarina
{