GtkNotebook patch



Hi!

This patch adds new tab styles and arrangement possibilities to GtkNotebook.

- Fixed visibility bugs. Hiding a notebook page now also hides its tab and
  menu labels.

- New tab styles :
  GTK_NOTEBOOK_TAB_NONE
  GTK_NOTEBOOK_TAB_CHAMFERED
  GTK_NOTEBOOK_TAB_SLANTED
  GTK_NOTEBOOK_TAB_SQUARE

  gtk_notebook_set_show_tabs changes to :
  void gtk_notebook_set_show_tabs (GtkNotebook     *notebook,
                                   GtkTabStyle      tab_style);

- Separate adjustable tab hborder and vborder via
  gtk_notebook_set_tab_hborder and gtk_notebook_set_tab_vborder.
  
- Packing options similar to gtk_box, i.e. extend, fill, pack_type options.
  New functions :
  void gtk_notebook_query_tab_label_packing (GtkNotebook *notebook,
                                             GtkWidget   *child,
                                             gboolean    *expand,
                                             gboolean    *fill,
                                             GtkPackType *pack_type);
  void gtk_notebook_set_tab_label_packing   (GtkNotebook *notebook,
                                             GtkWidget   *child,
                                             gboolean     expand,
                                             gboolean     fill,
                                             GtkPackType  pack_type);

- adjustable tab corner size via gtk_notebook_set_tab_corner_size.
- adjustable tab overlap via gtk_notebook_set_tab_overlap
- homogeneous tabs via gtk_notebook_set_homogeneous_tabs
- new functions for querying and changing page properties :
  gtk_notebook_query_tab_label
  gtk_notebook_set_tab_label
  gtk_notebook_set_tab_label_text
  gtk_notebook_query_menu_label
  gtk_notebook_set_menu_label
  gtk_notebook_set_menu_label_text

Please test this patch. Comments are welcome.
If nobody objects, I'll commit it within the next few days.

bye,
  Lars

gtk-hamann_jeske-980910-0.patch.gz



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]