forked from HandBrake/HandBrake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathghb-string-list.h
24 lines (17 loc) · 873 Bytes
/
ghb-string-list.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* Copyright (C) 2024 HandBrake Team
* SPDX-License-Identifier: GPL-2.0-or-later */
#pragma once
#include "common.h"
G_BEGIN_DECLS
#define GHB_TYPE_STRING_LIST (ghb_string_list_get_type())
G_DECLARE_FINAL_TYPE(GhbStringList, ghb_string_list, GHB, STRING_LIST, GtkBox)
GtkWidget *ghb_string_list_new(gboolean editable);
void ghb_string_list_remove_item_at_index(GhbStringList *self, int idx);
void ghb_string_list_append(GhbStringList *self, const char *name);
void ghb_string_list_update_item_at_index(GhbStringList *self, int idx, const char *name);
char **ghb_string_list_get_items(GhbStringList *self);
void ghb_string_list_set_items(GhbStringList *self, const char **names);
void ghb_string_list_clear(GhbStringList *self);
int ghb_string_list_get_selected_index(GhbStringList *self);
char *ghb_string_list_get_selected_string(GhbStringList *self);
G_END_DECLS