mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
improve linux makefile
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@641 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
0403eead1f
commit
19e1d02745
3 changed files with 57 additions and 34 deletions
|
@ -111,6 +111,19 @@ static gint key_release_event (GtkWidget *widget, GdkEventKey *event)
|
|||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
void gdk_drawable_get_size (GdkDrawable *drawable,
|
||||
gint *width,
|
||||
gint *height);
|
||||
**/
|
||||
|
||||
static void size_allocate_event(GtkWidget *widget, GtkAllocation *allocation, gpointer user_data)
|
||||
{
|
||||
gint w, h;
|
||||
gdk_drawable_get_size(gtk_items.window, &w, &h);
|
||||
printf("%dx%d %dx%d\n", allocation->width, allocation->height, w, h);
|
||||
}
|
||||
|
||||
static void *gtk_threadf(void *targ)
|
||||
{
|
||||
int argc = 0;
|
||||
|
@ -137,6 +150,9 @@ static void *gtk_threadf(void *targ)
|
|||
g_signal_connect (G_OBJECT (gtk_items.window), "key_release_event",
|
||||
G_CALLBACK (key_release_event), NULL);
|
||||
|
||||
g_signal_connect (G_OBJECT (gtk_items.window), "size_allocate",
|
||||
G_CALLBACK (size_allocate_event), NULL);
|
||||
|
||||
gtk_container_set_border_width (GTK_CONTAINER (gtk_items.window), 2);
|
||||
gtk_window_set_title ((GtkWindow *) gtk_items.window, verstring);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue