Commit a8086d2c authored by Ernestas Kulik's avatar Ernestas Kulik 🦑

Add new folder task class

parent 59cb61c7
#include "nautilus-new-folder-task.h"
struct _NautilusNewFolderTask
{
NautilusCreateTask parent_instance;
};
G_DEFINE_TYPE (NautilusNewFolderTask, nautilus_new_folder_task,
NAUTILUS_TYPE_CREATE_TASK)
static void
nautilus_new_folder_task_class_init (NautilusNewFolderTaskClass *klass)
{
}
static void
nautilus_new_folder_task_init (NautilusNewFolderTask *self)
{
}
NautilusTask *
nautilus_new_folder_task_new (GtkWidget *parent_view,
GdkPoint *target_point,
const char *parent_dir,
const char *folder_name)
{
GObject *instance;
instance = g_object_new (NAUTILUS_TYPE_NEW_FOLDER_TASK, NULL);
return NAUTILUS_TASK (instance);
}
#ifndef NAUTILUS_NEW_FOLDER_TASK_H
#define NAUTILUS_NEW_FOLDER_TASK_H
#include "nautilus-create-task.h"
#include <gdk/gdk.h>
#include <gtk/gtk.h>
#define NAUTILUS_TYPE_NEW_FOLDER_TASK (nautilus_new_folder_task_get_type ())
G_DECLARE_FINAL_TYPE (NautilusNewFolderTask, nautilus_new_folder_task,
NAUTILUS, NEW_FOLDER_TASK,
NautilusCreateTask)
struct _NautilusNewFolderTaskClass
{
NautilusCreateTaskClass parent_class;
};
NautilusTask *nautilus_new_folder_task_new (GtkWidget *parent_view,
GdkPoint *target_point,
const char *parent_dir,
const char *folder_name);
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment