Saturday, August 17, 2013

How to integrate Glade 3 UI into a C program

Here's a simple example on how to make a UI in Glade 3 and then use the output XML file in a C program.
The code in C should look like this:

1:  #include <gtk/gtk.h>  
3:  int main(int argc, char **argv) {  
4:    GtkBuilder *builder;  
5:    GtkWidget *window;  
6:    GError   *error = NULL;  
8:    /* Init GTK+ */  
9:    gtk_init( &argc, &argv );  
11:    /* Create new GtkBuilder object */  
12:    builder = gtk_builder_new();  
13:    /* Load UI from file. If error occurs, report it and quit application.  
14:     * Replace "" with your saved project. */  
15:    if(!gtk_builder_add_from_file(builder, "", &error)) {  
16:      g_warning( "%s", error->message );  
17:      g_free( error );  
18:      return( 1 );  
19:    }  
21:    /* Get main window pointer from UI */  
22:    window = GTK_WIDGET(gtk_builder_get_object(builder, "window"));  
24:    /* Connect signals */  
25:    gtk_builder_connect_signals( builder, NULL );  
27:    /* Destroy builder, since we don't need it anymore */  
28:    g_object_unref( G_OBJECT( builder ) );  
30:    /* Show window. All other widgets are automatically shown by GtkBuilder */  
31:    gtk_widget_show( window );  
33:    /* Start main loop */  
34:    gtk_main();  
36:    return( 0 );  
37:  }  

For compiling the code you need to link gtk 3 libs.

gcc source.c `pkg-config --libs --cflags gtk+-3.0`

The code isn't mine, just sharing something that worked for me ;)

Sunday, June 2, 2013

RGBCDumper released

Today I finished my GNU/Linux GB Camera dumper project. I upload it to googlecode under GPLv3 for everyone to enjoy :-)
Currently it's CLI based and supports extracting thumbnails and full size pictures. In the future it will have 3 color palettes (black&white, GB Classic style and GB Pocket style) and a graphical user interface integrating ems-flasher for a complete dumping solution :-)

Stay tuned for the updates.

Sunday, May 26, 2013

RGBCDumper status

I'm making some progress in the GB Camera dumper.
Recently completed the back end with the help of Andrew from Lickitung's World (and his gbcdumper proyect) and Sverx from GBADev forum.

Right now I'm writing the GUI, it's starting to look like this:

The idea is to be able to click each thumbnail and see the full size photo on the right, and be able to save that individual full size photo and also add a button that saves all full size photos.

Maybe I'll integrate Myke Ryan's ems-flasher for a complete tool for dumping your GBC pics right off the bat.

Tuesday, May 21, 2013

GB camera dumper proyect

The past couple of weekends I've been working on a Linux native bmp image extractor for GB Camera sav files. Check out the images it creates:

LOL, I'm totally failing at this task, but it won't be much longer >:E

Saturday, May 18, 2013

Some shots with the PSP camera

I just got the psp camera 450X

and took 3 pics with one of it's effects that really caught my attention


Computer screen

Desktop mess

Sunday, May 12, 2013

Game boy camera gallery 3

Starring Finn the hamster.

Messing arround with GB camera trick lenses

Things get creepy very fast with the game boy camera

What's this? A muscled chicken? lol  

A very convincing cat skull

Shit just got sirius

Thursday, May 9, 2013

Game Boy camera galery 2