[libgda] Rendering improvements
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Rendering improvements
- Date: Wed, 18 May 2011 13:05:29 +0000 (UTC)
commit f5c064bb732d26c4a9d31de2dc8b8f3253d5ac79
Author: Vivien Malerba <malerba gnome-db org>
Date: Wed May 18 15:03:33 2011 +0200
Rendering improvements
libgda-ui/data-entries/widget-embedder.c | 9 ++-------
libgda-ui/gdaui-basic-form.c | 3 ++-
2 files changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/libgda-ui/data-entries/widget-embedder.c b/libgda-ui/data-entries/widget-embedder.c
index 595db96..2ef39ea 100644
--- a/libgda-ui/data-entries/widget-embedder.c
+++ b/libgda-ui/data-entries/widget-embedder.c
@@ -408,19 +408,14 @@ widget_embedder_draw (GtkWidget *widget, cairo_t *cr)
}
}
}
- if (gtk_cairo_should_draw_window (cr, bin->offscreen_window)) {
- gtk_paint_flat_box (gtk_widget_get_style (widget), cr,
- GTK_STATE_NORMAL, GTK_SHADOW_NONE,
- widget, "blah",
- 0, 0,
- gdk_window_get_width (bin->offscreen_window),
- gdk_window_get_height (bin->offscreen_window));
+ if (gtk_cairo_should_draw_window (cr, bin->offscreen_window)) {
if (bin->child)
gtk_container_propagate_draw (GTK_CONTAINER (widget),
bin->child,
cr);
}
+
return FALSE;
}
diff --git a/libgda-ui/gdaui-basic-form.c b/libgda-ui/gdaui-basic-form.c
index 1382a07..6d5b718 100644
--- a/libgda-ui/gdaui-basic-form.c
+++ b/libgda-ui/gdaui-basic-form.c
@@ -374,7 +374,7 @@ popup_menu_cb (G_GNUC_UNUSED GtkWidget *wid, GdauiBasicForm *form)
}
static gboolean
-button_press_event_cb (G_GNUC_UNUSED GdauiBasicForm *wid, GdkEventButton *event, GdauiBasicForm *form)
+button_press_event_cb (G_GNUC_UNUSED GtkWidget *wid, GdkEventButton *event, GdauiBasicForm *form)
{
if (event->button == 3 && event->type == GDK_BUTTON_PRESS) {
do_popup_menu (form, event);
@@ -404,6 +404,7 @@ gdaui_basic_form_init (GdauiBasicForm *wid)
wid->priv->mainbox = gtk_vbox_new (FALSE, 0);
gtk_widget_show (wid->priv->mainbox);
gtk_container_add (GTK_CONTAINER (evbox), wid->priv->mainbox);
+ g_object_set (evbox, "visible-window", FALSE, NULL);
g_signal_connect (evbox, "popup-menu",
G_CALLBACK (popup_menu_cb), wid);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]