Commit a447a4bd authored by Johannes Schmid's avatar Johannes Schmid Committed by Johannes Schmid

gdl/gdl-dock-bar.c

2007-01-17  Johannes Schmid <jhs@gnome.org>

  * gdl/gdl-dock-bar.c
  * gdl/test-dock.c:
  
  Added gdl_dock_bar_set/get_style (fix #397562)

svn path=/trunk/; revision=335
parent ae5ab748
2007-01-17 Johannes Schmid <jhs@gnome.org>
* gdl/gdl-dock-bar.c
* gdl/test-dock.c:
Added gdl_dock_bar_set/get_style (fix #397562)
2007-01-16 Pema Geyleg <pema.geyleg@gmail.com> 2007-01-16 Pema Geyleg <pema.geyleg@gmail.com>
* configure.in: Added 'dz' to ALL_LINGUAS. * configure.in: Added 'dz' to ALL_LINGUAS.
......
...@@ -933,3 +933,16 @@ void gdl_dock_bar_set_orientation (GdlDockBar *dockbar, ...@@ -933,3 +933,16 @@ void gdl_dock_bar_set_orientation (GdlDockBar *dockbar,
gtk_widget_queue_resize (GTK_WIDGET (dockbar)); gtk_widget_queue_resize (GTK_WIDGET (dockbar));
} }
void gdl_dock_bar_set_style(GdlDockBar* dockbar,
GdlDockBarStyle style)
{
g_object_set(G_OBJECT(dockbar), "dockbar-style", style, NULL);
}
GdlDockBarStyle gdl_dock_bar_get_style(GdlDockBar* dockbar)
{
GdlDockBarStyle style;
g_object_get(G_OBJECT(dockbar), "dockbar-style", &style, NULL);
return style;
}
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
#include "gdl-dock-placeholder.h" #include "gdl-dock-placeholder.h"
#include "gdl-dock-bar.h" #include "gdl-dock-bar.h"
#include <glib.h>
/* ---- end of debugging code */ /* ---- end of debugging code */
...@@ -147,6 +148,7 @@ main (int argc, char **argv) ...@@ -147,6 +148,7 @@ main (int argc, char **argv)
/* create the dockbar */ /* create the dockbar */
dockbar = gdl_dock_bar_new (GDL_DOCK (dock)); dockbar = gdl_dock_bar_new (GDL_DOCK (dock));
gdl_dock_bar_set_style(GDL_DOCK_BAR(dockbar), GDL_DOCK_BAR_TEXT);
box = gtk_hbox_new (FALSE, 5); box = gtk_hbox_new (FALSE, 5);
gtk_box_pack_start (GTK_BOX (table), box, TRUE, TRUE, 0); gtk_box_pack_start (GTK_BOX (table), box, TRUE, TRUE, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment