[libgda] GdauiDataWidgetInfo: modified style
- From: Vivien Malerba <vivien src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libgda] GdauiDataWidgetInfo: modified style
- Date: Thu, 24 Sep 2009 18:44:48 +0000 (UTC)
commit 31ccfc339f7e892d4554428a6e451e35ce38c046
Author: Vivien Malerba <malerba gnome-db org>
Date: Tue Sep 22 18:44:31 2009 +0200
GdauiDataWidgetInfo: modified style
set the toolbar's shadow type to GTK_SHADOW_NONE
to make it look like a regular horizontal buttons box
libgda-ui/gdaui-data-widget-info.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/libgda-ui/gdaui-data-widget-info.c b/libgda-ui/gdaui-data-widget-info.c
index f13aaf5..d2c1ec5 100644
--- a/libgda-ui/gdaui-data-widget-info.c
+++ b/libgda-ui/gdaui-data-widget-info.c
@@ -405,6 +405,18 @@ modif_buttons_make (GdauiDataWidgetInfo *info)
{
GtkWidget *wid;
GdauiDataWidgetInfoFlag flags = info->priv->flags;
+ static gboolean rc_done = FALSE;
+
+ if (!rc_done) {
+ rc_done = TRUE;
+ gtk_rc_parse_string ("style \"gdaui-data-widget-info-style\"\n"
+ "{\n"
+ "GtkToolbar::shadow-type = GTK_SHADOW_NONE\n"
+ "xthickness = 0\n"
+ "ythickness = 0\n"
+ "}\n"
+ "widget \"*.gdaui-data-widget-info\" style \"gdaui-data-widget-info-style\"");
+ }
if (! info->priv->data_widget)
return;
@@ -428,6 +440,7 @@ modif_buttons_make (GdauiDataWidgetInfo *info)
info->priv->uimanager = ui;
info->priv->buttons_bar = gtk_ui_manager_get_widget (ui, "/ToolBar");
g_object_set (G_OBJECT (info->priv->buttons_bar), "toolbar-style", GTK_TOOLBAR_ICONS, NULL);
+ gtk_widget_set_name (info->priv->buttons_bar, "gdaui-data-widget-info");
gtk_toolbar_set_tooltips (GTK_TOOLBAR (info->priv->buttons_bar), TRUE);
gtk_box_pack_start (GTK_BOX (info), info->priv->buttons_bar, TRUE, TRUE, 0);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]