#include <gtk/gtk.h>
#include <gdk/gdk.h>
Go to the source code of this file.
<File description>="">
Definition in file gtkErrorScreen.h.
#define BOTTOM_TOP_BORDER 70 |
Definition at line 65 of file gtkErrorScreen.h.
#define ERROR_DESCRIPTION_WIDTH 600 |
Definition at line 70 of file gtkErrorScreen.h.
#define ERROR_IMAGE_MIN_HEIGHT 350 |
Definition at line 69 of file gtkErrorScreen.h.
#define ERROR_IMAGE_MIN_WIDTH 400 |
Definition at line 68 of file gtkErrorScreen.h.
#define GTK_ERROR_SCREEN | ( | obj | ) | (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_ERROR_SCREEN_TYPE, GtkErrorScreen)) |
Definition at line 78 of file gtkErrorScreen.h.
#define GTK_ERROR_SCREEN_CLASS | ( | klass | ) | (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_ERROR_SCREEN_TYPE, GtkErrorScreenClass)) |
Definition at line 79 of file gtkErrorScreen.h.
#define GTK_ERROR_SCREEN_TYPE (gtk_error_screen_get_type ()) |
Definition at line 77 of file gtkErrorScreen.h.
#define IS_GTK_ERROR_SCREEN | ( | obj | ) | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_ERROR_SCREEN_TYPE)) |
Definition at line 80 of file gtkErrorScreen.h.
#define IS_GTK_ERROR_SCREEN_CLASS | ( | klass | ) | (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_ERROR_SCREEN_TYPE)) |
Definition at line 81 of file gtkErrorScreen.h.
#define VBOX_BORDER 20 |
Definition at line 67 of file gtkErrorScreen.h.
#define VBOX_TEXT_IMAGE_SPACING 50 |
Definition at line 66 of file gtkErrorScreen.h.
typedef struct _GtkErrorScreen GtkErrorScreen |
Definition at line 83 of file gtkErrorScreen.h.
typedef struct _GtkErrorScreenClass GtkErrorScreenClass |
Definition at line 84 of file gtkErrorScreen.h.
enum ctrlErrorIcon_e |
ctrlWarningIcon | |
ctrlErrorIcon | |
ctrlInfoIcon | |
ctrlProhibitedIcon | |
ctrlDontDisconnectNWIcon | |
ctrlBatteryLowIcon | |
ctrlSystemShutdownIcon | |
ctrlLastIcon |
Definition at line 53 of file gtkErrorScreen.h.
00054 { 00055 ctrlWarningIcon = 0, 00056 ctrlErrorIcon, 00057 ctrlInfoIcon, 00058 ctrlProhibitedIcon, 00059 ctrlDontDisconnectNWIcon, 00060 ctrlBatteryLowIcon, 00061 ctrlSystemShutdownIcon, 00062 ctrlLastIcon 00063 } ctrlErrorIcon_e;
enum ctrlErrorType_e |
Definition at line 39 of file gtkErrorScreen.h.
00040 { 00041 ctrlNoError = 0, 00042 ctrlScanTooManyItemsError, 00043 ctrlScanFailedError, 00044 ctrlContentNotAvailableError, 00045 ctrlUnkownError, 00046 ctrlNoNetworkConfiguredError, 00047 ctrlConnectedUSBError, 00048 ctrlExportingDevUnavailError, 00049 ctrlBatteryLowError, 00050 ctrlSystemShutdownError 00051 } ctrlErrorType_e;
GType gtk_error_screen_get_type | ( | void | ) |
returns type of GtkErrorScreen widget
Definition at line 78 of file gtkErrorScreen.c.
00079 { 00080 static GType error_screen_type = 0; 00081 00082 if (!error_screen_type) 00083 { 00084 static const GTypeInfo error_screen_info = { 00085 sizeof(GtkErrorScreenClass), 00086 NULL, /* base_init */ 00087 NULL, /* base_finalize */ 00088 (GClassInitFunc) gtk_error_screen_class_init, 00089 NULL, /* class_finalize */ 00090 NULL, /* class_data */ 00091 sizeof(GtkErrorScreen), 00092 0, /* n_preallocs */ 00093 (GInstanceInitFunc) gtk_error_screen_init, 00094 }; 00095 00096 error_screen_type = g_type_register_static(GTK_TYPE_EVENT_BOX, "ErrorScreen", &error_screen_info, 0); 00097 } 00098 return error_screen_type; 00099 }
GtkWidget* gtk_error_screen_new | ( | ) |
creates a new GtkErrorScreen widget
- |
Definition at line 66 of file gtkErrorScreen.c.
00067 { 00068 GtkErrorScreen *errorScreen; 00069 00070 errorScreen = (GtkErrorScreen *) g_object_new(GTK_ERROR_SCREEN_TYPE, NULL); 00071 00072 CL_LOGPRINTF("error screen 0x%x", (unsigned int) errorScreen); 00073 00074 return GTK_WIDGET(errorScreen); 00075 }
void gtk_error_screen_set_image | ( | GtkErrorScreen * | error_screen, | |
ctrlErrorIcon_e | icon | |||
) |
Set thumb of GtkErrorScreen widget
item | the GtkErrorScreen widget | |
location | of the image |
Definition at line 232 of file gtkErrorScreen.c.
00233 { 00234 g_return_if_fail(IS_GTK_ERROR_SCREEN(error_screen)); 00235 00236 error_screen->pixmap = error_screen_get_image(icon); 00237 gtk_image_set_from_pixbuf(GTK_IMAGE(error_screen->image), error_screen->pixmap); 00238 //gtk_widget_show(GTK_WIDGET(error_screen->image)); 00239 return; 00240 }
void gtk_error_screen_set_text | ( | GtkErrorScreen * | screen, | |
const gchar * | text | |||
) |
Set text of GtkErrorScreen widget
item | the GtkListItem widget | |
text |
Definition at line 222 of file gtkErrorScreen.c.
00223 { 00224 g_return_if_fail(IS_GTK_ERROR_SCREEN(error_screen)); 00225 g_return_if_fail(text != NULL); 00226 00227 CL_LOGPRINTF("text %s", text); 00228 00229 gtk_label_set_text(GTK_LABEL(error_screen->text), text); 00230 }