diff options
author | Simon Quigley <tsimonq2@ubuntu.com> | 2017-06-19 14:38:31 -0500 |
---|---|---|
committer | Simon Quigley <tsimonq2@ubuntu.com> | 2017-06-19 14:38:31 -0500 |
commit | a08438bda21b3e0d7db2db2360d040841970104d (patch) | |
tree | f8a13a1e368bfbd14fe2d9492d6d5824eb5712ce /details.h | |
parent | 8c1612d32c5682a86216adb8c8d11ce715fe5475 (diff) |
Import Upstream version 0.3.7pre
Diffstat (limited to 'details.h')
-rw-r--r-- | details.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/details.h b/details.h new file mode 100644 index 00000000..e7512173 --- /dev/null +++ b/details.h @@ -0,0 +1,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 |