Scalling image to smaller size and button

hi
i would like to make a small button with an image …my image isnt big in size but i would like to show even smaller in size. button keeps size of image and i dont know how to make it smaller …i can tho make it larger but not smaller

				Gtk::Button* btn = new Gtk::Button();
			    std::string iconPath =getenv("GRUNF");
			    Gtk::Image* icon = new Gtk::Image();
			    iconPath += "/res/osvezi.png";
			    icon->set(iconPath);
			    icon->set_pixel_size(5);
			    btn->set_child(*icon);
			    btn->set_size_request(6,6);

whatever number smaller than original size doesnt help… here in code is only a guess what this numbers would do.

Hi,

The theme may request a minimal size for buttons, that’s typically why they can’t shrink.

You may want to load a custom CSS style for compact buttons, something like this:

button.small {
	padding: 3px;
	min-height: 16px;
	min-width: 16px;
}

Then apply the small class to your button:

gtk_widget_add_css_class (button, "small");