@@ -188,12 +188,6 @@ static void _margins_retrieve(dt_bauhaus_widget_t *w)
188188 gtk_style_context_get_padding (context , state , & w -> padding );
189189}
190190
191- void dt_bauhaus_widget_set_section (GtkWidget * widget , const gboolean is_section )
192- {
193- dt_bauhaus_widget_t * w = DT_BAUHAUS_WIDGET (widget );
194- w -> is_section = is_section ;
195- }
196-
197191static int _show_pango_text (dt_bauhaus_widget_t * w ,
198192 GtkStyleContext * context ,
199193 cairo_t * cr ,
@@ -774,17 +768,6 @@ void dt_bauhaus_load_theme()
774768 gtk_style_context_get (ctx , GTK_STATE_FLAG_NORMAL , "font" ,
775769 & bh -> pango_font_desc , NULL );
776770
777- if (bh -> pango_sec_font_desc )
778- pango_font_description_free (bh -> pango_sec_font_desc );
779- bh -> pango_sec_font_desc = NULL ;
780-
781- // now get the font for the section labels
782- gtk_widget_path_iter_add_class (path , pos , "dt_section_label" );
783- gtk_style_context_set_path (ctx , path );
784- gtk_style_context_get (ctx , GTK_STATE_FLAG_NORMAL , "font" ,
785- & bh -> pango_sec_font_desc , NULL );
786- gtk_widget_path_free (path );
787-
788771 cairo_surface_t * cst = cairo_image_surface_create (CAIRO_FORMAT_ARGB32 , 128 , 128 );
789772 cairo_t * cr = cairo_create (cst );
790773 PangoLayout * layout = pango_cairo_create_layout (cr );
0 commit comments