comparison src/layout.c @ 1433:b4ad1d201279

Use gboolean where applicable, minor cleanup and indentations fixes.
author zas_
date Sat, 14 Mar 2009 19:25:21 +0000
parents 7e180091e0b7
children d7a6fb7a90dd
comparison
equal deleted inserted replaced
1432:cf4029d10d38 1433:b4ad1d201279
724 layout_status_update_info(lw, NULL); 724 layout_status_update_info(lw, NULL);
725 layout_status_update_image(lw); 725 layout_status_update_image(lw);
726 layout_status_update_write(lw); 726 layout_status_update_write(lw);
727 } 727 }
728 728
729 static GtkWidget *layout_status_label(gchar *text, GtkWidget *box, gint start, gint size, gint expand) 729 static GtkWidget *layout_status_label(gchar *text, GtkWidget *box, gboolean start, gint size, gboolean expand)
730 { 730 {
731 GtkWidget *label; 731 GtkWidget *label;
732 GtkWidget *frame; 732 GtkWidget *frame;
733 733
734 frame = gtk_frame_new(NULL); 734 frame = gtk_frame_new(NULL);
749 gtk_widget_show(label); 749 gtk_widget_show(label);
750 750
751 return label; 751 return label;
752 } 752 }
753 753
754 static void layout_status_setup(LayoutWindow *lw, GtkWidget *box, gint small_format) 754 static void layout_status_setup(LayoutWindow *lw, GtkWidget *box, gboolean small_format)
755 { 755 {
756 GtkWidget *hbox; 756 GtkWidget *hbox;
757 757
758 if (lw->info_box) return; 758 if (lw->info_box) return;
759 759
1372 } 1372 }
1373 1373
1374 lw->options.tools_hidden = hide; 1374 lw->options.tools_hidden = hide;
1375 } 1375 }
1376 1376
1377 static gint layout_tools_delete_cb(GtkWidget *widget, GdkEventAny *event, gpointer data) 1377 static gboolean layout_tools_delete_cb(GtkWidget *widget, GdkEventAny *event, gpointer data)
1378 { 1378 {
1379 LayoutWindow *lw = data; 1379 LayoutWindow *lw = data;
1380 1380
1381 layout_tools_float_toggle(lw); 1381 layout_tools_float_toggle(lw);
1382 1382
1385 1385
1386 static void layout_tools_setup(LayoutWindow *lw, GtkWidget *tools, GtkWidget *files) 1386 static void layout_tools_setup(LayoutWindow *lw, GtkWidget *tools, GtkWidget *files)
1387 { 1387 {
1388 GtkWidget *vbox; 1388 GtkWidget *vbox;
1389 GtkWidget *w1, *w2; 1389 GtkWidget *w1, *w2;
1390 gint vertical; 1390 gboolean vertical;
1391 gboolean new_window = FALSE; 1391 gboolean new_window = FALSE;
1392 1392
1393 vertical = (layout_location_single(lw->image_location) && !layout_location_vertical(lw->image_location)) || 1393 vertical = (layout_location_single(lw->image_location) && !layout_location_vertical(lw->image_location)) ||
1394 (!layout_location_single(lw->image_location) && layout_location_vertical(layout_grid_compass(lw))); 1394 (!layout_location_single(lw->image_location) && layout_location_vertical(layout_grid_compass(lw)));
1395 #if 0 1395 #if 0
1999 string_list_free(lw->toolbar_actions); 1999 string_list_free(lw->toolbar_actions);
2000 free_layout_options_content(&lw->options); 2000 free_layout_options_content(&lw->options);
2001 g_free(lw); 2001 g_free(lw);
2002 } 2002 }
2003 2003
2004 static gint layout_delete_cb(GtkWidget *widget, GdkEventAny *event, gpointer data) 2004 static gboolean layout_delete_cb(GtkWidget *widget, GdkEventAny *event, gpointer data)
2005 { 2005 {
2006 LayoutWindow *lw = data; 2006 LayoutWindow *lw = data;
2007 2007
2008 layout_close(lw); 2008 layout_close(lw);
2009 return TRUE; 2009 return TRUE;