12 #include <gdk-pixbuf/gdk-pixbuf.h>
20 #include "xgamelist.h"
22 #include "xedittags.h"
27 # define _(s) gettext (s)
28 # define N_(s) gettext_noop (s)
36 GdkPixbuf *load_pixbuf(char *filename,int size)
41 image = gdk_pixbuf_new_from_file_at_size(filename,size,size,NULL);
43 image = gdk_pixbuf_new_from_file(filename,NULL);
47 fprintf(stderr,_("Error: couldn't load file: %s\n"),filename);
53 void GUI_SetAspectRatio(ratio)
56 /* sets the aspect ration of the main window */
58 extern GtkWidget *GUI_Window;
60 hints.min_aspect = ratio;
61 hints.max_aspect = ratio;
63 gtk_window_set_geometry_hints (GTK_WINDOW (GUI_Window),
64 GTK_WIDGET (GUI_Window),