mirror of
https://gitlab.gnome.org/GNOME/gparted
synced 2024-10-01 13:44:34 +00:00
f252e677d4
Some icon themes only provide large icons for stock items. This can cause problems like overly large icons appearing in the GParted UI. Found on Kubuntu 16.04 LTS with default breeze icon theme. Be compatible with these icon themes by forcing scaling of stock icons to the requested size. Icons are used either by Gtk::Image widgets, or Gtk::CellRendererPixbuf objects for comboboxes/treeviews. For Gtk::Image widgets we add Utils::mk_image() that constructs Gtk::Image widgets and then sets the pixel-size property. For Gtk::CellRendererPixbuf we add Utils::mk_pixbuf() that first loads a Gdk::Pixbuf and then scales if needed. Closes #39 - After GTK3 port icons are too big on KDE
49 lines
1.2 KiB
C++
49 lines
1.2 KiB
C++
/* Copyright (C) 2004 Bart
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
|
|
#ifndef GPARTED_DIALOG_DISKLABEL_H
|
|
#define GPARTED_DIALOG_DISKLABEL_H
|
|
|
|
#include "Utils.h"
|
|
#include "Device.h"
|
|
|
|
#include <gtkmm/dialog.h>
|
|
#include <gtkmm/button.h>
|
|
#include <gtkmm/stock.h>
|
|
#include <gtkmm/expander.h>
|
|
#include <gtkmm/comboboxtext.h>
|
|
|
|
namespace GParted
|
|
{
|
|
|
|
class Dialog_Disklabel : public Gtk::Dialog
|
|
{
|
|
public:
|
|
Dialog_Disklabel( const Device & device ) ;
|
|
~Dialog_Disklabel();
|
|
|
|
Glib::ustring Get_Disklabel( ) ;
|
|
|
|
private:
|
|
Gtk::ComboBoxText combo_labeltypes ;
|
|
std::vector<Glib::ustring> labeltypes ;
|
|
};
|
|
|
|
} //GParted
|
|
|
|
#endif /* GPARTED_DIALOG_DISKLABEL_H */
|