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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* Copyright (C) 2000 Eazel, Inc
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*
* Authors: J Shane Culpepper <pepper@eazel.com>
*
*/
#ifndef SHARED_SERVICE_WIDGETS_H
#define SHARED_SERVICE_WIDGETS_H
#include <gnome.h>
#include <libnautilus/nautilus-view.h>
#include <libnautilus-extensions/nautilus-image.h>
#include <libnautilus-extensions/nautilus-label.h>
#define SERVICE_VIEW_DEFAULT_BACKGROUND_COLOR "rgb:FFFF/FFFF/FFFF"
GtkWidget* create_image_widget (const char *icon_name,
const char *tile_icon_name);
GtkWidget* create_image_widget_from_uri (const char *uri,
const char *tile_icon_name,
int max_width,
int max_height);
GtkWidget* create_label_widget (const char *text,
guint font_size,
const char *tile_icon_name,
guint xpad,
guint ypad,
gint horizontal_offset,
gint vertical_offset);
GtkWidget* create_services_title_widget (const char *title_text);
GtkWidget* create_summary_service_title_top_widget (const char *login_status_text);
GtkWidget* create_summary_service_title_bottom_widget (const char *section_title);
GtkWidget* create_services_header_widget (const char *left_text,
const char *right_text);
GtkWidget* create_summary_service_large_grey_header_widget (const char *right_text);
GtkWidget* create_summary_service_small_grey_header_widget (const char *left_text);
void show_feedback (GtkWidget *widget,
char *error_text);
void set_widget_foreground_color (GtkWidget *widget,
const char *color_spec);
#endif /* SHARED_SERVICE_WIDGETS_H */
|