mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-10 20:10:56 +00:00
16 lines
363 B
C++
16 lines
363 B
C++
|
|
||
|
#include "frame.h"
|
||
|
|
||
|
#include <gtk/gtkframe.h>
|
||
|
|
||
|
GtkFrame* create_framed_widget(GtkWidget* widget)
|
||
|
{
|
||
|
GtkFrame* frame = GTK_FRAME(gtk_frame_new(0));
|
||
|
gtk_widget_show(GTK_WIDGET(frame));
|
||
|
gtk_frame_set_shadow_type(frame, GTK_SHADOW_IN);
|
||
|
gtk_container_add (GTK_CONTAINER(frame), widget);
|
||
|
gtk_widget_show(GTK_WIDGET(widget));
|
||
|
return frame;
|
||
|
}
|
||
|
|