qulogic/libgnt

Parents 52014b84442d
Children 108ace1019a2
Finch-OTR: implement missing PurpleRequestCommonParameters features
  • +6 -0
    gntbox.c
  • +11 -0
    gntbox.h
  • --- a/gntbox.c Sat Apr 26 21:08:57 2014 +0200
    +++ b/gntbox.c Sat Apr 26 22:07:58 2014 +0200
    @@ -677,6 +677,12 @@
    widget->parent = GNT_WIDGET(b);
    }
    +void gnt_box_add_widget_in_front(GntBox *b, GntWidget *widget)
    +{
    + b->list = g_list_prepend(b->list, widget);
    + widget->parent = GNT_WIDGET(b);
    +}
    +
    void gnt_box_set_title(GntBox *b, const char *title)
    {
    char *prev = b->title;
    --- a/gntbox.h Sat Apr 26 21:08:57 2014 +0200
    +++ b/gntbox.h Sat Apr 26 22:07:58 2014 +0200
    @@ -125,6 +125,17 @@
    void gnt_box_add_widget(GntBox *box, GntWidget *widget);
    /**
    + * gnt_box_add_widget_in_front:
    + * @box: The box
    + * @widget: The widget to add
    + *
    + * Add a widget in the box at its front.
    + *
    + * Since: 2.8.0
    + */
    +void gnt_box_add_widget_in_front(GntBox *b, GntWidget *widget);
    +
    +/**
    * gnt_box_set_title:
    * @box: The box
    * @title: The title to set