[gwget] 2009-06-20 David Sedeño <david alderia com>
- From: David Sedeño Fernández <davidsf src gnome org>
- To: svn-commits-list gnome org
- Subject: [gwget] 2009-06-20 David Sedeño <david alderia com>
- Date: Sat, 20 Jun 2009 10:24:16 -0400 (EDT)
commit dc14cfb8de291416e68a3f586ce6d13456af98e2
Author: David Sedeño <david alderia com>
Date: Sat Jun 20 16:18:49 2009 +0200
2009-06-20 David Sedeño <david alderia com>
* data/gwget.ui: Redone the popup menu.
ChangeLog | 3 +-
data/gwget.ui | 105 ++++++++++++++++++++++++++++++++++++++++++++++++++++-
src/main_window.c | 2 +-
3 files changed, 107 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 4b1533d..fbd2390 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,7 +2,8 @@
* src/new_window.c: Use gtk_combo_box_get_active_text instead
of gtk_entry_get_text
- * data/gwget.ui: Redone the menuitems. Remove unused dialog3.
+ * data/gwget.ui: Redone the menuitems. Remove unused dialog3.
+ Redone the popup menu.
* src/main_window.c: Load correct file
* data/preferences.ui: Update with glade-3
diff --git a/data/gwget.ui b/data/gwget.ui
index ad32f4b..dc991d6 100644
--- a/data/gwget.ui
+++ b/data/gwget.ui
@@ -26,6 +26,7 @@
<object class="GtkImageMenuItem" id="Nuevo">
<property name="label">gtk-new</property>
<property name="visible">True</property>
+ <property name="use_underline">True</property>
<property name="use_stock">True</property>
<property name="accel_group">accelgroup1</property>
<property name="always_show_image">True</property>
@@ -61,7 +62,7 @@
</object>
</child>
<child>
- <object class="GtkImageMenuItem" id="imagemenuitem1">
+ <object class="GtkImageMenuItem" id="menuitem5">
<property name="label">gtk-quit</property>
<property name="visible">True</property>
<property name="use_underline">True</property>
@@ -335,6 +336,85 @@
</object>
<object class="GtkMenu" id="popup1">
<property name="visible">True</property>
+ <child>
+ <object class="GtkImageMenuItem" id="pause_download">
+ <property name="label" translatable="yes">Pause</property>
+ <property name="visible">True</property>
+ <property name="image">image7</property>
+ <property name="use_stock">False</property>
+ <signal name="activate" handler="on_popup_pause_button_clicked"/>
+ </object>
+ </child>
+ <child>
+ <object class="GtkImageMenuItem" id="continue_download">
+ <property name="label" translatable="yes">Continue</property>
+ <property name="visible">True</property>
+ <property name="image">image8</property>
+ <property name="use_stock">False</property>
+ <signal name="activate" handler="on_popup_continue_activate"/>
+ </object>
+ </child>
+ <child>
+ <object class="GtkSeparatorMenuItem" id="separatormenuitem1">
+ <property name="visible">True</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkImageMenuItem" id="open">
+ <property name="label" translatable="yes">Open</property>
+ <property name="visible">True</property>
+ <property name="tooltip_text" translatable="yes">Open file</property>
+ <property name="image">image9</property>
+ <property name="use_stock">False</property>
+ <signal name="activate" handler="on_open_download_activate"/>
+ </object>
+ </child>
+ <child>
+ <object class="GtkImageMenuItem" id="open_directory">
+ <property name="label" translatable="yes">Open directory</property>
+ <property name="visible">True</property>
+ <property name="tooltip_text" translatable="yes">Open target directory</property>
+ <property name="image">image10</property>
+ <property name="use_stock">False</property>
+ <signal name="activate" handler="on_open_directory_activate"/>
+ </object>
+ </child>
+ <child>
+ <object class="GtkSeparatorMenuItem" id="separatormenuitem2">
+ <property name="visible">True</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkImageMenuItem" id="remove">
+ <property name="label" translatable="yes">Remove from list</property>
+ <property name="visible">True</property>
+ <property name="image">image11</property>
+ <property name="use_stock">False</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkImageMenuItem" id="cancel_download">
+ <property name="label" translatable="yes">Cancel</property>
+ <property name="visible">True</property>
+ <property name="image">image12</property>
+ <property name="use_stock">False</property>
+ <signal name="activate" handler="on_cancel_download_activate" after="yes"/>
+ </object>
+ </child>
+ <child>
+ <object class="GtkSeparatorMenuItem" id="separatormenuitem3">
+ <property name="visible">True</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkImageMenuItem" id="imagemenuitem1">
+ <property name="label">gtk-properties</property>
+ <property name="visible">True</property>
+ <property name="use_underline">True</property>
+ <property name="use_stock">True</property>
+ <signal name="activate" handler="on_properties_activate"/>
+ </object>
+ </child>
</object>
<object class="GtkDialog" id="dialog2">
<property name="border_width">5</property>
@@ -965,6 +1045,29 @@
</child>
</object>
<object class="GtkAccelGroup" id="accelgroup1"/>
+ <object class="GtkImage" id="image7">
+ <property name="visible">True</property>
+ <property name="stock">gtk-stop</property>
+ </object>
+ <object class="GtkImage" id="image8">
+ <property name="visible">True</property>
+ <property name="stock">gtk-missing-image</property>
+ </object>
+ <object class="GtkImage" id="image9">
+ <property name="visible">True</property>
+ </object>
+ <object class="GtkImage" id="image10">
+ <property name="visible">True</property>
+ <property name="stock">gtk-open</property>
+ </object>
+ <object class="GtkImage" id="image11">
+ <property name="visible">True</property>
+ <property name="stock">gtk-remove</property>
+ </object>
+ <object class="GtkImage" id="image12">
+ <property name="visible">True</property>
+ <property name="stock">gtk-cancel</property>
+ </object>
<object class="GtkImage" id="image1">
<property name="visible">True</property>
<property name="stock">gtk-refresh</property>
diff --git a/src/main_window.c b/src/main_window.c
index d53d0e9..afefa66 100644
--- a/src/main_window.c
+++ b/src/main_window.c
@@ -542,7 +542,7 @@ on_gwget_drag_received (GtkWidget * widget, GdkDragContext * context, int x,
drop_ok = FALSE;
if (dnd_type==TARGET_URI_LIST) {
- uris = g_uri_list_extract_uris (seldata->data);
+ uris = g_uri_list_extract_uris ((gchar *)seldata->data);
for (uri=uris[0]; uri != NULL; uri++) {
files = g_list_prepend (files, uri);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]