[libgda] Misc corrections



commit 4371ad129eb9607925d02fd7a1c5a58e2c69496b
Author: Vivien Malerba <malerba gnome-db org>
Date:   Mon Apr 16 18:52:54 2012 +0200

    Misc corrections

 .../plugins/gdaui-data-cell-renderer-pict.c        |    3 +--
 libgda-ui/demos/ddl_queries.c                      |    2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/libgda-ui/data-entries/plugins/gdaui-data-cell-renderer-pict.c b/libgda-ui/data-entries/plugins/gdaui-data-cell-renderer-pict.c
index 87caaab..150410d 100644
--- a/libgda-ui/data-entries/plugins/gdaui-data-cell-renderer-pict.c
+++ b/libgda-ui/data-entries/plugins/gdaui-data-cell-renderer-pict.c
@@ -412,8 +412,7 @@ gdaui_data_cell_renderer_pict_render (GtkCellRenderer      *cell,
 		gdouble y = cell_area->y + cell_area->height / 2.;
 		gtk_render_line (style_context,
 				 cr,
-				 cell_area->x + xpad, cell_area->x + cell_area->width - xpad,
-				 y, y);
+				 cell_area->x + xpad, y, cell_area->x + cell_area->width - xpad, y);
 	}
 	if (datacell->priv->invalid)
 		gdaui_data_cell_renderer_draw_invalid_area (cr, cell_area);
diff --git a/libgda-ui/demos/ddl_queries.c b/libgda-ui/demos/ddl_queries.c
index fcd6c24..3d70413 100644
--- a/libgda-ui/demos/ddl_queries.c
+++ b/libgda-ui/demos/ddl_queries.c
@@ -477,7 +477,7 @@ show_sql (G_GNUC_UNUSED GtkButton *button, DemoData *data)
 
 		dlg = gtk_message_dialog_new_with_markup (GTK_WINDOW (data->top_window),
 							  GTK_DIALOG_MODAL,
-							  msg_type, GTK_BUTTONS_CLOSE, "%s", msg);
+							  msg_type, GTK_BUTTONS_CLOSE, msg);
 		g_free (sql);
 		g_free (msg);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]