Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/XFCE/src/     Datei vom 4.9.2024 mit Größe 2 kB image not shown  

Quelle  xfdesktop-file-icon-model.h   Sprache: C

 

/*
 *  xfdesktop - xfce4's desktop manager
 *
 *  Copyright(c) 2022 Brian Tarricone, <brian@tarricone.org>
 *
 *  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 Library General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software Foundation,
 *  Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
 */


#ifndef __XFDESKTOP_FILE_ICON_MODEL_H__
#define __XFDESKTOP_FILE_ICON_MODEL_H__

#include <gtk/gtk.h>
#include <xfconf/xfconf.h>

#include "xfdesktop-file-icon.h"

G_BEGIN_DECLS

#define XFDESKTOP_TYPE_FILE_ICON_MODEL    (xfdesktop_file_icon_model_get_type())
#define XFDESKTOP_FILE_ICON_MODEL(obj)    (G_TYPE_CHECK_INSTANCE_CAST((obj), XFDESKTOP_TYPE_FILE_ICON_MODEL, XfdesktopFileIconModel))
#define XFDESKTOP_IS_FILE_ICON_MODEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), XFDESKTOP_TYPE_FILE_ICON_MODEL))
#define XFDESKTOP_FILE_ICON_MODEL_ERROR   (xfdesktop_file_icon_model_error_quark())

typedef struct _XfdesktopFileIconModel XfdesktopFileIconModel;
typedef struct _XfdesktopFileIconModelClass XfdesktopFileIconModelClass;

typedef enum {
    XFDESKTOP_FILE_ICON_MODEL_ERROR_CANT_CREATE_DESKTOP_FOLDER,
    XFDESKTOP_FILE_ICON_MODEL_ERROR_DESKTOP_NOT_FOLDER,
    XFDESKTOP_FILE_ICON_MODEL_ERROR_FOLDER_LIST_FAILED,
} XfdesktopFileIconModelError;


GType xfdesktop_file_icon_model_get_type(void) G_GNUC_CONST;
GQuark xfdesktop_file_icon_model_error_quark(void) G_GNUC_CONST;

XfdesktopFileIconModel *xfdesktop_file_icon_model_new(XfconfChannel *channel,
                                                      GFile *file,
                                                      GdkScreen *gdkscreen);

XfdesktopFileIcon *xfdesktop_file_icon_model_get_icon(XfdesktopFileIconModel *fmodel,
                                                      GtkTreeIter *iter);
XfdesktopFileIcon *xfdesktop_file_icon_model_get_icon_for_file(XfdesktopFileIconModel *fmodel,
                                                               GFile *file);
gboolean xfdesktop_file_icon_model_get_icon_iter(XfdesktopFileIconModel *fmodel,
                                                 XfdesktopFileIcon *icon,
                                                 GtkTreeIter *iter);


void xfdesktop_file_icon_model_reload(XfdesktopFileIconModel *fmodel);

G_END_DECLS

#endif  /* __XFDESKTOP_FILE_ICON_MODEL_H__ */

Messung
CHZG
979710097

¤ Dauer der Verarbeitung: 0.9 Sekunden  ¤

*© Formatika GbR, Deutschland