Skip to content

Commit e77240c

Browse files
committed
clean up unused bh_set_section
1 parent 0bafe71 commit e77240c

File tree

3 files changed

+0
-26
lines changed

3 files changed

+0
-26
lines changed

src/bauhaus/bauhaus.c

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -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-
197191
static 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);

src/bauhaus/bauhaus.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,6 @@ typedef struct _DtBauhausWidget
168168
int quad_toggle;
169169
// show quad icon or space
170170
gboolean show_quad;
171-
// if a section label
172-
gboolean is_section;
173171

174172
// margin and padding structure, defined in css, retrieve on each draw
175173
GtkBorder margin, padding;
@@ -241,7 +239,6 @@ typedef struct dt_bauhaus_t
241239
float border_width; // width of the border of the slider marker
242240
float quad_width; // width of the quad area to paint icons
243241
PangoFontDescription *pango_font_desc; // no need to recreate this for every string we want to print
244-
PangoFontDescription *pango_sec_font_desc; // as above but for section labels
245242

246243
// the slider popup has a blinking cursor
247244
guint cursor_timeout;
@@ -271,11 +268,6 @@ void dt_bauhaus_cleanup();
271268
// load theme colors, fonts, etc
272269
void dt_bauhaus_load_theme();
273270

274-
// set the bauhaus widget as a module section and in this case the font used will be the one
275-
// from the CSS section_label.
276-
void dt_bauhaus_widget_set_section(GtkWidget *w,
277-
const gboolean is_section);
278-
279271
// common functions:
280272
// set the label text:
281273
dt_action_t *dt_bauhaus_widget_set_label(GtkWidget *w,

src/develop/blend_gui.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2766,7 +2766,6 @@ void dt_iop_gui_init_masks(GtkWidget *blendw, dt_iop_module_t *module)
27662766

27672767
bd->masks_combo = dt_bauhaus_combobox_new(module);
27682768
dt_bauhaus_widget_set_label(bd->masks_combo, N_("blend"), N_("drawn mask"));
2769-
dt_bauhaus_widget_set_section(bd->masks_combo, TRUE);
27702769

27712770
dt_bauhaus_combobox_add(bd->masks_combo, _("no mask used"));
27722771
g_signal_connect(G_OBJECT(bd->masks_combo), "value-changed",

0 commit comments

Comments
 (0)