aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Bordoley <bordoley@msu.edu>2003-03-24 02:21:22 +0800
committerDave Bordoley <Bordoley@src.gnome.org>2003-03-24 02:21:22 +0800
commit9e061fdc100ec5c71288049e4daffedd4253733d (patch)
treec8bd9b36f4238d115f31ce06bc9067f991e35111
parentb5adadbd95876430b6eae6c053cdda3c00bfe5fd (diff)
downloadgsoc2013-epiphany-9e061fdc100ec5c71288049e4daffedd4253733d.tar
gsoc2013-epiphany-9e061fdc100ec5c71288049e4daffedd4253733d.tar.gz
gsoc2013-epiphany-9e061fdc100ec5c71288049e4daffedd4253733d.tar.bz2
gsoc2013-epiphany-9e061fdc100ec5c71288049e4daffedd4253733d.tar.lz
gsoc2013-epiphany-9e061fdc100ec5c71288049e4daffedd4253733d.tar.xz
gsoc2013-epiphany-9e061fdc100ec5c71288049e4daffedd4253733d.tar.zst
gsoc2013-epiphany-9e061fdc100ec5c71288049e4daffedd4253733d.zip
Set and icon for the download window
2003-03-23 David Bordoley <bordoley@msu.edu> * data/art/Makefile.am: * data/art/epiphany-download.png: (new file from jimmac) * embed/downloader-view.c: Set and icon for the download window
-rw-r--r--ChangeLog7
-rw-r--r--data/art/Makefile.am1
-rw-r--r--data/art/epiphany-download.pngbin0 -> 440 bytes
-rw-r--r--embed/downloader-view.c8
4 files changed, 16 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 9a7dda7b2..3f629cf2c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2003-03-23 David Bordoley <bordoley@msu.edu>
+
+ * data/art/Makefile.am:
+ * data/art/epiphany-download.png: (new file from jimmac)
+ * embed/downloader-view.c:
+ Set and icon for the download window
+
2003-03-23 Duarte Loreto <happyguy_pt@hotmail.com>
* configure.in: Added "pt" to ALL_LINGUAS.
diff --git a/data/art/Makefile.am b/data/art/Makefile.am
index 4b94dc848..9dabf7874 100644
--- a/data/art/Makefile.am
+++ b/data/art/Makefile.am
@@ -5,6 +5,7 @@ art_DATA = \
epiphany-fullscreen.png \
epiphany-bookmarks.png \
epiphany-entry.png \
+ epiphany-download.png \
epiphany-history.png \
epiphany-new-tab.png \
epiphany-viewsource.png \
diff --git a/data/art/epiphany-download.png b/data/art/epiphany-download.png
new file mode 100644
index 000000000..cf1945ca5
--- /dev/null
+++ b/data/art/epiphany-download.png
Binary files differ
diff --git a/embed/downloader-view.c b/embed/downloader-view.c
index 98868052a..1230b76f2 100644
--- a/embed/downloader-view.c
+++ b/embed/downloader-view.c
@@ -58,6 +58,7 @@ struct DownloaderViewPrivate
gboolean show_details;
/* Widgets */
+ GtkWidget *window;
GtkWidget *treeview;
GtkWidget *details_file;
GtkWidget *details_location;
@@ -101,6 +102,7 @@ typedef struct
enum
{
+ PROP_WINDOW,
PROP_TREEVIEW,
PROP_KEEP_OPEN,
PROP_DETAILS_FRAME,
@@ -120,6 +122,7 @@ enum
static const
EphyDialogProperty properties [] =
{
+ { PROP_WINDOW, "download_manager_dialog", NULL, PT_NORMAL, NULL},
{ PROP_TREEVIEW, "clist", NULL, PT_NORMAL, NULL },
{ PROP_KEEP_OPEN, "keep_open_check", CONF_DOWNLOADING_KEEP_OPEN, PT_NORMAL, NULL },
{ PROP_DETAILS_FRAME, "details_frame", NULL, PT_NORMAL, NULL },
@@ -706,6 +709,7 @@ downloader_view_build_ui (DownloaderView *dv)
GtkCellRenderer *renderer;
GtkTreeSelection *selection;
GtkWidget *details_table;
+ const char *icon_path;
EphyDialog *d = EPHY_DIALOG (dv);
ephy_dialog_construct (d,
@@ -714,6 +718,7 @@ downloader_view_build_ui (DownloaderView *dv)
"download_manager_dialog");
/* lookup needed widgets */
+ priv->window = ephy_dialog_get_control(d, PROP_WINDOW);
priv->treeview = ephy_dialog_get_control (d, PROP_TREEVIEW);
priv->details_status = ephy_dialog_get_control (d, PROP_DETAILS_STATUS);
priv->details_elapsed = ephy_dialog_get_control (d, PROP_DETAILS_ELAPSED);
@@ -804,6 +809,9 @@ downloader_view_build_ui (DownloaderView *dv)
G_CALLBACK (downloader_treeview_selection_changed_cb), dv);
priv->model = GTK_TREE_MODEL (liststore);
+
+ icon_path = ephy_file ("epiphany-download.png");
+ gtk_window_set_icon_from_file (GTK_WINDOW(priv->window), icon_path, NULL);
}
static void