aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2006-07-28 01:49:43 +0000
committerJason Woodward2006-07-28 01:49:43 +0000
commitf6f8cd1da93dff4a0dbf856e259c4bd9d180b7d3 (patch)
tree65ad4959b29140e4ac0ffa16e0cf3f6616f8fcea
parent85cc223e55ae6c7367f6e48c510669e9fc945407 (diff)
downloadgslapt-f6f8cd1da93dff4a0dbf856e259c4bd9d180b7d3.tar.gz
added "Mark Obsolete" option
-rw-r--r--ChangeLog1
-rw-r--r--configure.in2
-rw-r--r--gslapt.glade51
-rw-r--r--po/bg.po8
-rw-r--r--po/de.po10
-rw-r--r--po/en.po10
-rw-r--r--po/es.po10
-rw-r--r--po/gslapt.pot8
-rw-r--r--po/id.po10
-rw-r--r--po/it.po10
-rw-r--r--po/ja.po8
-rw-r--r--po/nl.po10
-rw-r--r--po/pl.po10
-rw-r--r--po/pt.po10
-rw-r--r--po/pt_BR.po10
-rw-r--r--po/ru.po10
-rw-r--r--po/sk.po10
-rw-r--r--po/sv.po8
-rw-r--r--po/uk.po10
-rw-r--r--po/vi.po10
-rw-r--r--po/zh_CN.po8
-rw-r--r--slack-required2
-rw-r--r--src/callbacks.c89
-rw-r--r--src/callbacks.h2
-rw-r--r--src/interface.c177
25 files changed, 344 insertions, 150 deletions
diff --git a/ChangeLog b/ChangeLog
index 88dac0d..66afd77 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
0.3.14 Jul 27, 2006
+ * added 'Mark Obsolete' option
* removed redundant 'Installing packages' status message that stuck around
* added "View Marked Packages" option
* german updates by Manfred
diff --git a/configure.in b/configure.in
index b0e0eef..014b283 100644
--- a/configure.in
+++ b/configure.in
@@ -20,7 +20,7 @@ AC_CHECK_HEADER(curl/curl.h, [], [AC_MSG_ERROR(libcurl headers are missing)])
AC_CHECK_HEADER(slapt.h, [], [AC_MSG_ERROR(libslapt headers are missing)])
AC_CHECK_LIB(z,gzopen, [LIBS="$LIBS -lz"], [AC_MSG_ERROR(libz is missing)])
AC_CHECK_LIB(curl,curl_global_init, [LIBS="$LIBS `curl-config --libs`"], [AC_MSG_ERROR(curl libs are missing)])
-AC_CHECK_LIB(slapt,slapt_get_pkg_changelog, [], [AC_MSG_ERROR(libslapt 0.9.11c or greater is required)])
+AC_CHECK_LIB(slapt,slapt_get_obsolete_pkgs, [], [AC_MSG_ERROR(libslapt 0.9.11e or greater is required)])
LIBS="$LIBS -lglib-2.0 -lgthread-2.0"
pkg_modules="gtk+-2.0 >= 2.4.0"
diff --git a/gslapt.glade b/gslapt.glade
index d35466a..1ccae26 100644
--- a/gslapt.glade
+++ b/gslapt.glade
@@ -834,7 +834,7 @@
<accelerator key="y" modifiers="GDK_CONTROL_MASK" signal="activate"/>
<child internal-child="image">
- <widget class="GtkImage" id="image1601">
+ <widget class="GtkImage" id="image1676">
<property name="visible">True</property>
<property name="stock">gtk-refresh</property>
<property name="icon_size">1</property>
@@ -857,7 +857,7 @@
<accelerator key="a" modifiers="GDK_CONTROL_MASK" signal="activate"/>
<child internal-child="image">
- <widget class="GtkImage" id="image1602">
+ <widget class="GtkImage" id="image1677">
<property name="visible">True</property>
<property name="stock">gtk-go-up</property>
<property name="icon_size">1</property>
@@ -871,6 +871,29 @@
</child>
<child>
+ <widget class="GtkImageMenuItem" id="mark_obsolete1">
+ <property name="visible">True</property>
+ <property name="tooltip" translatable="yes">Mark all obsolete packages</property>
+ <property name="label" translatable="yes">Mark Obsolete</property>
+ <property name="use_underline">True</property>
+ <signal name="activate" handler="mark_obsolete_packages" last_modification_time="Fri, 28 Jul 2006 01:13:48 GMT"/>
+ <accelerator key="o" modifiers="GDK_CONTROL_MASK" signal="activate"/>
+
+ <child internal-child="image">
+ <widget class="GtkImage" id="image1678">
+ <property name="visible">True</property>
+ <property name="stock">gtk-remove</property>
+ <property name="icon_size">1</property>
+ <property name="xalign">0.5</property>
+ <property name="yalign">0.5</property>
+ <property name="xpad">0</property>
+ <property name="ypad">0</property>
+ </widget>
+ </child>
+ </widget>
+ </child>
+
+ <child>
<widget class="GtkImageMenuItem" id="execute1">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Execute all scheduled actions in current transaction</property>
@@ -880,7 +903,7 @@
<accelerator key="Return" modifiers="GDK_CONTROL_MASK" signal="activate"/>
<child internal-child="image">
- <widget class="GtkImage" id="image1603">
+ <widget class="GtkImage" id="image1679">
<property name="visible">True</property>
<property name="stock">gtk-apply</property>
<property name="icon_size">1</property>
@@ -926,12 +949,12 @@
<property name="visible">True</property>
<property name="label" translatable="yes">Unmark All</property>
<property name="use_underline">True</property>
- <signal name="activate" handler="unmark_all_activate" last_modification_time="Fri, 05 Aug 2005 16:40:24 GMT"/>
<signal name="activate" handler="unmark_all_activate" last_modification_time="Fri, 05 Aug 2005 16:42:40 GMT"/>
+ <signal name="activate" handler="unmark_all_activate" last_modification_time="Fri, 05 Aug 2005 16:40:24 GMT"/>
<accelerator key="z" modifiers="GDK_CONTROL_MASK" signal="activate"/>
<child internal-child="image">
- <widget class="GtkImage" id="image1604">
+ <widget class="GtkImage" id="image1680">
<property name="visible">True</property>
<property name="stock">gtk-undo</property>
<property name="icon_size">1</property>
@@ -959,7 +982,7 @@
<accelerator key="p" modifiers="GDK_CONTROL_MASK" signal="activate"/>
<child internal-child="image">
- <widget class="GtkImage" id="image1605">
+ <widget class="GtkImage" id="image1681">
<property name="visible">True</property>
<property name="stock">gtk-preferences</property>
<property name="icon_size">1</property>
@@ -1058,7 +1081,7 @@
<accelerator key="n" modifiers="GDK_CONTROL_MASK" signal="activate"/>
<child internal-child="image">
- <widget class="GtkImage" id="image1606">
+ <widget class="GtkImage" id="image1682">
<property name="visible">True</property>
<property name="pixbuf">pkg_action_available.png</property>
<property name="xalign">0.5</property>
@@ -1079,7 +1102,7 @@
<accelerator key="i" modifiers="GDK_CONTROL_MASK" signal="activate"/>
<child internal-child="image">
- <widget class="GtkImage" id="image1607">
+ <widget class="GtkImage" id="image1683">
<property name="visible">True</property>
<property name="pixbuf">pkg_action_install.png</property>
<property name="xalign">0.5</property>
@@ -1100,7 +1123,7 @@
<accelerator key="e" modifiers="GDK_CONTROL_MASK" signal="activate"/>
<child internal-child="image">
- <widget class="GtkImage" id="image1608">
+ <widget class="GtkImage" id="image1684">
<property name="visible">True</property>
<property name="pixbuf">pkg_action_reinstall.png</property>
<property name="xalign">0.5</property>
@@ -1121,7 +1144,7 @@
<accelerator key="u" modifiers="GDK_CONTROL_MASK" signal="activate"/>
<child internal-child="image">
- <widget class="GtkImage" id="image1609">
+ <widget class="GtkImage" id="image1685">
<property name="visible">True</property>
<property name="pixbuf">pkg_action_upgrade.png</property>
<property name="xalign">0.5</property>
@@ -1142,7 +1165,7 @@
<accelerator key="d" modifiers="GDK_CONTROL_MASK" signal="activate"/>
<child internal-child="image">
- <widget class="GtkImage" id="image1610">
+ <widget class="GtkImage" id="image1686">
<property name="visible">True</property>
<property name="pixbuf">pkg_action_downgrade.png</property>
<property name="xalign">0.5</property>
@@ -1163,7 +1186,7 @@
<accelerator key="r" modifiers="GDK_CONTROL_MASK" signal="activate"/>
<child internal-child="image">
- <widget class="GtkImage" id="image1611">
+ <widget class="GtkImage" id="image1687">
<property name="visible">True</property>
<property name="pixbuf">pkg_action_remove.png</property>
<property name="xalign">0.5</property>
@@ -1196,7 +1219,7 @@
<signal name="activate" handler="open_icon_legend" last_modification_time="Wed, 01 Jun 2005 03:20:34 GMT"/>
<child internal-child="image">
- <widget class="GtkImage" id="image1612">
+ <widget class="GtkImage" id="image1688">
<property name="visible">True</property>
<property name="stock">gtk-dialog-info</property>
<property name="icon_size">1</property>
@@ -1217,7 +1240,7 @@
<signal name="activate" handler="open_about" last_modification_time="Sat, 05 Feb 2005 20:48:31 GMT"/>
<child internal-child="image">
- <widget class="GtkImage" id="image1613">
+ <widget class="GtkImage" id="image1689">
<property name="visible">True</property>
<property name="stock">gtk-about</property>
<property name="icon_size">1</property>
diff --git a/po/bg.po b/po/bg.po
index 87f4f69..253a490 100644
--- a/po/bg.po
+++ b/po/bg.po
@@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: 0.3.14\n"
"Report-Msgid-Bugs-To: slapt-get-devel@software.jaos.org\n"
"POT-Creation-Date: 2005-02-26 22:25-0500\n"
-"PO-Revision-Date: 2006-06-18 17:00+0500\n"
+"PO-Revision-Date: 2006-07-28 21:45+0500\n"
"Last-Translator: Victor Keranov <victor_keranov@mail.bg>\n"
"Language-Team: slapt-get-devel <slapt-get-devel@software.jaos.org>\n"
"MIME-Version: 1.0\n"
@@ -472,3 +472,9 @@ msgstr "Marked"
msgid "View Marked Packages"
msgstr "View Marked Packages"
+msgid "Mark Obsolete"
+msgstr "Mark Obsolete"
+
+msgid "Mark all obsolete packages"
+msgstr "Mark all obsolete packages"
+
diff --git a/po/de.po b/po/de.po
index ed04139..7d55c15 100644
--- a/po/de.po
+++ b/po/de.po
@@ -2,14 +2,14 @@
# Copyright (C) 2005 Sebastian Jauch, Manfred Mueller
# This file is distributed under the same license as the gslapt package.
# Sebastian Jauch <stellarboy653-minislack@yahoo.de>, 2005
-# Manfred Mueller <linux@nass-ek.de>, 2005
+# Manfred Mueller <linux@nass-ek.de>, 2005, 2006
#
msgid ""
msgstr ""
"Project-Id-Version: 0.3.14\n"
"Report-Msgid-Bugs-To: slapt-get-devel@software.jaos.org\n"
"POT-Creation-Date: 2005-02-26 22:25-0500\n"
-"PO-Revision-Date: 2006-06-19 14:38+0100\n"
+"PO-Revision-Date: 2006-07-28 21:45+0500\n"
"Last-Translator: Manfred Mueller <nekdesk@nekdesk.de>\n"
"Language-Team: slapt-get-devel <slapt-get-devel@software.jaos.org>\n"
"MIME-Version: 1.0\n"
@@ -468,3 +468,9 @@ msgstr "Markierte Pakete anzeigen"
msgid "View Marked Packages"
msgstr "Nur markierte Pakete anzeigen"
+msgid "Mark Obsolete"
+msgstr "Mark Obsolete"
+
+msgid "Mark all obsolete packages"
+msgstr "Mark all obsolete packages"
+
diff --git a/po/en.po b/po/en.po
index e7ebf59..5c14bad 100644
--- a/po/en.po
+++ b/po/en.po
@@ -1,14 +1,14 @@
# english translation for gslapt
# Copyright (C) 2005 Jason Woodward
# This file is distributed under the same license as the gslapt package.
-# FIRST AUTHOR Jason Woodward <woodwardj@jaos.org>, 2005.
+# FIRST AUTHOR Jason Woodward <woodwardj@jaos.org>, 2005, 2006
#
msgid ""
msgstr ""
"Project-Id-Version: 0.3.14\n"
"Report-Msgid-Bugs-To: slapt-get-devel@software.jaos.org\n"
"POT-Creation-Date: 2005-02-20 16:24-0500\n"
-"PO-Revision-Date: 2006-06-18 17:00+0500\n"
+"PO-Revision-Date: 2006-07-28 21:45+0500\n"
"Last-Translator: Jason Woodward <woodwardj@jaos.org>\n"
"Language-Team: slapt-get-devel <slapt-get-devel@software.jaos.org>\n"
"MIME-Version: 1.0\n"
@@ -467,3 +467,9 @@ msgstr "Marked"
msgid "View Marked Packages"
msgstr "View Marked Packages"
+msgid "Mark Obsolete"
+msgstr "Mark Obsolete"
+
+msgid "Mark all obsolete packages"
+msgstr "Mark all obsolete packages"
+
diff --git a/po/es.po b/po/es.po
index 0edfaa8..b8db12b 100644
--- a/po/es.po
+++ b/po/es.po
@@ -1,14 +1,14 @@
# Plantilla de traduccion Gslapt
# Copyright (C) 2005 Jason Woodward
# Este fichero es distribuido bajo la misma licencia que el paquete gslapt.
-# PRIMER AUTOR Manuel Barallobre (BARA) <bbara@ya.com>, 2005.
+# PRIMER AUTOR Manuel Barallobre (BARA) <bbara@ya.com>, 2005, 2006
#
msgid ""
msgstr ""
"Project-Id-Version: 0.3.14\n"
"Report-Msgid-Bugs-To: slapt-get-devel@software.jaos.org\n"
"POT-Creation-Date: 2005-02-26 22:25-0500\n"
-"PO-Revision-Date: 2006-06-18 17:00+0500\n"
+"PO-Revision-Date: 2006-07-28 21:45+0500\n"
"Last-Translator: Manuel Barallobre (BARA) <bbara@ya.com>\n"
"Language-Team: slapt-get-devel <slapt-get-devel@software.jaos.org>\n"
"MIME-Version: 1.0\n"
@@ -467,3 +467,9 @@ msgstr "Marked"
msgid "View Marked Packages"
msgstr "View Marked Packages"
+msgid "Mark Obsolete"
+msgstr "Mark Obsolete"
+
+msgid "Mark all obsolete packages"
+msgstr "Mark all obsolete packages"
+
diff --git a/po/gslapt.pot b/po/gslapt.pot
index 791c2d5..6f950f4 100644
--- a/po/gslapt.pot
+++ b/po/gslapt.pot
@@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: 0.3.14\n"
"Report-Msgid-Bugs-To: slapt-get-devel@software.jaos.org\n"
"POT-Creation-Date: 2005-02-26 22:25-0500\n"
-"PO-Revision-Date: 2006-06-18 17:00+0500\n"
+"PO-Revision-Date: 2006-07-28 21:45+0500\n"
"Last-Translator: Jason Woodward <woodwardj@jaos.org>\n"
"Language-Team: slapt-get-devel <slapt-get-devel@software.jaos.org>\n"
"MIME-Version: 1.0\n"
@@ -474,3 +474,9 @@ msgstr ""
msgid "View Marked Packages"
msgstr ""
+msgid "Mark Obsolete"
+msgstr ""
+
+msgid "Mark all obsolete packages"
+msgstr ""
+
diff --git a/po/id.po b/po/id.po
index 022900d..c6f99f7 100644
--- a/po/id.po
+++ b/po/id.po
@@ -1,14 +1,14 @@
# Indonesian gslapt translation
# Copyright (C) 2005 Kemas Antonius
# This file is distributed under the same license as the gslapt package.
-# FIRST AUTHOR Kemas Antonius <kyantonius@kyantonius.com>, 2005.
+# FIRST AUTHOR Kemas Antonius <kyantonius@kyantonius.com>, 2005, 2006
#
msgid ""
msgstr ""
"Project-Id-Version: 0.3.14\n"
"Report-Msgid-Bugs-To: slapt-get-devel@software.jaos.org\n"
"POT-Creation-Date: 2005-02-26 22:25-0500\n"
-"PO-Revision-Date: 2006-06-18 17:00+0500\n"
+"PO-Revision-Date: 2006-07-28 21:45+0500\n"
"Last-Translator: Kemas Antonius <kyantonius@kyantonius.com>\n"
"Language-Team: slapt-get-devel <slapt-get-devel@software.jaos.org>\n"
"MIME-Version: 1.0\n"
@@ -472,3 +472,9 @@ msgstr "Marked"
msgid "View Marked Packages"
msgstr "View Marked Packages"
+msgid "Mark Obsolete"
+msgstr "Mark Obsolete"
+
+msgid "Mark all obsolete packages"
+msgstr "Mark all obsolete packages"
+
diff --git a/po/it.po b/po/it.po
index 8829b81..6430821 100644
--- a/po/it.po
+++ b/po/it.po
@@ -2,14 +2,14 @@
# translation of gslapt.po to italian
# Copyright (C) 2005 Fabio Varesano
# This file is distributed under the same license as the gslapt package.
-# FIRST AUTHOR Fabio Varesano <fvaresano@yahoo.it>, 2005.
+# FIRST AUTHOR Fabio Varesano <fvaresano@yahoo.it>, 2005, 2006
#
msgid ""
msgstr ""
"Project-Id-Version: 0.3.14\n"
"Report-Msgid-Bugs-To: slapt-get-devel@software.jaos.org\n"
"POT-Creation-Date: 2005-07-28 18:01+0000\n"
-"PO-Revision-Date: 2006-06-18 17:00+0500\n"
+"PO-Revision-Date: 2006-07-28 21:45+0500\n"
"Last-Translator: Fabio Varesano <fvaresano@yahoo.it>\n"
"Language-Team: slapt-get-devel <slapt-get-devel@software.jaos.org>\n"
"MIME-Version: 1.0\n"
@@ -476,3 +476,9 @@ msgstr "Marked"
msgid "View Marked Packages"
msgstr "View Marked Packages"
+msgid "Mark Obsolete"
+msgstr "Mark Obsolete"
+
+msgid "Mark all obsolete packages"
+msgstr "Mark all obsolete packages"
+
diff --git a/po/ja.po b/po/ja.po
index a1e2d8c..5ff483e 100644
--- a/po/ja.po
+++ b/po/ja.po
@@ -9,7 +9,7 @@ msgstr ""
"Project-Id-Version: 0.3.14\n"
"Report-Msgid-Bugs-To: slapt-get-devel@software.jaos.org\n"
"POT-Creation-Date: 2006-03-07 20:26+0900\n"
-"PO-Revision-Date: 2006-06-18 17:00+0500\n"
+"PO-Revision-Date: 2006-07-28 21:45+0500\n"
"Last-Translator: JW <J_W@somewhere.c0.jp>\n"
"Language-Team: slapt-get-devel <slapt-get-devel@software.jaos.org>\n"
"MIME-Version: 1.0\n"
@@ -475,3 +475,9 @@ msgstr "Marked"
msgid "View Marked Packages"
msgstr "View Marked Packages"
+msgid "Mark Obsolete"
+msgstr "Mark Obsolete"
+
+msgid "Mark all obsolete packages"
+msgstr "Mark all obsolete packages"
+
diff --git a/po/nl.po b/po/nl.po
index f3bd42e..f61f15e 100644
--- a/po/nl.po
+++ b/po/nl.po
@@ -2,14 +2,14 @@
# Copyright (C) 2005 Jason Woodward
# This file is distributed under the same license as the gslapt package.
# FIRST AUTHOR Jason Woodward <woodwardj@jaos.org>, 2005.
-# Translated by Martijn Dekker <martijn@inlv.demon.nl> on 18 Aug 2005.
+# Translated by Martijn Dekker <martijn@inlv.demon.nl> on 18 Aug 2005, 2006
#
msgid ""
msgstr ""
"Project-Id-Version: 0.3.14\n"
"Report-Msgid-Bugs-To: slapt-get-devel@software.jaos.org\n"
"POT-Creation-Date: 2005-08-18 23:06+0200\n"
-"PO-Revision-Date: 2006-06-18 17:00+0500\n"
+"PO-Revision-Date: 2006-07-28 21:45+0500\n"
"Last-Translator: Martijn Dekker <martijn@inlv.demon.nl>\n"
"Language-Team: slapt-get-devel <slapt-get-devel@software.jaos.org>\n"
"MIME-Version: 1.0\n"
@@ -474,3 +474,9 @@ msgstr "Marked"
msgid "View Marked Packages"
msgstr "View Marked Packages"
+msgid "Mark Obsolete"
+msgstr "Mark Obsolete"
+
+msgid "Mark all obsolete packages"
+msgstr "Mark all obsolete packages"
+
diff --git a/po/pl.po b/po/pl.po
index b2f1a3b..607288f 100644
--- a/po/pl.po
+++ b/po/pl.po
@@ -1,14 +1,14 @@
# pl gslapt translation.
# Copyright (C) 2005 Piotr Simon
# This file is distributed under the same license as the gslapt package.
-# FIRST AUTHOR Piotr Simon <sajmon@tenboard.com>, 2005.
+# FIRST AUTHOR Piotr Simon <sajmon@tenboard.com>, 2005, 2006
#
msgid ""
msgstr ""
"Project-Id-Version: 0.3.14\n"
"Report-Msgid-Bugs-To: slapt-get-devel@software.jaos.org\n"
"POT-Creation-Date: 2005-02-17 14:52-0500\n"
-"PO-Revision-Date: 2006-06-19 06:33+0500\n"
+"PO-Revision-Date: 2006-07-28 21:45+0500\n"
"Last-Translator: Piotr Simon <sajmon@tenboard.com>\n"
"Language-Team: slapt-get-devel <slapt-get-devel@software.jaos.org>\n"
"MIME-Version: 1.0\n"
@@ -443,3 +443,9 @@ msgstr "Zamarkowane"
msgid "View Marked Packages"
msgstr "Poka¿ zamarkowane pakiety"
+msgid "Mark Obsolete"
+msgstr "Mark Obsolete"
+
+msgid "Mark all obsolete packages"
+msgstr "Mark all obsolete packages"
+
diff --git a/po/pt.po b/po/pt.po
index e8d2a67..e4c72fd 100644
--- a/po/pt.po
+++ b/po/pt.po
@@ -1,14 +1,14 @@
# pt translation for gslapt
# Copyright (C) 2005 Pedro Pinto
# This file is distributed under the same license as the gslapt package.
-# FIRST AUTHOR <pedro_nuno_pn@zmail.pt>, 2005.
+# FIRST AUTHOR <pedro_nuno_pn@zmail.pt>, 2005, 2006
#
msgid ""
msgstr ""
"Project-Id-Version: 0.3.14\n"
"Report-Msgid-Bugs-To: slapt-get-devel@software.jaos.org\n"
"POT-Creation-Date: 2005-05-06 11:10-0500\n"
-"PO-Revision-Date: 2006-06-18 17:00+0500\n"
+"PO-Revision-Date: 2006-07-28 21:45+0500\n"
"Last-Translator: Pedro Pinto aka _PN_boy <pedro_nuno_pn@zmail.pt>\n"
"Language-Team: slapt-get devel <slapt-get-devel@software.jaos.org>\n"
"MIME-Version: 1.0\n"
@@ -463,3 +463,9 @@ msgstr "Marked"
msgid "View Marked Packages"
msgstr "View Marked Packages"
+msgid "Mark Obsolete"
+msgstr "Mark Obsolete"
+
+msgid "Mark all obsolete packages"
+msgstr "Mark all obsolete packages"
+
diff --git a/po/pt_BR.po b/po/pt_BR.po
index cfb04c9..5321737 100644
--- a/po/pt_BR.po
+++ b/po/pt_BR.po
@@ -1,14 +1,14 @@
# Brazillian gslapt translation
# Copyright (C) 2005 Frederico Henrique Gonçalves Lima
# This file is distributed under the same license as the gslapt package.
-# FIRST AUTHOR Frederico Henrique Gonçalves Lima <fredhgl@yahoo.com.br>, 2005.
+# FIRST AUTHOR Frederico Henrique Gonçalves Lima <fredhgl@yahoo.com.br>, 2005, 2006
#
msgid ""
msgstr ""
"Project-Id-Version: 0.3.14\n"
"Report-Msgid-Bugs-To: slapt-get-devel@software.jaos.org\n"
"POT-Creation-Date: 2005-02-26 22:25-0500\n"
-"PO-Revision-Date: 2006-06-18 17:00+0500\n"
+"PO-Revision-Date: 2006-07-28 21:45+0500\n"
"Last-Translator: Frederico Henrique Gonçalves Lima <fredhgl@yahoo.com.br>\n"
"Language-Team: slapt-get-devel <slapt-get-devel@software.jaos.org>\n"
"MIME-Version: 1.0\n"
@@ -473,3 +473,9 @@ msgstr "Marked"
msgid "View Marked Packages"
msgstr "View Marked Packages"
+msgid "Mark Obsolete"
+msgstr "Mark Obsolete"
+
+msgid "Mark all obsolete packages"
+msgstr "Mark all obsolete packages"
+
diff --git a/po/ru.po b/po/ru.po
index 233b397..2147bca 100644
--- a/po/ru.po
+++ b/po/ru.po
@@ -1,7 +1,7 @@
# ru gslapt translation.
# Copyright (C) 2005 sin
# This file is distributed under the same license as the gslapt package.
-# FIRST AUTHOR sin <digitalhunger@gmail.com>, 2005.
+# FIRST AUTHOR sin <digitalhunger@gmail.com>, 2005, 2006
#
msgid ""
@@ -9,7 +9,7 @@ msgstr ""
"Project-Id-Version: 0.3.14\n"
"Report-Msgid-Bugs-To: slapt-get-devel@software.jaos.org\n"
"POT-Creation-Date: 2005-09-08 00:54\n"
-"PO-Revision-Date: 2006-06-18 17:00+0500\n"
+"PO-Revision-Date: 2006-07-28 21:45+0500\n"
"Last-Translator: sin <digitalhunger@gmail.com>\n"
"Language-Team: DeepStyle team <deep@deepstyle.org.ua>\n"
"MIME-Version: 1.0\n"
@@ -438,3 +438,9 @@ msgstr "Marked"
msgid "View Marked Packages"
msgstr "View Marked Packages"
+msgid "Mark Obsolete"
+msgstr "Mark Obsolete"
+
+msgid "Mark all obsolete packages"
+msgstr "Mark all obsolete packages"
+
diff --git a/po/sk.po b/po/sk.po
index 19c1d3f..0742855 100644
--- a/po/sk.po
+++ b/po/sk.po
@@ -1,14 +1,14 @@
# slovak translation for gslapt
# Copyright (C) 2005 Jason Woodward
# This file is distributed under the same license as the gslapt package.
-# FIRST AUTHOR Erik Gyepes <depi@depi.sk>, 2005.
+# FIRST AUTHOR Erik Gyepes <depi@depi.sk>, 2005, 2006
#
msgid ""
msgstr ""
"Project-Id-Version: 0.3.14\n"
"Report-Msgid-Bugs-To: slapt-get-devel@software.jaos.org\n"
"POT-Creation-Date: 2005-06-23 21:28-0500\n"
-"PO-Revision-Date: 2006-06-18 17:00+0500\n"
+"PO-Revision-Date: 2006-07-28 21:45+0500\n"
"Last-Translator: Erik Gyepes <depi@depi.sk>\n"
"Language-Team: slapt-get-devel <slapt-get-devel@software.jaos.org>\n"
"MIME-Version: 1.0\n"
@@ -467,3 +467,9 @@ msgstr "Marked"
msgid "View Marked Packages"
msgstr "View Marked Packages"
+msgid "Mark Obsolete"
+msgstr "Mark Obsolete"
+
+msgid "Mark all obsolete packages"
+msgstr "Mark all obsolete packages"
+
diff --git a/po/sv.po b/po/sv.po
index 8274b9d..4fe86db 100644
--- a/po/sv.po
+++ b/po/sv.po
@@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: 0.3.14\n"
"Report-Msgid-Bugs-To: slapt-get-devel@software.jaos.org\n"
"POT-Creation-Date: 2005-02-26 22:25-0500\n"
-"PO-Revision-Date: 2006-06-18 17:00+0500\n"
+"PO-Revision-Date: 2006-07-28 21:45+0500\n"
"Last-Translator: Hakan Lindqvist <tfy00hlt@cs.umu.se>\n"
"Language-Team: slapt-get-devel <slapt-get-devel@software.jaos.org>\n"
"MIME-Version: 1.0\n"
@@ -467,3 +467,9 @@ msgstr "Marked"
msgid "View Marked Packages"
msgstr "View Marked Packages"
+msgid "Mark Obsolete"
+msgstr "Mark Obsolete"
+
+msgid "Mark all obsolete packages"
+msgstr "Mark all obsolete packages"
+
diff --git a/po/uk.po b/po/uk.po
index e0e7995..36d7f65 100644
--- a/po/uk.po
+++ b/po/uk.po
@@ -1,7 +1,7 @@
# uk gslapt translation.
# Copyright (C) 2005 sin
# This file is distributed under the same license as the gslapt package.
-# FIRST AUTHOR sin <digitalhunger@gmail.com>, 2005.
+# FIRST AUTHOR sin <digitalhunger@gmail.com>, 2005, 2006
#
msgid ""
@@ -9,7 +9,7 @@ msgstr ""
"Project-Id-Version: 0.3.14\n"
"Report-Msgid-Bugs-To: slapt-get-devel@software.jaos.org\n"
"POT-Creation-Date: 2005-09-08 00:54\n"
-"PO-Revision-Date: 2006-06-18 17:00+0500\n"
+"PO-Revision-Date: 2006-07-28 21:45+0500\n"
"Last-Translator: sin <digitalhunger@gmail.com>\n"
"Language-Team: DeepStyle team <deep@deepstyle.org.ua>\n"
"MIME-Version: 1.0\n"
@@ -438,3 +438,9 @@ msgstr "Marked"
msgid "View Marked Packages"
msgstr "View Marked Packages"
+msgid "Mark Obsolete"
+msgstr "Mark Obsolete"
+
+msgid "Mark all obsolete packages"
+msgstr "Mark all obsolete packages"
+
diff --git a/po/vi.po b/po/vi.po
index ca18c71..ea659da 100644
--- a/po/vi.po
+++ b/po/vi.po
@@ -1,14 +1,14 @@
# vi gslapt translation
# Copyright (C) 2005 Vu Nguyen
# This file is distributed under the same license as the gslapt package.
-# FIRST AUTHOR Vu Nguyen <vncasper@yahoo.com>, 2005.
+# FIRST AUTHOR Vu Nguyen <vncasper@yahoo.com>, 2005, 2006
#
msgid ""
msgstr ""
"Project-Id-Version: 0.3.14\n"
"Report-Msgid-Bugs-To: slapt-get-devel@software.jaos.org\n"
"POT-Creation-Date: 2005-02-26 22:25-0500\n"
-"PO-Revision-Date: 2006-06-18 17:00+0500\n"
+"PO-Revision-Date: 2006-07-28 21:45+0500\n"
"Last-Translator: Nguyễn Văn Vũ <vncasper@yahoo.com>\n"
"Language-Team: gnome-vi <gnomevi-list@lists.sourceforge.net>\n"
"MIME-Version: 1.0\n"
@@ -467,3 +467,9 @@ msgstr "Marked"
msgid "View Marked Packages"
msgstr "View Marked Packages"
+msgid "Mark Obsolete"
+msgstr "Mark Obsolete"
+
+msgid "Mark all obsolete packages"
+msgstr "Mark all obsolete packages"
+
diff --git a/po/zh_CN.po b/po/zh_CN.po
index 6cdca6d..e959f2f 100644
--- a/po/zh_CN.po
+++ b/po/zh_CN.po
@@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: 0.3.14\n"
"Report-Msgid-Bugs-To: slapt-get-devel@software.jaos.org\n"
"POT-Creation-Date: 2005-02-26 22:25-0500\n"
-"PO-Revision-Date: 2006-06-18 17:00+0500\n"
+"PO-Revision-Date: 2006-07-28 21:45+0500\n"
"Last-Translator: Yang Jinsong <shannleon@gmail.com>\n"
"Language-Team: slapt-get-devel <slapt-get-devel@software.jaos.org>\n"
"MIME-Version: 1.0\n"
@@ -474,3 +474,9 @@ msgstr "Marked"
msgid "View Marked Packages"
msgstr "View Marked Packages"
+msgid "Mark Obsolete"
+msgstr "Mark Obsolete"
+
+msgid "Mark all obsolete packages"
+msgstr "Mark all obsolete packages"
+
diff --git a/slack-required b/slack-required
index 8f90e20..63d1140 100644
--- a/slack-required
+++ b/slack-required
@@ -6,4 +6,4 @@ x11 >= 6.7.0-i486-4
gtk+2 >= 2.4.10-i486-1
atk >= 1.6.1-i486-1
pango >= 1.4.0-i486-1
-slapt-get >= 0.9.11c-i386-1
+slapt-get >= 0.9.11e-i386-1
diff --git a/src/callbacks.c b/src/callbacks.c
index 4850ecf..8b8086a 100644
--- a/src/callbacks.c
+++ b/src/callbacks.c
@@ -87,6 +87,9 @@ static int set_iter_for_upgrade(GtkTreeModel *model, GtkTreeIter *iter,
static int set_iter_for_remove(GtkTreeModel *model, GtkTreeIter *iter,
slapt_pkg_info_t *pkg);
+static void set_busy_cursor (void);
+static void unset_busy_cursor (void);
+
void on_gslapt_destroy (GtkObject *object, gpointer user_data)
{
@@ -112,16 +115,12 @@ void update_callback (GtkObject *object, gpointer user_data)
void upgrade_callback (GtkObject *object, gpointer user_data)
{
- GdkCursor *c = gdk_cursor_new(GDK_WATCH);
- gdk_window_set_cursor(gslapt->window,c);
- gdk_cursor_destroy(c);
- gdk_flush();
+ set_busy_cursor();
mark_upgrade_packages();
if (trans->install_pkgs->pkg_count > 0 || trans->upgrade_pkgs->pkg_count > 0) {
set_execute_active();
}
- gdk_window_set_cursor(gslapt->window,NULL);
- gdk_flush();
+ unset_busy_cursor();
}
void execute_callback (GtkObject *object, gpointer user_data)
@@ -578,8 +577,7 @@ void build_package_treeviewlist (GtkWidget *treeview)
gtk_tree_view_set_model (GTK_TREE_VIEW(treeview),GTK_TREE_MODEL(package_model));
if (gslapt->window != NULL) {
- gdk_window_set_cursor(gslapt->window,NULL);
- gdk_flush();
+ unset_busy_cursor();
}
}
@@ -1010,7 +1008,7 @@ static void get_package_data (void)
global_config->sources->url[i]
);
- gint result = gtk_dialog_run(q);
+ gint result = gtk_dialog_run(GTK_DIALOG(q));
if (result == GTK_RESPONSE_YES) {
/* we'll disable this source and continue on */
continue_anyway = TRUE;
@@ -1211,21 +1209,13 @@ int gtk_progress_callback(void *data, double dltotal, double dlnow,
static void rebuild_treeviews (GtkWidget *current_window,gboolean reload)
{
GtkWidget *treeview;
- GdkCursor *c = gdk_cursor_new(GDK_WATCH);
GtkListStore *store;
GtkTreeModelFilter *filter_model;
GtkTreeModelSort *package_model;
const gchar *search_text = gtk_entry_get_text(
GTK_ENTRY(lookup_widget(gslapt,"search_entry")));
- if (current_window == NULL) {
- gdk_window_set_cursor(gslapt->window,c);
- } else {
- gdk_window_set_cursor(current_window->window,c);
- gdk_window_set_cursor(gslapt->window,c);
- }
- gdk_cursor_destroy(c);
- gdk_flush();
+ set_busy_cursor();
if (reload == TRUE) {
struct slapt_pkg_list *all_ptr,*installed_ptr;
@@ -1312,7 +1302,6 @@ static void lhandle_transaction (GtkWidget *w)
GtkCheckButton *dl_only_checkbutton;
gboolean dl_only = FALSE;
struct slapt_pkg_list *installed_ptr;
- GdkCursor *c;
gdk_threads_enter();
lock_toolbar_buttons();
@@ -1369,13 +1358,10 @@ static void lhandle_transaction (GtkWidget *w)
}
/* set busy cursor */
- c = gdk_cursor_new(GDK_WATCH);
gdk_threads_enter();
clear_execute_active();
- gdk_window_set_cursor(gslapt->window,c);
- gdk_flush();
+ set_busy_cursor();
gdk_threads_leave();
- gdk_cursor_destroy(c);
slapt_free_transaction(trans);
trans = slapt_init_transaction();
@@ -1389,8 +1375,7 @@ static void lhandle_transaction (GtkWidget *w)
rebuild_treeviews(NULL,FALSE);
rebuild_package_action_menu();
unlock_toolbar_buttons();
- gdk_window_set_cursor(gslapt->window,NULL);
- gdk_flush();
+ unset_busy_cursor();
notify((gchar *)_("Completed actions"),(gchar *)_("Successfully executed all actions."));
gdk_threads_leave();
@@ -3354,3 +3339,57 @@ static int set_iter_for_remove(GtkTreeModel *model, GtkTreeIter *iter,
g_free(status);
}
+
+void mark_obsolete_packages (GtkMenuItem *menuitem, gpointer user_data)
+{
+ GtkTreeIter iter;
+ GtkTreeModelFilter *filter_model;
+ GtkTreeModel *base_model;
+ GtkTreeModelSort *package_model;
+ GtkTreeView *treeview;
+
+ set_busy_cursor();
+
+ struct slapt_pkg_list *obsolete = slapt_get_obsolete_pkgs(
+ global_config, all, installed);
+ guint i;
+
+ treeview = GTK_TREE_VIEW(lookup_widget(gslapt,"pkg_listing_treeview"));
+ package_model = GTK_TREE_MODEL_SORT(gtk_tree_view_get_model(treeview));
+
+ filter_model = GTK_TREE_MODEL_FILTER(gtk_tree_model_sort_get_model(GTK_TREE_MODEL_SORT(package_model)));
+ base_model = GTK_TREE_MODEL(gtk_tree_model_filter_get_model(GTK_TREE_MODEL_FILTER(filter_model)));
+
+ for (i = 0; i < obsolete->pkg_count; ++i) {
+
+ if (slapt_is_excluded(global_config, obsolete->pkgs[i]) == 1) {
+
+ slapt_add_exclude_to_transaction(trans, obsolete->pkgs[i]);
+
+ } else {
+
+ set_iter_to_pkg(base_model, &iter, obsolete->pkgs[i]);
+ set_iter_for_remove(base_model, &iter, obsolete->pkgs[i]);
+ set_execute_active();
+
+ }
+
+ }
+
+ unset_busy_cursor();
+}
+
+static void set_busy_cursor (void)
+{
+ GdkCursor *c = gdk_cursor_new(GDK_WATCH);
+ gdk_window_set_cursor(gslapt->window,c);
+ gdk_cursor_destroy(c);
+ gdk_flush();
+}
+
+static void unset_busy_cursor (void)
+{
+ gdk_window_set_cursor(gslapt->window,NULL);
+ gdk_flush();
+}
+
diff --git a/src/callbacks.h b/src/callbacks.h
index 1e2a261..99d5eca 100644
--- a/src/callbacks.h
+++ b/src/callbacks.h
@@ -96,3 +96,5 @@ void view_available_packages (GtkMenuItem *menuitem, gpointer user_data);
void view_installed_packages (GtkMenuItem *menuitem, gpointer user_data);
void view_marked_packages (GtkMenuItem *menuitem, gpointer user_data);
+
+void mark_obsolete_packages (GtkMenuItem *menuitem, gpointer user_data);
diff --git a/src/interface.c b/src/interface.c
index 12f355d..620971f 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -444,20 +444,22 @@ create_gslapt (void)
GtkWidget *actions2;
GtkWidget *actions2_menu;
GtkWidget *update1;
- GtkWidget *image1601;
+ GtkWidget *image1676;
GtkWidget *mark_all_upgrades2;
- GtkWidget *image1602;
+ GtkWidget *image1677;
+ GtkWidget *mark_obsolete1;
+ GtkWidget *image1678;
GtkWidget *execute1;
- GtkWidget *image1603;
+ GtkWidget *image1679;
GtkWidget *separator2;
GtkWidget *quit;
GtkWidget *edit1;
GtkWidget *edit1_menu;
GtkWidget *unmark_all1;
- GtkWidget *image1604;
+ GtkWidget *image1680;
GtkWidget *separator1;
GtkWidget *preferences2;
- GtkWidget *image1605;
+ GtkWidget *image1681;
GtkWidget *view1;
GtkWidget *view1_menu;
GSList *view_all_packages_menu_group = NULL;
@@ -468,23 +470,23 @@ create_gslapt (void)
GtkWidget *package1;
GtkWidget *package1_menu;
GtkWidget *unmark1;
- GtkWidget *image1606;
+ GtkWidget *image1682;
GtkWidget *install1;
- GtkWidget *image1607;
+ GtkWidget *image1683;
GtkWidget *re_install1;
- GtkWidget *image1608;
+ GtkWidget *image1684;
GtkWidget *upgrade1;
- GtkWidget *image1609;
+ GtkWidget *image1685;
GtkWidget *downgrade1;
- GtkWidget *image1610;
+ GtkWidget *image1686;
GtkWidget *remove1;
- GtkWidget *image1611;
+ GtkWidget *image1687;
GtkWidget *help3;
GtkWidget *help3_menu;
GtkWidget *icon_legend1;
- GtkWidget *image1612;
+ GtkWidget *image1688;
GtkWidget *about3;
- GtkWidget *image1613;
+ GtkWidget *image1689;
GtkWidget *action_toolbar;
GtkIconSize tmp_toolbar_icon_size;
GtkWidget *tmp_image;
@@ -600,10 +602,10 @@ create_gslapt (void)
GDK_y, (GdkModifierType) GDK_CONTROL_MASK,
GTK_ACCEL_VISIBLE);
- image1601 = gtk_image_new_from_stock ("gtk-refresh", GTK_ICON_SIZE_MENU);
- gtk_widget_set_name (image1601, "image1601");
- gtk_widget_show (image1601);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (update1), image1601);
+ image1676 = gtk_image_new_from_stock ("gtk-refresh", GTK_ICON_SIZE_MENU);
+ gtk_widget_set_name (image1676, "image1676");
+ gtk_widget_show (image1676);
+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (update1), image1676);
mark_all_upgrades2 = gtk_image_menu_item_new_with_mnemonic (_("Mark All Upgrades"));
gtk_widget_set_name (mark_all_upgrades2, "mark_all_upgrades2");
@@ -614,10 +616,24 @@ create_gslapt (void)
GDK_a, (GdkModifierType) GDK_CONTROL_MASK,
GTK_ACCEL_VISIBLE);
- image1602 = gtk_image_new_from_stock ("gtk-go-up", GTK_ICON_SIZE_MENU);
- gtk_widget_set_name (image1602, "image1602");
- gtk_widget_show (image1602);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (mark_all_upgrades2), image1602);
+ image1677 = gtk_image_new_from_stock ("gtk-go-up", GTK_ICON_SIZE_MENU);
+ gtk_widget_set_name (image1677, "image1677");
+ gtk_widget_show (image1677);
+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (mark_all_upgrades2), image1677);
+
+ mark_obsolete1 = gtk_image_menu_item_new_with_mnemonic (_("Mark Obsolete"));
+ gtk_widget_set_name (mark_obsolete1, "mark_obsolete1");
+ gtk_widget_show (mark_obsolete1);
+ gtk_container_add (GTK_CONTAINER (actions2_menu), mark_obsolete1);
+ gtk_tooltips_set_tip (tooltips, mark_obsolete1, _("Mark all obsolete packages"), NULL);
+ gtk_widget_add_accelerator (mark_obsolete1, "activate", accel_group,
+ GDK_o, (GdkModifierType) GDK_CONTROL_MASK,
+ GTK_ACCEL_VISIBLE);
+
+ image1678 = gtk_image_new_from_stock ("gtk-remove", GTK_ICON_SIZE_MENU);
+ gtk_widget_set_name (image1678, "image1678");
+ gtk_widget_show (image1678);
+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (mark_obsolete1), image1678);
execute1 = gtk_image_menu_item_new_with_mnemonic (_("Execute"));
gtk_widget_set_name (execute1, "execute1");
@@ -628,10 +644,10 @@ create_gslapt (void)
GDK_Return, (GdkModifierType) GDK_CONTROL_MASK,
GTK_ACCEL_VISIBLE);
- image1603 = gtk_image_new_from_stock ("gtk-apply", GTK_ICON_SIZE_MENU);
- gtk_widget_set_name (image1603, "image1603");
- gtk_widget_show (image1603);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (execute1), image1603);
+ image1679 = gtk_image_new_from_stock ("gtk-apply", GTK_ICON_SIZE_MENU);
+ gtk_widget_set_name (image1679, "image1679");
+ gtk_widget_show (image1679);
+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (execute1), image1679);
separator2 = gtk_separator_menu_item_new ();
gtk_widget_set_name (separator2, "separator2");
@@ -661,10 +677,10 @@ create_gslapt (void)
GDK_z, (GdkModifierType) GDK_CONTROL_MASK,
GTK_ACCEL_VISIBLE);
- image1604 = gtk_image_new_from_stock ("gtk-undo", GTK_ICON_SIZE_MENU);
- gtk_widget_set_name (image1604, "image1604");
- gtk_widget_show (image1604);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (unmark_all1), image1604);
+ image1680 = gtk_image_new_from_stock ("gtk-undo", GTK_ICON_SIZE_MENU);
+ gtk_widget_set_name (image1680, "image1680");
+ gtk_widget_show (image1680);
+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (unmark_all1), image1680);
separator1 = gtk_separator_menu_item_new ();
gtk_widget_set_name (separator1, "separator1");
@@ -680,10 +696,10 @@ create_gslapt (void)
GDK_p, (GdkModifierType) GDK_CONTROL_MASK,
GTK_ACCEL_VISIBLE);
- image1605 = gtk_image_new_from_stock ("gtk-preferences", GTK_ICON_SIZE_MENU);
- gtk_widget_set_name (image1605, "image1605");
- gtk_widget_show (image1605);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (preferences2), image1605);
+ image1681 = gtk_image_new_from_stock ("gtk-preferences", GTK_ICON_SIZE_MENU);
+ gtk_widget_set_name (image1681, "image1681");
+ gtk_widget_show (image1681);
+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (preferences2), image1681);
view1 = gtk_menu_item_new_with_mnemonic (_("_View"));
gtk_widget_set_name (view1, "view1");
@@ -753,10 +769,10 @@ create_gslapt (void)
GDK_n, (GdkModifierType) GDK_CONTROL_MASK,
GTK_ACCEL_VISIBLE);
- image1606 = create_pixmap (gslapt, "pkg_action_available.png");
- gtk_widget_set_name (image1606, "image1606");
- gtk_widget_show (image1606);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (unmark1), image1606);
+ image1682 = create_pixmap (gslapt, "pkg_action_available.png");
+ gtk_widget_set_name (image1682, "image1682");
+ gtk_widget_show (image1682);
+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (unmark1), image1682);
install1 = gtk_image_menu_item_new_with_mnemonic (_("Install"));
gtk_widget_set_name (install1, "install1");
@@ -767,10 +783,10 @@ create_gslapt (void)
GDK_i, (GdkModifierType) GDK_CONTROL_MASK,
GTK_ACCEL_VISIBLE);
- image1607 = create_pixmap (gslapt, "pkg_action_install.png");
- gtk_widget_set_name (image1607, "image1607");
- gtk_widget_show (image1607);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (install1), image1607);
+ image1683 = create_pixmap (gslapt, "pkg_action_install.png");
+ gtk_widget_set_name (image1683, "image1683");
+ gtk_widget_show (image1683);
+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (install1), image1683);
re_install1 = gtk_image_menu_item_new_with_mnemonic (_("Re-Install"));
gtk_widget_set_name (re_install1, "re_install1");
@@ -781,10 +797,10 @@ create_gslapt (void)
GDK_e, (GdkModifierType) GDK_CONTROL_MASK,
GTK_ACCEL_VISIBLE);
- image1608 = create_pixmap (gslapt, "pkg_action_reinstall.png");
- gtk_widget_set_name (image1608, "image1608");
- gtk_widget_show (image1608);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (re_install1), image1608);
+ image1684 = create_pixmap (gslapt, "pkg_action_reinstall.png");
+ gtk_widget_set_name (image1684, "image1684");
+ gtk_widget_show (image1684);
+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (re_install1), image1684);
upgrade1 = gtk_image_menu_item_new_with_mnemonic (_("Upgrade"));
gtk_widget_set_name (upgrade1, "upgrade1");
@@ -795,10 +811,10 @@ create_gslapt (void)
GDK_u, (GdkModifierType) GDK_CONTROL_MASK,
GTK_ACCEL_VISIBLE);
- image1609 = create_pixmap (gslapt, "pkg_action_upgrade.png");
- gtk_widget_set_name (image1609, "image1609");
- gtk_widget_show (image1609);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (upgrade1), image1609);
+ image1685 = create_pixmap (gslapt, "pkg_action_upgrade.png");
+ gtk_widget_set_name (image1685, "image1685");
+ gtk_widget_show (image1685);
+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (upgrade1), image1685);
downgrade1 = gtk_image_menu_item_new_with_mnemonic (_("Downgrade"));
gtk_widget_set_name (downgrade1, "downgrade1");
@@ -809,10 +825,10 @@ create_gslapt (void)
GDK_d, (GdkModifierType) GDK_CONTROL_MASK,
GTK_ACCEL_VISIBLE);
- image1610 = create_pixmap (gslapt, "pkg_action_downgrade.png");
- gtk_widget_set_name (image1610, "image1610");
- gtk_widget_show (image1610);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (downgrade1), image1610);
+ image1686 = create_pixmap (gslapt, "pkg_action_downgrade.png");
+ gtk_widget_set_name (image1686, "image1686");
+ gtk_widget_show (image1686);
+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (downgrade1), image1686);
remove1 = gtk_image_menu_item_new_with_mnemonic (_("Remove"));
gtk_widget_set_name (remove1, "remove1");
@@ -823,10 +839,10 @@ create_gslapt (void)
GDK_r, (GdkModifierType) GDK_CONTROL_MASK,
GTK_ACCEL_VISIBLE);
- image1611 = create_pixmap (gslapt, "pkg_action_remove.png");
- gtk_widget_set_name (image1611, "image1611");
- gtk_widget_show (image1611);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (remove1), image1611);
+ image1687 = create_pixmap (gslapt, "pkg_action_remove.png");
+ gtk_widget_set_name (image1687, "image1687");
+ gtk_widget_show (image1687);
+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (remove1), image1687);
help3 = gtk_menu_item_new_with_mnemonic (_("_Help"));
gtk_widget_set_name (help3, "help3");
@@ -842,20 +858,20 @@ create_gslapt (void)
gtk_widget_show (icon_legend1);
gtk_container_add (GTK_CONTAINER (help3_menu), icon_legend1);
- image1612 = gtk_image_new_from_stock ("gtk-dialog-info", GTK_ICON_SIZE_MENU);
- gtk_widget_set_name (image1612, "image1612");
- gtk_widget_show (image1612);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (icon_legend1), image1612);
+ image1688 = gtk_image_new_from_stock ("gtk-dialog-info", GTK_ICON_SIZE_MENU);
+ gtk_widget_set_name (image1688, "image1688");
+ gtk_widget_show (image1688);
+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (icon_legend1), image1688);
about3 = gtk_image_menu_item_new_with_mnemonic (_("About"));
gtk_widget_set_name (about3, "about3");
gtk_widget_show (about3);
gtk_container_add (GTK_CONTAINER (help3_menu), about3);
- image1613 = gtk_image_new_from_stock ("gtk-about", GTK_ICON_SIZE_MENU);
- gtk_widget_set_name (image1613, "image1613");
- gtk_widget_show (image1613);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (about3), image1613);
+ image1689 = gtk_image_new_from_stock ("gtk-about", GTK_ICON_SIZE_MENU);
+ gtk_widget_set_name (image1689, "image1689");
+ gtk_widget_show (image1689);
+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (about3), image1689);
action_toolbar = gtk_toolbar_new ();
gtk_widget_set_name (action_toolbar, "action_toolbar");
@@ -1356,6 +1372,9 @@ create_gslapt (void)
g_signal_connect ((gpointer) mark_all_upgrades2, "activate",
G_CALLBACK (mark_all_upgrades_activate),
NULL);
+ g_signal_connect ((gpointer) mark_obsolete1, "activate",
+ G_CALLBACK (mark_obsolete_packages),
+ NULL);
g_signal_connect ((gpointer) execute1, "activate",
G_CALLBACK (execute_activate),
NULL);
@@ -1418,20 +1437,22 @@ create_gslapt (void)
GLADE_HOOKUP_OBJECT (gslapt, actions2, "actions2");
GLADE_HOOKUP_OBJECT (gslapt, actions2_menu, "actions2_menu");
GLADE_HOOKUP_OBJECT (gslapt, update1, "update1");
- GLADE_HOOKUP_OBJECT (gslapt, image1601, "image1601");
+ GLADE_HOOKUP_OBJECT (gslapt, image1676, "image1676");
GLADE_HOOKUP_OBJECT (gslapt, mark_all_upgrades2, "mark_all_upgrades2");
- GLADE_HOOKUP_OBJECT (gslapt, image1602, "image1602");
+ GLADE_HOOKUP_OBJECT (gslapt, image1677, "image1677");
+ GLADE_HOOKUP_OBJECT (gslapt, mark_obsolete1, "mark_obsolete1");
+ GLADE_HOOKUP_OBJECT (gslapt, image1678, "image1678");
GLADE_HOOKUP_OBJECT (gslapt, execute1, "execute1");
- GLADE_HOOKUP_OBJECT (gslapt, image1603, "image1603");
+ GLADE_HOOKUP_OBJECT (gslapt, image1679, "image1679");
GLADE_HOOKUP_OBJECT (gslapt, separator2, "separator2");
GLADE_HOOKUP_OBJECT (gslapt, quit, "quit");
GLADE_HOOKUP_OBJECT (gslapt, edit1, "edit1");
GLADE_HOOKUP_OBJECT (gslapt, edit1_menu, "edit1_menu");
GLADE_HOOKUP_OBJECT (gslapt, unmark_all1, "unmark_all1");
- GLADE_HOOKUP_OBJECT (gslapt, image1604, "image1604");
+ GLADE_HOOKUP_OBJECT (gslapt, image1680, "image1680");
GLADE_HOOKUP_OBJECT (gslapt, separator1, "separator1");
GLADE_HOOKUP_OBJECT (gslapt, preferences2, "preferences2");
- GLADE_HOOKUP_OBJECT (gslapt, image1605, "image1605");
+ GLADE_HOOKUP_OBJECT (gslapt, image1681, "image1681");
GLADE_HOOKUP_OBJECT (gslapt, view1, "view1");
GLADE_HOOKUP_OBJECT (gslapt, view1_menu, "view1_menu");
GLADE_HOOKUP_OBJECT (gslapt, view_all_packages_menu, "view_all_packages_menu");
@@ -1441,23 +1462,23 @@ create_gslapt (void)
GLADE_HOOKUP_OBJECT (gslapt, package1, "package1");
GLADE_HOOKUP_OBJECT (gslapt, package1_menu, "package1_menu");
GLADE_HOOKUP_OBJECT (gslapt, unmark1, "unmark1");
- GLADE_HOOKUP_OBJECT (gslapt, image1606, "image1606");
+ GLADE_HOOKUP_OBJECT (gslapt, image1682, "image1682");
GLADE_HOOKUP_OBJECT (gslapt, install1, "install1");
- GLADE_HOOKUP_OBJECT (gslapt, image1607, "image1607");
+ GLADE_HOOKUP_OBJECT (gslapt, image1683, "image1683");
GLADE_HOOKUP_OBJECT (gslapt, re_install1, "re_install1");
- GLADE_HOOKUP_OBJECT (gslapt, image1608, "image1608");
+ GLADE_HOOKUP_OBJECT (gslapt, image1684, "image1684");
GLADE_HOOKUP_OBJECT (gslapt, upgrade1, "upgrade1");
- GLADE_HOOKUP_OBJECT (gslapt, image1609, "image1609");
+ GLADE_HOOKUP_OBJECT (gslapt, image1685, "image1685");
GLADE_HOOKUP_OBJECT (gslapt, downgrade1, "downgrade1");
- GLADE_HOOKUP_OBJECT (gslapt, image1610, "image1610");
+ GLADE_HOOKUP_OBJECT (gslapt, image1686, "image1686");
GLADE_HOOKUP_OBJECT (gslapt, remove1, "remove1");
- GLADE_HOOKUP_OBJECT (gslapt, image1611, "image1611");
+ GLADE_HOOKUP_OBJECT (gslapt, image1687, "image1687");
GLADE_HOOKUP_OBJECT (gslapt, help3, "help3");
GLADE_HOOKUP_OBJECT (gslapt, help3_menu, "help3_menu");
GLADE_HOOKUP_OBJECT (gslapt, icon_legend1, "icon_legend1");
- GLADE_HOOKUP_OBJECT (gslapt, image1612, "image1612");
+ GLADE_HOOKUP_OBJECT (gslapt, image1688, "image1688");
GLADE_HOOKUP_OBJECT (gslapt, about3, "about3");
- GLADE_HOOKUP_OBJECT (gslapt, image1613, "image1613");
+ GLADE_HOOKUP_OBJECT (gslapt, image1689, "image1689");
GLADE_HOOKUP_OBJECT (gslapt, action_toolbar, "action_toolbar");
GLADE_HOOKUP_OBJECT (gslapt, action_bar_update_button, "action_bar_update_button");
GLADE_HOOKUP_OBJECT (gslapt, action_bar_upgrade_button, "action_bar_upgrade_button");