blob: e751217384c1f4d158d02a63cd2ca637f63e887b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#ifndef __DETAILS_H__
#define __DETAILS_H__
#include <gtk/gtk.h>
#include "config.h"
typedef struct _DetailWindow DetailWindow;
struct _DetailWindow {
GtkWidget *window;
GtkWidget *vbox;
GtkWidget *notebook;
GtkWidget *icon;
GtkWidget *name_label;
gchar *device_name;
gchar *device_type;
gchar *manufacturer;
GtkWidget *info_table;
gint last_info;
};
gboolean detail_window_close(GtkWidget *widget, gpointer data);
DetailWindow *detail_window_new(void);
void detail_window_set_icon(DetailWindow *dw, const gchar *path);
void detail_window_show(GtkWidget *widget, gpointer data);
void detail_window_set_dev_name(DetailWindow *dw, const gchar *name);
void detail_window_set_dev_type(DetailWindow *dw, const gchar *type);
void detail_window_update_names(DetailWindow *dw);
void detail_window_append_info(DetailWindow *dw, const gchar *name,
gchar *val);
void detail_window_append_info_int(DetailWindow *dw, const gchar *name,
gint val, gboolean hex);
void detail_window_append_separator(DetailWindow *dw);
#endif
|