1
0
Fork 0
forked from Miroirs/x49gp

prettify code

This commit is contained in:
Gwenhael Le Moine 2024-10-24 15:40:57 +02:00
parent d300afe3c7
commit e1f34098c4
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -2365,10 +2365,10 @@ static void x49gp_release_single_button( x49gp_ui_button_t* button, x49gp_ui_but
const x49gp_ui_key_t* key; const x49gp_ui_key_t* key;
GtkButton* gtkbutton; GtkButton* gtkbutton;
/* #ifdef DEBUG_X49GP_UI */ /* #ifdef DEBUG_X49GP_UI */
/* printf( "%s: button %u: col %u, row %u, eint %u\n", __FUNCTION__, event->button, button->key->column, button->key->row, */ /* printf( "%s: button %u: col %u, row %u, eint %u\n", __FUNCTION__, event->button, button->key->column, button->key->row, */
/* button->key->eint ); */ /* button->key->eint ); */
/* #endif */ /* #endif */
button->down = false; button->down = false;
button->hold = false; button->hold = false;
@ -2880,14 +2880,14 @@ static void x49gp_button_realize( GtkWidget* widget, gpointer user_data )
cairo_set_line_join( cr, CAIRO_LINE_JOIN_MITER ); cairo_set_line_join( cr, CAIRO_LINE_JOIN_MITER );
#if DEBUG_LAYOUT /* Layout Debug */ #if DEBUG_LAYOUT /* Layout Debug */
cairo_set_source_rgb(cr, 1.0, 1.0, 1.0); cairo_set_source_rgb( cr, 1.0, 1.0, 1.0 );
cairo_set_line_width(cr, 1.0); cairo_set_line_width( cr, 1.0 );
cairo_move_to(cr, xoffset, yoffset); cairo_move_to( cr, xoffset, yoffset );
cairo_line_to(cr, xoffset + w - 1, yoffset); cairo_line_to( cr, xoffset + w - 1, yoffset );
cairo_line_to(cr, xoffset + w - 1, yoffset + h - 1); cairo_line_to( cr, xoffset + w - 1, yoffset + h - 1 );
cairo_line_to(cr, xoffset, yoffset + h - 1); cairo_line_to( cr, xoffset, yoffset + h - 1 );
cairo_close_path(cr); cairo_close_path( cr );
cairo_stroke(cr); cairo_stroke( cr );
#endif #endif
if ( key->letter ) { if ( key->letter ) {
@ -3451,10 +3451,7 @@ static int gui_load( x49gp_module_t* module, GKeyFile* keyfile )
return 0; return 0;
} }
static int gui_save( x49gp_module_t* module, GKeyFile* keyfile ) static int gui_save( x49gp_module_t* module, GKeyFile* keyfile ) { return 0; }
{
return 0;
}
int x49gp_ui_init( x49gp_t* x49gp ) int x49gp_ui_init( x49gp_t* x49gp )
{ {