1
0
mirror of https://github.com/GNOME/gedit synced 2024-07-02 15:58:48 +00:00
gedit/plugins/filebrowser/gedit-file-browser-utils.h
Sebastien Lafargue 9913f5ae47 file-browser: correct color for symbolic icons in dark mode
Previously, symbolics icons were hard-coded with pixbufs in the stores,
means no re-colorization when the theme change.

fix #99
2018-11-24 18:58:57 +01:00

47 lines
1.8 KiB
C

/*
* gedit-file-browser-utils.h - Gedit plugin providing easy file access
* from the sidepanel
*
* Copyright (C) 2006 - Jesse van den Kieboom <jesse@icecrew.nl>
*
* 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, 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 GEDIT_FILE_BROWSER_UTILS_H
#define GEDIT_FILE_BROWSER_UTILS_H
#include <gedit/gedit-window.h>
#include <gio/gio.h>
gchar *gedit_file_browser_utils_name_from_themed_icon (GIcon *icon);
GdkPixbuf *gedit_file_browser_utils_pixbuf_from_theme (gchar const *name,
GtkIconSize size);
GdkPixbuf *gedit_file_browser_utils_pixbuf_from_icon (GIcon *icon,
GtkIconSize size);
GdkPixbuf *gedit_file_browser_utils_pixbuf_from_file (GFile *file,
GtkIconSize size,
gboolean use_symbolic);
gchar *gedit_file_browser_utils_symbolic_icon_name_from_file (GFile *file);
gchar *gedit_file_browser_utils_file_basename (GFile *file);
gboolean gedit_file_browser_utils_confirmation_dialog (GeditWindow *window,
GtkMessageType type,
gchar const *message,
gchar const *secondary,
gchar const *button_label);
#endif /* GEDIT_FILE_BROWSER_UTILS_H */
/* ex:set ts=8 noet: */