File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -1273,15 +1273,18 @@ clock_update_text_gravity (GtkWidget *label)
12731273}
12741274
12751275static inline void
1276- force_no_button_padding (GtkWidget * widget )
1276+ force_no_button_vertical_padding (GtkWidget * widget )
12771277{
12781278 GtkCssProvider * provider ;
12791279
12801280 provider = gtk_css_provider_new ();
12811281 gtk_css_provider_load_from_data (provider ,
12821282 "#clock-applet-button {\n"
1283- " padding: 0px;\n"
1284- " margin: 0px;\n }" ,
1283+ "padding-top: 0px;\n"
1284+ "padding-bottom: 0px;\n"
1285+ "margin-top: 0px;\n"
1286+ "margin-bottom: 0px;\n"
1287+ "}" ,
12851288 -1 , NULL );
12861289 gtk_style_context_add_provider (gtk_widget_get_style_context (widget ),
12871290 GTK_STYLE_PROVIDER (provider ),
@@ -1300,7 +1303,7 @@ create_main_clock_button (void)
13001303 button = gtk_toggle_button_new ();
13011304 gtk_button_set_relief (GTK_BUTTON (button ), GTK_RELIEF_NONE );
13021305
1303- force_no_button_padding (button );
1306+ force_no_button_vertical_padding (button );
13041307
13051308 return button ;
13061309}
You can’t perform that action at this time.
0 commit comments