aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2014-07-27 16:34:17 +0000
committerJason Woodward2014-07-27 16:34:17 +0000
commitf0ddcff7c425591dda0b285df475f9e51730fd07 (patch)
tree3cd78bf83ebb4a4ce259556b6ff4b7aafea5a6d4
parent4fcdfa213c1f414946d2005b09dc8af318d75dca (diff)
parent42abb25c30ad9c8a574e155cacdd95adc2e9a1b3 (diff)
downloadgslapt-0.5.4a.tar.gz
Merge branch 'gtkbuilder'0.5.4a
-rw-r--r--ChangeLog5
-rw-r--r--Makefile.am22
-rw-r--r--configure.in21
-rw-r--r--gslapt.glade5435
-rw-r--r--gslapt.gladep9
-rw-r--r--src/Makefile.am2
-rw-r--r--src/callbacks.c736
-rw-r--r--src/callbacks.h45
-rw-r--r--src/interface.c3052
-rw-r--r--src/interface.h17
-rw-r--r--src/main.c37
-rw-r--r--src/support.c144
-rw-r--r--src/support.h69
-rw-r--r--ui/Makefile.am31
-rw-r--r--ui/about.ui125
-rw-r--r--ui/changelog_window.ui64
-rw-r--r--ui/dep_error_dialog.ui183
-rw-r--r--ui/dl_progress_window.ui117
-rw-r--r--ui/gslapt.png (renamed from pixmaps/gslapt.png)bin2803 -> 2803 bytes
-rw-r--r--ui/gslapt.ui1178
-rw-r--r--ui/icon_legend.ui437
-rw-r--r--ui/notification.ui88
-rw-r--r--ui/pkg_action_available.png (renamed from pixmaps/pkg_action_available.png)bin305 -> 305 bytes
-rw-r--r--ui/pkg_action_available_excluded.png (renamed from pixmaps/pkg_action_available_excluded.png)bin606 -> 606 bytes
-rw-r--r--ui/pkg_action_downgrade.png (renamed from pixmaps/pkg_action_downgrade.png)bin471 -> 471 bytes
-rw-r--r--ui/pkg_action_install.png (renamed from pixmaps/pkg_action_install.png)bin643 -> 643 bytes
-rw-r--r--ui/pkg_action_installed.png (renamed from pixmaps/pkg_action_installed.png)bin167 -> 167 bytes
-rw-r--r--ui/pkg_action_installed_excluded.png (renamed from pixmaps/pkg_action_installed_excluded.png)bin496 -> 496 bytes
-rw-r--r--ui/pkg_action_reinstall.png (renamed from pixmaps/pkg_action_reinstall.png)bin518 -> 518 bytes
-rw-r--r--ui/pkg_action_remove.png (renamed from pixmaps/pkg_action_remove.png)bin591 -> 591 bytes
-rw-r--r--ui/pkg_action_upgrade.png (renamed from pixmaps/pkg_action_upgrade.png)bin481 -> 481 bytes
-rw-r--r--ui/pkgtools_progress_window.ui69
-rw-r--r--ui/repositories_changed.ui134
-rw-r--r--ui/source_failed_dialog.ui128
-rw-r--r--ui/source_window.ui159
-rw-r--r--ui/transaction_window.ui238
-rw-r--r--ui/window_preferences.ui636
37 files changed, 4128 insertions, 9053 deletions
diff --git a/ChangeLog b/ChangeLog
index 9ee70e8..2f85de1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,9 @@
+0.5.4a Jun 23, 2014
+ * switch to gtkbuilder
+ * fix gtk3.0 compatibility issues
+ * --enable-gtk3 configure option
+
0.5.3j Apr 05, 2014
* translation updates
* glib 2.32 compat
diff --git a/Makefile.am b/Makefile.am
index 6f2ab7a..e8f2579 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,6 +1,6 @@
## Process this file with automake to produce Makefile.in
-SUBDIRS = src po
+SUBDIRS = src po ui
PKGDIR = `pwd`/pkg
@@ -37,25 +37,7 @@ install-data-local:
$(INSTALL_DATA) gslapt-kde.desktop $(DESTDIR)/$(datadir)/applications/gslapt-kde.desktop; \
$(INSTALL_DATA) series_map.rc $(DESTDIR)/$(pkgdatadir)/; \
$(mkinstalldirs) $(DESTDIR)/$(datadir)/pixmaps; \
- $(INSTALL_DATA) pixmaps/gslapt.png $(DESTDIR)/$(datadir)/pixmaps/; \
- if test -d $(srcdir)/pixmaps; then \
- $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/pixmaps; \
- for pixmap in $(srcdir)/pixmaps/*; do \
- if test -f $$pixmap; then \
- $(INSTALL_DATA) $$pixmap $(DESTDIR)$(pkgdatadir)/pixmaps; \
- fi \
- done \
- fi
-
-dist-hook:
- if test -d pixmaps; then \
- mkdir $(distdir)/pixmaps; \
- for pixmap in pixmaps/*; do \
- if test -f $$pixmap; then \
- cp -p $$pixmap $(distdir)/pixmaps; \
- fi \
- done \
- fi
+ $(INSTALL_DATA) ui/gslapt.png $(DESTDIR)/$(datadir)/pixmaps/
pkg: all
@make install DESTDIR=$(PKGDIR)
diff --git a/configure.in b/configure.in
index 4e37c51..76c44e1 100644
--- a/configure.in
+++ b/configure.in
@@ -1,6 +1,6 @@
dnl Process this file with autoconf to produce a configure script.
-AC_INIT([gslapt], [0.5.3j], [woodwardj@jaos.org])
+AC_INIT([gslapt], [0.5.4a], [woodwardj@jaos.org])
AC_CONFIG_SRCDIR([configure.in])
AM_INIT_AUTOMAKE([-Wall foreign])
AM_CONFIG_HEADER(config.h)
@@ -46,12 +46,24 @@ AC_CHECK_MEMBER([slapt_pkg_list_t.pkgs], [LIBS="$LIBS -lslapt"], [AC_MSG_ERROR([
dnl AC_CHECK_LIB(slapt,slapt_disk_space_check, [], [AC_MSG_ERROR(libslapt 0.10.2b or greater is required)])
-glib_modules="glib-2.0 gthread-2.0"
+glib_modules="glib-2.0 gthread-2.0 gmodule-2.0 gmodule-export-2.0"
PKG_CHECK_MODULES(GLIB, [$glib_modules])
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)
-gtk_modules="gtk+-2.0 >= 2.4.0"
-PKG_CHECK_MODULES(GTK, [$gtk_modules])
+gtk2_modules="gtk+-2.0 >= 2.24.0"
+gtk3_modules="gtk+-3.0 >= 3.4.0"
+AM_CONDITIONAL(GTK3, false)
+AM_CONDITIONAL(GTK2, true)
+AC_ARG_ENABLE(gtk3,
+ [ --enable-gtk3 Build with GTK3 support],
+ [enable_gtk3=$enableval], [enable_gtk3=no])
+if test x"$enable_gtk3" = x"yes"; then
+ PKG_CHECK_MODULES(GTK, [$gtk3_modules])
+ AM_CONDITIONAL(GTK3, true)
+ AM_CONDITIONAL(GTK2, false)
+else
+ PKG_CHECK_MODULES(GTK, [$gtk2_modules])
+fi
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)
@@ -64,6 +76,7 @@ AC_CONFIG_FILES([
Makefile
src/Makefile
po/Makefile.in
+ui/Makefile
])
AC_OUTPUT
diff --git a/gslapt.glade b/gslapt.glade
deleted file mode 100644
index 60f7417..0000000
--- a/gslapt.glade
+++ /dev/null
@@ -1,5435 +0,0 @@
-<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
-<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">
-
-<glade-interface>
-
-<widget class="GtkWindow" id="window_preferences">
- <property name="title" translatable="yes">Preferences</property>
- <property name="type">GTK_WINDOW_TOPLEVEL</property>
- <property name="window_position">GTK_WIN_POS_CENTER</property>
- <property name="modal">True</property>
- <property name="default_width">400</property>
- <property name="default_height">300</property>
- <property name="resizable">True</property>
- <property name="destroy_with_parent">False</property>
- <property name="icon">gslapt.png</property>
- <property name="decorated">True</property>
- <property name="skip_taskbar_hint">False</property>
- <property name="skip_pager_hint">False</property>
- <property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
- <property name="gravity">GDK_GRAVITY_CENTER</property>
- <property name="focus_on_map">True</property>
- <property name="urgency_hint">False</property>
- <signal name="destroy_event" handler="gtk_widget_destroy" last_modification_time="Sat, 05 Feb 2005 19:57:33 GMT"/>
-
- <child>
- <widget class="GtkVBox" id="preferences_vbox">
- <property name="border_width">6</property>
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkNotebook" id="preferences_notebook">
- <property name="border_width">6</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="show_tabs">True</property>
- <property name="show_border">True</property>
- <property name="tab_pos">GTK_POS_TOP</property>
- <property name="scrollable">False</property>
- <property name="enable_popup">False</property>
-
- <child>
- <widget class="GtkVBox" id="preferences_working_dir_vbox">
- <property name="border_width">12</property>
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">18</property>
-
- <child>
- <widget class="GtkVBox" id="preferences_working_dir_vbox_vbox">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">6</property>
-
- <child>
- <widget class="GtkLabel" id="preferences_working_dir_label">
- <property name="visible">True</property>
- <property name="label" translatable="yes">&lt;b&gt;Package and data storage&lt;/b&gt;</property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkHBox" id="hbox3">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkLabel" id="label72">
- <property name="visible">True</property>
- <property name="label"> </property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkVBox" id="vbox12">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">6</property>
-
- <child>
- <widget class="GtkEntry" id="preferences_working_dir_entry">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="editable">True</property>
- <property name="visibility">True</property>
- <property name="max_length">0</property>
- <property name="text" translatable="yes"></property>
- <property name="has_frame">True</property>
- <property name="invisible_char">*</property>
- <property name="activates_default">False</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkButton" id="button7">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes">_Delete Cached Package Files</property>
- <property name="use_underline">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="focus_on_click">True</property>
- <signal name="clicked" handler="clean_callback" last_modification_time="Fri, 05 Aug 2005 16:21:38 GMT"/>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="tab_expand">False</property>
- <property name="tab_fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label50">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Working Directory</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_CENTER</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="type">tab</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkVBox" id="preferences_exclude_vbox">
- <property name="border_width">12</property>
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">18</property>
-
- <child>
- <widget class="GtkVBox" id="preferences_exclude_vbox_vbox">
- <property name="border_width">12</property>
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">6</property>
-
- <child>
- <widget class="GtkLabel" id="preferences_exclude_label">
- <property name="visible">True</property>
- <property name="label" translatable="yes">&lt;b&gt;Exclude List&lt;/b&gt;</property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkHBox" id="hbox81">
- <property name="height_request">174</property>
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkLabel" id="label140">
- <property name="visible">True</property>
- <property name="label"> </property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkHBox" id="hbox82">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">12</property>
-
- <child>
- <widget class="GtkScrolledWindow" id="scrolledwindow12">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="shadow_type">GTK_SHADOW_IN</property>
- <property name="window_placement">GTK_CORNER_TOP_LEFT</property>
-
- <child>
- <widget class="GtkTreeView" id="preferences_exclude_treeview">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="headers_visible">False</property>
- <property name="rules_hint">True</property>
- <property name="reorderable">True</property>
- <property name="enable_search">True</property>
- <property name="fixed_height_mode">False</property>
- <property name="hover_selection">False</property>
- <property name="hover_expand">False</property>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkVBox" id="vbox42">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">6</property>
-
- <child>
- <widget class="GtkButton" id="preferences_remove_exclude_button">
- <property name="visible">True</property>
- <property name="can_default">True</property>
- <property name="can_focus">True</property>
- <property name="label">gtk-remove</property>
- <property name="use_stock">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="focus_on_click">True</property>
- <signal name="clicked" handler="preferences_exclude_remove" object="window_preferences" last_modification_time="Sun, 06 Feb 2005 04:41:58 GMT"/>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkHBox" id="hbox95">
- <property name="border_width">6</property>
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">2</property>
-
- <child>
- <widget class="GtkLabel" id="label164">
- <property name="visible">True</property>
- <property name="label" translatable="yes">&lt;span weight=&quot;bold&quot;&gt;Exclude Expression:&lt;/span&gt;</property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkEntry" id="new_exclude_entry">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="editable">True</property>
- <property name="visibility">True</property>
- <property name="max_length">0</property>
- <property name="text" translatable="yes"></property>
- <property name="has_frame">True</property>
- <property name="invisible_char">*</property>
- <property name="activates_default">False</property>
- <signal name="editing_done" handler="preferences_exclude_add" object="window_preferences" last_modification_time="Wed, 08 Jun 2005 18:22:36 GMT"/>
- <signal name="activate" handler="preferences_exclude_add" object="window_preferences" last_modification_time="Wed, 08 Jun 2005 18:22:28 GMT"/>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkButton" id="preferences_add_exclude_button">
- <property name="visible">True</property>
- <property name="can_default">True</property>
- <property name="can_focus">True</property>
- <property name="label">gtk-add</property>
- <property name="use_stock">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="focus_on_click">True</property>
- <signal name="clicked" handler="preferences_exclude_add" object="window_preferences" last_modification_time="Sun, 06 Feb 2005 04:41:48 GMT"/>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="tab_expand">False</property>
- <property name="tab_fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label51">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Excludes</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_CENTER</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="type">tab</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkVBox" id="preferences_sources_vbox">
- <property name="border_width">12</property>
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">18</property>
-
- <child>
- <widget class="GtkVBox" id="vbox57">
- <property name="border_width">12</property>
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">6</property>
-
- <child>
- <widget class="GtkLabel" id="label161">
- <property name="visible">True</property>
- <property name="label" translatable="yes">&lt;b&gt;Package Sources&lt;/b&gt;</property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkHBox" id="hbox92">
- <property name="height_request">174</property>
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkLabel" id="label162">
- <property name="visible">True</property>
- <property name="label"> </property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkHBox" id="hbox93">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">12</property>
-
- <child>
- <widget class="GtkScrolledWindow" id="scrolledwindow16">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="shadow_type">GTK_SHADOW_IN</property>
- <property name="window_placement">GTK_CORNER_TOP_LEFT</property>
-
- <child>
- <widget class="GtkTreeView" id="preferences_sources_treeview">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="headers_visible">True</property>
- <property name="rules_hint">True</property>
- <property name="reorderable">True</property>
- <property name="enable_search">True</property>
- <property name="fixed_height_mode">False</property>
- <property name="hover_selection">False</property>
- <property name="hover_expand">False</property>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkVBox" id="vbox58">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">6</property>
-
- <child>
- <widget class="GtkButton" id="preferences_add_source_button">
- <property name="visible">True</property>
- <property name="can_default">True</property>
- <property name="can_focus">True</property>
- <property name="label">gtk-add</property>
- <property name="use_stock">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="focus_on_click">True</property>
- <signal name="clicked" handler="preferences_sources_add" object="window_preferences" last_modification_time="Mon, 15 Nov 2004 04:01:52 GMT"/>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkButton" id="button8">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">gtk-edit</property>
- <property name="use_stock">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="focus_on_click">True</property>
- <signal name="clicked" handler="preferences_sources_edit" object="window_preferences" last_modification_time="Sun, 29 Oct 2006 21:20:22 GMT"/>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkButton" id="preferences_remove_source_button">
- <property name="visible">True</property>
- <property name="can_default">True</property>
- <property name="can_focus">True</property>
- <property name="label">gtk-remove</property>
- <property name="use_stock">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="focus_on_click">True</property>
- <signal name="clicked" handler="preferences_sources_remove" object="window_preferences" last_modification_time="Mon, 15 Nov 2004 04:02:03 GMT"/>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="tab_expand">False</property>
- <property name="tab_fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label160">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Sources</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="type">tab</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkVBox" id="preferences_verification_vbox">
- <property name="border_width">12</property>
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">18</property>
-
- <child>
- <widget class="GtkVBox" id="vbox76">
- <property name="border_width">12</property>
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">6</property>
-
- <child>
- <widget class="GtkLabel" id="label294">
- <property name="visible">True</property>
- <property name="label" translatable="yes">&lt;b&gt;GPG Keys&lt;/b&gt;</property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkHBox" id="hbox116">
- <property name="height_request">174</property>
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkLabel" id="label295">
- <property name="visible">True</property>
- <property name="label"> </property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkHBox" id="hbox117">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">12</property>
-
- <child>
- <widget class="GtkScrolledWindow" id="scrolledwindow24">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="shadow_type">GTK_SHADOW_IN</property>
- <property name="window_placement">GTK_CORNER_TOP_LEFT</property>
-
- <child>
- <widget class="GtkTreeView" id="preferences_verification_sources_treeview">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="headers_visible">True</property>
- <property name="rules_hint">True</property>
- <property name="reorderable">True</property>
- <property name="enable_search">True</property>
- <property name="fixed_height_mode">False</property>
- <property name="hover_selection">False</property>
- <property name="hover_expand">False</property>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkVBox" id="vbox77">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">6</property>
-
- <child>
- <widget class="GtkButton" id="button9">
- <property name="visible">True</property>
- <property name="can_default">True</property>
- <property name="can_focus">True</property>
- <property name="label">gtk-add</property>
- <property name="use_stock">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="focus_on_click">True</property>
- <signal name="clicked" handler="preferences_sources_add_key" object="window_preferences" last_modification_time="Sun, 17 Jun 2007 15:55:57 GMT"/>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="tab_expand">False</property>
- <property name="tab_fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label293">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Verification</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="type">tab</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkHButtonBox" id="preferences_hbuttonbox">
- <property name="border_width">6</property>
- <property name="visible">True</property>
- <property name="layout_style">GTK_BUTTONBOX_END</property>
- <property name="spacing">6</property>
-
- <child>
- <widget class="GtkButton" id="preferences_close_button">
- <property name="visible">True</property>
- <property name="can_default">True</property>
- <property name="can_focus">True</property>
- <property name="label">gtk-cancel</property>
- <property name="use_stock">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="focus_on_click">True</property>
- <signal name="clicked" handler="cancel_preferences" object="window_preferences" last_modification_time="Mon, 21 Feb 2005 21:26:16 GMT"/>
- </widget>
- </child>
-
- <child>
- <widget class="GtkButton" id="preferences_ok_button">
- <property name="visible">True</property>
- <property name="can_default">True</property>
- <property name="can_focus">True</property>
- <property name="label">gtk-ok</property>
- <property name="use_stock">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="focus_on_click">True</property>
- <signal name="clicked" handler="preferences_on_ok_clicked" object="window_preferences" last_modification_time="Mon, 15 Nov 2004 04:01:32 GMT"/>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- </child>
-</widget>
-
-<widget class="GtkWindow" id="gslapt">
- <property name="visible">True</property>
- <property name="title" translatable="yes">Gslapt</property>
- <property name="type">GTK_WINDOW_TOPLEVEL</property>
- <property name="window_position">GTK_WIN_POS_CENTER</property>
- <property name="modal">False</property>
- <property name="default_width">640</property>
- <property name="default_height">480</property>
- <property name="resizable">True</property>
- <property name="destroy_with_parent">False</property>
- <property name="icon">gslapt.png</property>
- <property name="decorated">True</property>
- <property name="skip_taskbar_hint">False</property>
- <property name="skip_pager_hint">False</property>
- <property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
- <property name="gravity">GDK_GRAVITY_CENTER</property>
- <property name="focus_on_map">True</property>
- <property name="urgency_hint">False</property>
- <signal name="destroy" handler="on_gslapt_destroy" last_modification_time="Sat, 05 Feb 2005 06:56:30 GMT"/>
-
- <child>
- <widget class="GtkVBox" id="gslapt_vbox">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkMenuBar" id="top_menubar">
- <property name="visible">True</property>
- <property name="pack_direction">GTK_PACK_DIRECTION_LTR</property>
- <property name="child_pack_direction">GTK_PACK_DIRECTION_LTR</property>
-
- <child>
- <widget class="GtkMenuItem" id="actions2">
- <property name="visible">True</property>
- <property name="label" translatable="yes">_File</property>
- <property name="use_underline">True</property>
-
- <child>
- <widget class="GtkMenu" id="actions2_menu">
-
- <child>
- <widget class="GtkImageMenuItem" id="update1">
- <property name="visible">True</property>
- <property name="tooltip" translatable="yes">Update local package cache</property>
- <property name="label" translatable="yes">Update</property>
- <property name="use_underline">True</property>
- <signal name="activate" handler="update_activate" last_modification_time="Fri, 05 Aug 2005 16:40:24 GMT"/>
- <accelerator key="y" modifiers="GDK_CONTROL_MASK" signal="activate"/>
-
- <child internal-child="image">
- <widget class="GtkImage" id="image1731">
- <property name="visible">True</property>
- <property name="stock">gtk-refresh</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="mark_all_upgrades2">
- <property name="visible">True</property>
- <property name="tooltip" translatable="yes">Mark all possible upgrades</property>
- <property name="label" translatable="yes">Mark All Upgrades</property>
- <property name="use_underline">True</property>
- <signal name="activate" handler="mark_all_upgrades_activate" last_modification_time="Fri, 05 Aug 2005 16:40:24 GMT"/>
- <accelerator key="a" modifiers="GDK_CONTROL_MASK" signal="activate"/>
-
- <child internal-child="image">
- <widget class="GtkImage" id="image1732">
- <property name="visible">True</property>
- <property name="stock">gtk-go-up</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="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="image1733">
- <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>
- <property name="label" translatable="yes">Execute</property>
- <property name="use_underline">True</property>
- <signal name="activate" handler="execute_activate" last_modification_time="Fri, 05 Aug 2005 16:40:24 GMT"/>
- <accelerator key="Return" modifiers="GDK_CONTROL_MASK" signal="activate"/>
-
- <child internal-child="image">
- <widget class="GtkImage" id="image1734">
- <property name="visible">True</property>
- <property name="stock">gtk-apply</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="GtkSeparatorMenuItem" id="separator2">
- <property name="visible">True</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkImageMenuItem" id="quit">
- <property name="visible">True</property>
- <property name="label">gtk-quit</property>
- <property name="use_stock">True</property>
- <signal name="activate" handler="on_gslapt_destroy" last_modification_time="Wed, 09 Feb 2005 17:51:18 GMT"/>
- </widget>
- </child>
- </widget>
- </child>
- </widget>
- </child>
-
- <child>
- <widget class="GtkMenuItem" id="edit1">
- <property name="visible">True</property>
- <property name="label" translatable="yes">_Edit</property>
- <property name="use_underline">True</property>
-
- <child>
- <widget class="GtkMenu" id="edit1_menu">
-
- <child>
- <widget class="GtkImageMenuItem" id="unmark_all1">
- <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: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="image1735">
- <property name="visible">True</property>
- <property name="stock">gtk-undo</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="GtkSeparatorMenuItem" id="separator1">
- <property name="visible">True</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkImageMenuItem" id="preferences2">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Preferences</property>
- <property name="use_underline">True</property>
- <signal name="activate" handler="open_preferences" last_modification_time="Sat, 05 Feb 2005 21:02:58 GMT"/>
- <accelerator key="p" modifiers="GDK_CONTROL_MASK" signal="activate"/>
-
- <child internal-child="image">
- <widget class="GtkImage" id="image1736">
- <property name="visible">True</property>
- <property name="stock">gtk-preferences</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>
- </widget>
- </child>
- </widget>
- </child>
-
- <child>
- <widget class="GtkMenuItem" id="view1">
- <property name="visible">True</property>
- <property name="label" translatable="yes">_View</property>
- <property name="use_underline">True</property>
-
- <child>
- <widget class="GtkMenu" id="view1_menu">
-
- <child>
- <widget class="GtkRadioMenuItem" id="view_all_packages_menu">
- <property name="visible">True</property>
- <property name="tooltip" translatable="yes">View all packages</property>
- <property name="label" translatable="yes">All</property>
- <property name="use_underline">True</property>
- <property name="active">False</property>
- <signal name="activate" handler="view_all_packages" last_modification_time="Mon, 29 May 2006 04:08:47 GMT"/>
- <accelerator key="F1" modifiers="0" signal="activate"/>
- </widget>
- </child>
-
- <child>
- <widget class="GtkRadioMenuItem" id="view_available_packages_menu">
- <property name="visible">True</property>
- <property name="tooltip" translatable="yes">View available packages from current sources</property>
- <property name="label" translatable="yes">Available</property>
- <property name="use_underline">True</property>
- <property name="active">False</property>
- <property name="group">view_all_packages_menu</property>
- <signal name="activate" handler="view_available_packages" last_modification_time="Mon, 29 May 2006 04:08:47 GMT"/>
- <accelerator key="F2" modifiers="0" signal="activate"/>
- </widget>
- </child>
-
- <child>
- <widget class="GtkRadioMenuItem" id="view_installed_packages_menu">
- <property name="visible">True</property>
- <property name="tooltip" translatable="yes">View installed packages</property>
- <property name="label" translatable="yes">Installed</property>
- <property name="use_underline">True</property>
- <property name="active">False</property>
- <property name="group">view_all_packages_menu</property>
- <signal name="activate" handler="view_installed_packages" last_modification_time="Mon, 29 May 2006 04:08:47 GMT"/>
- <accelerator key="F3" modifiers="0" signal="activate"/>
- </widget>
- </child>
-
- <child>
- <widget class="GtkRadioMenuItem" id="view_marked_packages_menu">
- <property name="visible">True</property>
- <property name="tooltip" translatable="yes">View Marked Packages</property>
- <property name="label" translatable="yes">Marked</property>
- <property name="use_underline">True</property>
- <property name="active">False</property>
- <property name="group">view_all_packages_menu</property>
- <signal name="activate" handler="view_marked_packages" last_modification_time="Sun, 18 Jun 2006 20:20:52 GMT"/>
- <accelerator key="F4" modifiers="0" signal="activate"/>
- </widget>
- </child>
-
- <child>
- <widget class="GtkRadioMenuItem" id="view_upgradeable_packages_menu">
- <property name="visible">True</property>
- <property name="tooltip" translatable="yes">View Upgradeable Packages</property>
- <property name="label" translatable="yes">Upgradeable</property>
- <property name="use_underline">True</property>
- <property name="active">False</property>
- <property name="group">view_all_packages_menu</property>
- <signal name="activate" handler="view_upgradeable_packages" last_modification_time="Sat, 08 Mar 2008 21:29:50 GMT"/>
- <accelerator key="F5" modifiers="0" signal="activate"/>
- </widget>
- </child>
- </widget>
- </child>
- </widget>
- </child>
-
- <child>
- <widget class="GtkMenuItem" id="package1">
- <property name="visible">True</property>
- <property name="label" translatable="yes">P_ackage</property>
- <property name="use_underline">True</property>
-
- <child>
- <widget class="GtkMenu" id="package1_menu">
-
- <child>
- <widget class="GtkImageMenuItem" id="unmark1">
- <property name="visible">True</property>
- <property name="sensitive">False</property>
- <property name="label" translatable="yes">Unmark</property>
- <property name="use_underline">True</property>
- <accelerator key="n" modifiers="GDK_CONTROL_MASK" signal="activate"/>
-
- <child internal-child="image">
- <widget class="GtkImage" id="image1737">
- <property name="visible">True</property>
- <property name="pixbuf">pkg_action_available.png</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="install1">
- <property name="visible">True</property>
- <property name="sensitive">False</property>
- <property name="label" translatable="yes">Install</property>
- <property name="use_underline">True</property>
- <accelerator key="i" modifiers="GDK_CONTROL_MASK" signal="activate"/>
-
- <child internal-child="image">
- <widget class="GtkImage" id="image1738">
- <property name="visible">True</property>
- <property name="pixbuf">pkg_action_install.png</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="re-install1">
- <property name="visible">True</property>
- <property name="sensitive">False</property>
- <property name="label" translatable="yes">Re-Install</property>
- <property name="use_underline">True</property>
- <accelerator key="e" modifiers="GDK_CONTROL_MASK" signal="activate"/>
-
- <child internal-child="image">
- <widget class="GtkImage" id="image1739">
- <property name="visible">True</property>
- <property name="pixbuf">pkg_action_reinstall.png</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="upgrade1">
- <property name="visible">True</property>
- <property name="sensitive">False</property>
- <property name="label" translatable="yes">Upgrade</property>
- <property name="use_underline">True</property>
- <accelerator key="u" modifiers="GDK_CONTROL_MASK" signal="activate"/>
-
- <child internal-child="image">
- <widget class="GtkImage" id="image1740">
- <property name="visible">True</property>
- <property name="pixbuf">pkg_action_upgrade.png</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="downgrade1">
- <property name="visible">True</property>
- <property name="sensitive">False</property>
- <property name="label" translatable="yes">Downgrade</property>
- <property name="use_underline">True</property>
- <accelerator key="d" modifiers="GDK_CONTROL_MASK" signal="activate"/>
-
- <child internal-child="image">
- <widget class="GtkImage" id="image1741">
- <property name="visible">True</property>
- <property name="pixbuf">pkg_action_downgrade.png</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="remove1">
- <property name="visible">True</property>
- <property name="sensitive">False</property>
- <property name="label" translatable="yes">Remove</property>
- <property name="use_underline">True</property>
- <accelerator key="r" modifiers="GDK_CONTROL_MASK" signal="activate"/>
-
- <child internal-child="image">
- <widget class="GtkImage" id="image1742">
- <property name="visible">True</property>
- <property name="pixbuf">pkg_action_remove.png</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>
- </widget>
- </child>
- </widget>
- </child>
-
- <child>
- <widget class="GtkMenuItem" id="help3">
- <property name="visible">True</property>
- <property name="label" translatable="yes">_Help</property>
- <property name="use_underline">True</property>
-
- <child>
- <widget class="GtkMenu" id="help3_menu">
-
- <child>
- <widget class="GtkImageMenuItem" id="icon_legend1">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Icon Legend</property>
- <property name="use_underline">True</property>
- <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="image1743">
- <property name="visible">True</property>
- <property name="stock">gtk-dialog-info</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="changelogs_menu">
- <property name="visible">True</property>
- <property name="tooltip" translatable="yes">View ChangeLogs</property>
- <property name="label" translatable="yes">ChangeLogs</property>
- <property name="use_underline">True</property>
- <signal name="activate" handler="view_changelogs" last_modification_time="Sat, 08 Mar 2008 21:29:50 GMT"/>
-
- <child internal-child="image">
- <widget class="GtkImage" id="image1744">
- <property name="visible">True</property>
- <property name="stock">gtk-info</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="about3">
- <property name="visible">True</property>
- <property name="label" translatable="yes">About</property>
- <property name="use_underline">True</property>
- <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="image1745">
- <property name="visible">True</property>
- <property name="stock">gtk-about</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>
- </widget>
- </child>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkToolbar" id="action_toolbar">
- <property name="visible">True</property>
- <property name="orientation">GTK_ORIENTATION_HORIZONTAL</property>
- <property name="toolbar_style">GTK_TOOLBAR_BOTH</property>
- <property name="tooltips">True</property>
- <property name="show_arrow">True</property>
-
- <child>
- <widget class="GtkToolButton" id="action_bar_update_button">
- <property name="visible">True</property>
- <property name="tooltip" translatable="yes">Update local package cache</property>
- <property name="label" translatable="yes">Update</property>
- <property name="use_underline">True</property>
- <property name="stock_id">gtk-refresh</property>
- <property name="visible_horizontal">True</property>
- <property name="visible_vertical">True</property>
- <property name="is_important">False</property>
- <signal name="clicked" handler="update_callback" object="gslapt" last_modification_time="Fri, 14 Nov 2003 19:05:38 GMT"/>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="homogeneous">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkToolButton" id="action_bar_upgrade_button">
- <property name="visible">True</property>
- <property name="tooltip" translatable="yes">Mark all possible upgrades</property>
- <property name="label" translatable="yes">Mark All Upgrades</property>
- <property name="use_underline">True</property>
- <property name="stock_id">gtk-go-up</property>
- <property name="visible_horizontal">True</property>
- <property name="visible_vertical">True</property>
- <property name="is_important">False</property>
- <signal name="clicked" handler="upgrade_callback" object="gslapt" last_modification_time="Fri, 14 Nov 2003 19:05:58 GMT"/>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="homogeneous">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkSeparatorToolItem" id="separatortoolitem1">
- <property name="visible">True</property>
- <property name="draw">True</property>
- <property name="visible_horizontal">True</property>
- <property name="visible_vertical">True</property>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="homogeneous">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkToolButton" id="action_bar_execute_button">
- <property name="visible">True</property>
- <property name="tooltip" translatable="yes">Execute all scheduled actions in current transaction</property>
- <property name="label" translatable="yes">Execute</property>
- <property name="use_underline">True</property>
- <property name="stock_id">gtk-apply</property>
- <property name="visible_horizontal">True</property>
- <property name="visible_vertical">True</property>
- <property name="is_important">False</property>
- <signal name="clicked" handler="execute_callback" object="gslapt" last_modification_time="Fri, 14 Nov 2003 19:06:49 GMT"/>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="homogeneous">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkVBox" id="search_vbox">
- <property name="border_width">6</property>
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">6</property>
-
- <child>
- <widget class="GtkAlignment" id="search_align">
- <property name="border_width">1</property>
- <property name="visible">True</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xscale">1</property>
- <property name="yscale">1</property>
- <property name="top_padding">0</property>
- <property name="bottom_padding">0</property>
- <property name="left_padding">0</property>
- <property name="right_padding">0</property>
-
- <child>
- <widget class="GtkHBox" id="search_hbox">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkLabel" id="label292">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Search</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">6</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkEntry" id="search_entry">
- <property name="visible">True</property>
- <property name="can_default">True</property>
- <property name="has_default">True</property>
- <property name="can_focus">True</property>
- <property name="has_focus">True</property>
- <property name="editable">True</property>
- <property name="visibility">True</property>
- <property name="max_length">0</property>
- <property name="text" translatable="yes"></property>
- <property name="has_frame">True</property>
- <property name="invisible_char">*</property>
- <property name="activates_default">False</property>
- <signal name="editing_done" handler="search_activated" object="gslapt" last_modification_time="Sun, 05 Nov 2006 08:32:36 GMT"/>
- <signal name="activate" handler="search_activated" object="gslapt" last_modification_time="Sun, 05 Nov 2006 08:32:46 GMT"/>
- <accelerator key="L" modifiers="GDK_CONTROL_MASK" signal="grab_focus"/>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkVPaned" id="pkg_vpaned">
- <property name="border_width">6</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
-
- <child>
- <widget class="GtkScrolledWindow" id="pkg_list_scrolled">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="shadow_type">GTK_SHADOW_NONE</property>
- <property name="window_placement">GTK_CORNER_TOP_LEFT</property>
-
- <child>
- <widget class="GtkTreeView" id="pkg_listing_treeview">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="headers_visible">True</property>
- <property name="rules_hint">True</property>
- <property name="reorderable">False</property>
- <property name="enable_search">True</property>
- <property name="fixed_height_mode">False</property>
- <property name="hover_selection">False</property>
- <property name="hover_expand">False</property>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="shrink">True</property>
- <property name="resize">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkNotebook" id="pkg_info_notebook">
- <property name="border_width">6</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="show_tabs">True</property>
- <property name="show_border">False</property>
- <property name="tab_pos">GTK_POS_TOP</property>
- <property name="scrollable">True</property>
- <property name="enable_popup">False</property>
-
- <child>
- <widget class="GtkScrolledWindow" id="scrolledwindow20">
- <property name="border_width">12</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="shadow_type">GTK_SHADOW_NONE</property>
- <property name="window_placement">GTK_CORNER_TOP_LEFT</property>
-
- <child>
- <widget class="GtkViewport" id="viewport1">
- <property name="visible">True</property>
- <property name="shadow_type">GTK_SHADOW_IN</property>
-
- <child>
- <widget class="GtkVBox" id="vbox63">
- <property name="border_width">6</property>
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">18</property>
-
- <child>
- <widget class="GtkTable" id="table2">
- <property name="visible">True</property>
- <property name="n_rows">7</property>
- <property name="n_columns">2</property>
- <property name="homogeneous">False</property>
- <property name="row_spacing">6</property>
- <property name="column_spacing">12</property>
-
- <child>
- <widget class="GtkLabel" id="label226">
- <property name="visible">True</property>
- <property name="label" translatable="yes">&lt;b&gt;Name:&lt;/b&gt;</property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">0</property>
- <property name="bottom_attach">1</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="pkg_info_name">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes">No package is selected.</property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">True</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">0</property>
- <property name="bottom_attach">1</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label250">
- <property name="visible">True</property>
- <property name="label" translatable="yes">&lt;b&gt;Status:&lt;/b&gt;</property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">2</property>
- <property name="bottom_attach">3</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label227">
- <property name="visible">True</property>
- <property name="label" translatable="yes">&lt;b&gt;Description:&lt;/b&gt;</property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="pkg_info_description">
- <property name="visible">True</property>
- <property name="label" translatable="yes"></property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label273">
- <property name="visible">True</property>
- <property name="label" translatable="yes">&lt;b&gt;Version:&lt;/b&gt;</property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">4</property>
- <property name="bottom_attach">5</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="pkg_info_version">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes"></property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">True</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">4</property>
- <property name="bottom_attach">5</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="pkg_info_status">
- <property name="visible">True</property>
- <property name="label" translatable="yes"></property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">2</property>
- <property name="bottom_attach">3</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label291">
- <property name="visible">True</property>
- <property name="label" translatable="yes">&lt;b&gt;Source:&lt;/b&gt;</property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">5</property>
- <property name="bottom_attach">6</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="pkg_info_source">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes"></property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">True</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">5</property>
- <property name="bottom_attach">6</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label298">
- <property name="visible">True</property>
- <property name="label" translatable="yes">&lt;b&gt;Priority:&lt;/b&gt;</property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">6</property>
- <property name="bottom_attach">7</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="pkg_info_priority">
- <property name="visible">True</property>
- <property name="label" translatable="yes"></property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">6</property>
- <property name="bottom_attach">7</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label244">
- <property name="visible">True</property>
- <property name="label" translatable="yes">&lt;b&gt;Location:&lt;/b&gt;</property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">3</property>
- <property name="bottom_attach">4</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="pkg_info_location">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes"></property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">True</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">3</property>
- <property name="bottom_attach">4</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkVBox" id="vbox67">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkLabel" id="label272">
- <property name="visible">True</property>
- <property name="label" translatable="yes">&lt;b&gt;Installed Version&lt;/b&gt;</property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkHBox" id="hbox106">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkLabel" id="label271">
- <property name="visible">True</property>
- <property name="label"> </property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkTable" id="table3">
- <property name="border_width">1</property>
- <property name="visible">True</property>
- <property name="n_rows">2</property>
- <property name="n_columns">2</property>
- <property name="homogeneous">False</property>
- <property name="row_spacing">6</property>
- <property name="column_spacing">12</property>
-
- <child>
- <widget class="GtkLabel" id="label237">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Version:</property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">0</property>
- <property name="bottom_attach">1</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="pkg_info_installed_version">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes"></property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">True</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">0</property>
- <property name="bottom_attach">1</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label239">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Installed Size:</property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="pkg_info_installed_installed_size">
- <property name="visible">True</property>
- <property name="label" translatable="yes"></property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkVBox" id="vbox66">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">6</property>
-
- <child>
- <widget class="GtkLabel" id="label261">
- <property name="visible">True</property>
- <property name="label" translatable="yes">&lt;b&gt;Latest Available Version&lt;/b&gt;</property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkHBox" id="hbox105">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkLabel" id="label262">
- <property name="visible">True</property>
- <property name="label"> </property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkTable" id="table5">
- <property name="visible">True</property>
- <property name="n_rows">4</property>
- <property name="n_columns">2</property>
- <property name="homogeneous">False</property>
- <property name="row_spacing">6</property>
- <property name="column_spacing">12</property>
-
- <child>
- <widget class="GtkLabel" id="label263">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Version:</property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">0</property>
- <property name="bottom_attach">1</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label264">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Size:</property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label265">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Installed Size:</property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">2</property>
- <property name="bottom_attach">3</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label266">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Source:</property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">3</property>
- <property name="bottom_attach">4</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="pkg_info_available_version">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes"></property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">True</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">0</property>
- <property name="bottom_attach">1</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="pkg_info_available_size">
- <property name="visible">True</property>
- <property name="label" translatable="yes"></property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="pkg_info_available_installed_size">
- <property name="visible">True</property>
- <property name="label" translatable="yes"></property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">2</property>
- <property name="bottom_attach">3</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="pkg_info_available_source">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes"></property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">True</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">3</property>
- <property name="bottom_attach">4</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="tab_expand">False</property>
- <property name="tab_fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="pkg_info_common_label">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Common</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="type">tab</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkVBox" id="vbox64">
- <property name="border_width">12</property>
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkScrolledWindow" id="scrolledwindow19">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="shadow_type">GTK_SHADOW_IN</property>
- <property name="window_placement">GTK_CORNER_TOP_LEFT</property>
-
- <child>
- <widget class="GtkTextView" id="pkg_description_textview">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="editable">False</property>
- <property name="overwrite">False</property>
- <property name="accepts_tab">True</property>
- <property name="justification">GTK_JUSTIFY_LEFT</property>
- <property name="wrap_mode">GTK_WRAP_NONE</property>
- <property name="cursor_visible">False</property>
- <property name="pixels_above_lines">0</property>
- <property name="pixels_below_lines">0</property>
- <property name="pixels_inside_wrap">0</property>
- <property name="left_margin">0</property>
- <property name="right_margin">0</property>
- <property name="indent">0</property>
- <property name="text" translatable="yes"></property>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="tab_expand">False</property>
- <property name="tab_fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="pkg_info_description_label">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Description</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="type">tab</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkScrolledWindow" id="scrolledwindow21">
- <property name="border_width">12</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="shadow_type">GTK_SHADOW_NONE</property>
- <property name="window_placement">GTK_CORNER_TOP_LEFT</property>
-
- <child>
- <widget class="GtkTreeView" id="dep_conf_sug_treeview">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="headers_visible">False</property>
- <property name="rules_hint">False</property>
- <property name="reorderable">False</property>
- <property name="enable_search">False</property>
- <property name="fixed_height_mode">False</property>
- <property name="hover_selection">False</property>
- <property name="hover_expand">False</property>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="tab_expand">False</property>
- <property name="tab_fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="pkg_info_dependencies_label">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Dependencies</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="type">tab</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkScrolledWindow" id="scrolledwindow23">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="shadow_type">GTK_SHADOW_IN</property>
- <property name="window_placement">GTK_CORNER_TOP_LEFT</property>
-
- <child>
- <widget class="GtkTextView" id="pkg_changelog_textview">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="editable">False</property>
- <property name="overwrite">False</property>
- <property name="accepts_tab">True</property>
- <property name="justification">GTK_JUSTIFY_LEFT</property>
- <property name="wrap_mode">GTK_WRAP_WORD</property>
- <property name="cursor_visible">False</property>
- <property name="pixels_above_lines">0</property>
- <property name="pixels_below_lines">0</property>
- <property name="pixels_inside_wrap">0</property>
- <property name="left_margin">0</property>
- <property name="right_margin">0</property>
- <property name="indent">0</property>
- <property name="text" translatable="yes"></property>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="tab_expand">False</property>
- <property name="tab_fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="pkg_info_changelog">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Changelog</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="type">tab</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkScrolledWindow" id="scrolledwindow25">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="hscrollbar_policy">GTK_POLICY_ALWAYS</property>
- <property name="vscrollbar_policy">GTK_POLICY_ALWAYS</property>
- <property name="shadow_type">GTK_SHADOW_IN</property>
- <property name="window_placement">GTK_CORNER_TOP_LEFT</property>
-
- <child>
- <widget class="GtkTextView" id="pkg_filelist_textview">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="editable">False</property>
- <property name="overwrite">False</property>
- <property name="accepts_tab">True</property>
- <property name="justification">GTK_JUSTIFY_LEFT</property>
- <property name="wrap_mode">GTK_WRAP_WORD</property>
- <property name="cursor_visible">False</property>
- <property name="pixels_above_lines">0</property>
- <property name="pixels_below_lines">0</property>
- <property name="pixels_inside_wrap">0</property>
- <property name="left_margin">0</property>
- <property name="right_margin">0</property>
- <property name="indent">0</property>
- <property name="text" translatable="yes"></property>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="tab_expand">False</property>
- <property name="tab_fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="pkg_info_filelist">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Files</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="type">tab</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="shrink">True</property>
- <property name="resize">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkStatusbar" id="bottom_statusbar">
- <property name="visible">True</property>
- <property name="has_resize_grip">True</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
- </widget>
- </child>
-</widget>
-
-<widget class="GtkWindow" id="transaction_window">
- <property name="border_width">12</property>
- <property name="visible">True</property>
- <property name="title" translatable="yes">Summary</property>
- <property name="type">GTK_WINDOW_TOPLEVEL</property>
- <property name="window_position">GTK_WIN_POS_CENTER</property>
- <property name="modal">True</property>
- <property name="default_width">200</property>
- <property name="default_height">400</property>
- <property name="resizable">True</property>
- <property name="destroy_with_parent">False</property>
- <property name="icon">gslapt.png</property>
- <property name="decorated">True</property>
- <property name="skip_taskbar_hint">False</property>
- <property name="skip_pager_hint">False</property>
- <property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
- <property name="gravity">GDK_GRAVITY_CENTER</property>
- <property name="focus_on_map">True</property>
- <property name="urgency_hint">False</property>
- <signal name="destroy_event" handler="gtk_widget_destroy" last_modification_time="Tue, 08 Feb 2005 16:18:17 GMT"/>
-
- <child>
- <widget class="GtkVBox" id="vbox47">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">6</property>
-
- <child>
- <widget class="GtkVBox" id="vbox61">
- <property name="border_width">6</property>
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">2</property>
-
- <child>
- <widget class="GtkHBox" id="hbox97">
- <property name="border_width">6</property>
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">2</property>
-
- <child>
- <widget class="GtkImage" id="image852">
- <property name="visible">True</property>
- <property name="stock">gtk-dialog-question</property>
- <property name="icon_size">6</property>
- <property name="xalign">0</property>
- <property name="yalign">0</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkVBox" id="vbox62">
- <property name="border_width">6</property>
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">2</property>
-
- <child>
- <widget class="GtkLabel" id="label167">
- <property name="visible">True</property>
- <property name="label" translatable="yes">&lt;span weight=&quot;bold&quot; size=&quot;large&quot;&gt;Apply the following changes?&lt;/span&gt;</property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label168">
- <property name="visible">True</property>
- <property name="label" translatable="yes">This is a summary of the changes about to be performed.</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">True</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0</property>
- <property name="xpad">0</property>
- <property name="ypad">6</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkScrolledWindow" id="scrolledwindow18">
- <property name="border_width">1</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="vscrollbar_policy">GTK_POLICY_ALWAYS</property>
- <property name="shadow_type">GTK_SHADOW_NONE</property>
- <property name="window_placement">GTK_CORNER_TOP_LEFT</property>
-
- <child>
- <widget class="GtkTreeView" id="transaction_summary_treeview">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="headers_visible">False</property>
- <property name="rules_hint">True</property>
- <property name="reorderable">False</property>
- <property name="enable_search">True</property>
- <property name="fixed_height_mode">False</property>
- <property name="hover_selection">False</property>
- <property name="hover_expand">False</property>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkVBox" id="summary_breakdown">
- <property name="border_width">6</property>
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">2</property>
-
- <child>
- <widget class="GtkLabel" id="summary_pkg_numbers">
- <property name="visible">True</property>
- <property name="label" translatable="yes"></property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0</property>
- <property name="xpad">6</property>
- <property name="ypad">1</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="summary_dl_size">
- <property name="visible">True</property>
- <property name="label" translatable="yes"></property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0</property>
- <property name="xpad">6</property>
- <property name="ypad">1</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="summary_free_space">
- <property name="visible">True</property>
- <property name="label" translatable="yes"></property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0</property>
- <property name="xpad">6</property>
- <property name="ypad">1</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkCheckButton" id="download_only_checkbutton">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes">Download packages only</property>
- <property name="use_underline">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="focus_on_click">True</property>
- <property name="active">False</property>
- <property name="inconsistent">False</property>
- <property name="draw_indicator">True</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">2</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkHButtonBox" id="hbuttonbox1">
- <property name="border_width">2</property>
- <property name="visible">True</property>
- <property name="layout_style">GTK_BUTTONBOX_END</property>
- <property name="spacing">6</property>
-
- <child>
- <widget class="GtkButton" id="button2">
- <property name="visible">True</property>
- <property name="can_default">True</property>
- <property name="can_focus">True</property>
- <property name="label">gtk-cancel</property>
- <property name="use_stock">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="focus_on_click">True</property>
- <signal name="clicked" handler="cancel_transaction" object="transaction_window" last_modification_time="Mon, 21 Feb 2005 21:25:57 GMT"/>
- </widget>
- </child>
-
- <child>
- <widget class="GtkButton" id="button3">
- <property name="visible">True</property>
- <property name="can_default">True</property>
- <property name="can_focus">True</property>
- <property name="label">gtk-ok</property>
- <property name="use_stock">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="focus_on_click">True</property>
- <signal name="clicked" handler="transaction_okbutton_clicked" object="transaction_window" last_modification_time="Fri, 05 Aug 2005 16:43:04 GMT"/>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="padding">1</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- </child>
-</widget>
-
-<widget class="GtkWindow" id="dl_progress_window">
- <property name="border_width">12</property>
- <property name="visible">True</property>
- <property name="title" translatable="yes">working</property>
- <property name="type">GTK_WINDOW_TOPLEVEL</property>
- <property name="window_position">GTK_WIN_POS_CENTER</property>
- <property name="modal">True</property>
- <property name="resizable">True</property>
- <property name="destroy_with_parent">False</property>
- <property name="icon">gslapt.png</property>
- <property name="decorated">True</property>
- <property name="skip_taskbar_hint">False</property>
- <property name="skip_pager_hint">False</property>
- <property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
- <property name="gravity">GDK_GRAVITY_CENTER</property>
- <property name="focus_on_map">True</property>
- <property name="urgency_hint">False</property>
- <signal name="delete_event" handler="gtk_true" last_modification_time="Wed, 02 Mar 2005 20:25:17 GMT"/>
-
- <child>
- <widget class="GtkVBox" id="vbox49">
- <property name="border_width">6</property>
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">2</property>
-
- <child>
- <widget class="GtkProgressBar" id="progress_progressbar">
- <property name="visible">True</property>
- <property name="orientation">GTK_PROGRESS_LEFT_TO_RIGHT</property>
- <property name="fraction">0</property>
- <property name="pulse_step">0.10000000149</property>
- <property name="text" translatable="yes">total progress</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkProgressBar" id="dl_progress">
- <property name="visible">True</property>
- <property name="orientation">GTK_PROGRESS_LEFT_TO_RIGHT</property>
- <property name="fraction">0</property>
- <property name="pulse_step">0.10000000149</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- </widget>
- <packing>
- <property name="padding">2</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="progress_dl_speed">
- <property name="visible">True</property>
- <property name="label" translatable="yes"></property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="progress_action">
- <property name="visible">True</property>
- <property name="label" translatable="yes"></property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">6</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="progress_message">
- <property name="visible">True</property>
- <property name="label" translatable="yes"></property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">6</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="progress_package_description">
- <property name="visible">True</property>
- <property name="label" translatable="yes"></property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">6</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkHButtonBox" id="hbuttonbox2">
- <property name="visible">True</property>
- <property name="layout_style">GTK_BUTTONBOX_END</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkButton" id="button4">
- <property name="visible">True</property>
- <property name="can_default">True</property>
- <property name="can_focus">True</property>
- <property name="label">gtk-cancel</property>
- <property name="use_stock">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="focus_on_click">True</property>
- <signal name="clicked" handler="on_button_cancel_clicked" last_modification_time="Sun, 05 Jun 2005 19:26:46 GMT"/>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- </child>
-</widget>
-
-<widget class="GtkDialog" id="about">
- <property name="visible">True</property>
- <property name="title" translatable="yes">About gslapt</property>
- <property name="type">GTK_WINDOW_TOPLEVEL</property>
- <property name="window_position">GTK_WIN_POS_CENTER</property>
- <property name="modal">False</property>
- <property name="resizable">True</property>
- <property name="destroy_with_parent">True</property>
- <property name="icon">gslapt.png</property>
- <property name="decorated">True</property>
- <property name="skip_taskbar_hint">False</property>
- <property name="skip_pager_hint">False</property>
- <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
- <property name="gravity">GDK_GRAVITY_CENTER</property>
- <property name="focus_on_map">True</property>
- <property name="urgency_hint">False</property>
- <property name="has_separator">True</property>
-
- <child internal-child="vbox">
- <widget class="GtkVBox" id="dialog-vbox1">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child internal-child="action_area">
- <widget class="GtkHButtonBox" id="dialog-action_area1">
- <property name="visible">True</property>
- <property name="layout_style">GTK_BUTTONBOX_END</property>
-
- <child>
- <widget class="GtkButton" id="closebutton1">
- <property name="visible">True</property>
- <property name="can_default">True</property>
- <property name="can_focus">True</property>
- <property name="label">gtk-close</property>
- <property name="use_stock">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="focus_on_click">True</property>
- <property name="response_id">-7</property>
- <signal name="clicked" handler="gtk_widget_destroy" object="about" last_modification_time="Fri, 11 Feb 2005 16:37:34 GMT"/>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="pack_type">GTK_PACK_END</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkVBox" id="vbox50">
- <property name="visible">True</property>
- <property name="homogeneous">True</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkImage" id="image853">
- <property name="visible">True</property>
- <property name="pixbuf">gslapt.png</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label146">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">&lt;span weight=&quot;bold&quot; size=&quot;xx-large&quot;&gt;&lt;/span&gt;</property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_RIGHT</property>
- <property name="wrap">False</property>
- <property name="selectable">True</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label147">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes">gslapt is a GTK+ frontend to slapt-get, an APT like package system for Slackware</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_CENTER</property>
- <property name="wrap">True</property>
- <property name="selectable">True</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label170">
- <property name="visible">True</property>
- <property name="label" translatable="yes"></property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label149">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label">&lt;span size=&quot;small&quot;&gt;Copyright (c) 2005-2009 Jason Woodward
-http://software.jaos.org/#gslapt&lt;/span&gt;</property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_CENTER</property>
- <property name="wrap">False</property>
- <property name="selectable">True</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- </child>
-</widget>
-
-<widget class="GtkDialog" id="notification">
- <property name="border_width">2</property>
- <property name="visible">True</property>
- <property name="title" translatable="yes"></property>
- <property name="type">GTK_WINDOW_TOPLEVEL</property>
- <property name="window_position">GTK_WIN_POS_CENTER</property>
- <property name="modal">True</property>
- <property name="resizable">True</property>
- <property name="destroy_with_parent">False</property>
- <property name="icon">gslapt.png</property>
- <property name="decorated">True</property>
- <property name="skip_taskbar_hint">False</property>
- <property name="skip_pager_hint">False</property>
- <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
- <property name="gravity">GDK_GRAVITY_CENTER</property>
- <property name="focus_on_map">True</property>
- <property name="urgency_hint">False</property>
- <property name="has_separator">True</property>
-
- <child internal-child="vbox">
- <widget class="GtkVBox" id="dialog-vbox3">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child internal-child="action_area">
- <widget class="GtkHButtonBox" id="dialog-action_area3">
- <property name="visible">True</property>
- <property name="layout_style">GTK_BUTTONBOX_END</property>
-
- <child>
- <widget class="GtkButton" id="okbutton2">
- <property name="visible">True</property>
- <property name="can_default">True</property>
- <property name="can_focus">True</property>
- <property name="label">gtk-close</property>
- <property name="use_stock">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="focus_on_click">True</property>
- <property name="response_id">-7</property>
- <signal name="clicked" handler="gtk_widget_destroy" object="notification" last_modification_time="Mon, 21 Feb 2005 04:15:31 GMT"/>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="pack_type">GTK_PACK_END</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkHBox" id="hbox112">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">6</property>
-
- <child>
- <widget class="GtkImage" id="image1260">
- <property name="visible">True</property>
- <property name="stock">gtk-dialog-info</property>
- <property name="icon_size">6</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.20000000298</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="padding">6</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="notification_label">
- <property name="visible">True</property>
- <property name="label" translatable="yes"></property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">6</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">2</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- </child>
-</widget>
-
-<widget class="GtkDialog" id="icon_legend">
- <property name="border_width">2</property>
- <property name="visible">True</property>
- <property name="title" translatable="yes">Icon Legend</property>
- <property name="type">GTK_WINDOW_TOPLEVEL</property>
- <property name="window_position">GTK_WIN_POS_CENTER</property>
- <property name="modal">False</property>
- <property name="resizable">True</property>
- <property name="destroy_with_parent">False</property>
- <property name="icon">gslapt.png</property>
- <property name="decorated">True</property>
- <property name="skip_taskbar_hint">False</property>
- <property name="skip_pager_hint">False</property>
- <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
- <property name="gravity">GDK_GRAVITY_CENTER</property>
- <property name="focus_on_map">True</property>
- <property name="urgency_hint">False</property>
- <property name="has_separator">True</property>
-
- <child internal-child="vbox">
- <widget class="GtkVBox" id="dialog-vbox4">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child internal-child="action_area">
- <widget class="GtkHButtonBox" id="dialog-action_area4">
- <property name="visible">True</property>
- <property name="layout_style">GTK_BUTTONBOX_END</property>
-
- <child>
- <widget class="GtkButton" id="closebutton2">
- <property name="visible">True</property>
- <property name="can_default">True</property>
- <property name="can_focus">True</property>
- <property name="label">gtk-close</property>
- <property name="use_stock">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="focus_on_click">True</property>
- <property name="response_id">-7</property>
- <signal name="clicked" handler="gtk_widget_destroy" object="icon_legend" last_modification_time="Wed, 01 Jun 2005 03:14:44 GMT"/>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="pack_type">GTK_PACK_END</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkVBox" id="vbox65">
- <property name="border_width">6</property>
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">6</property>
-
- <child>
- <widget class="GtkLabel" id="label252">
- <property name="visible">True</property>
- <property name="label" translatable="yes">&lt;b&gt;The following icons are used to indicate the current status of a package:&lt;/b&gt;</property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">True</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label260">
- <property name="visible">True</property>
- <property name="label" translatable="yes"></property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkHBox" id="hbox98">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkImage" id="image865">
- <property name="visible">True</property>
- <property name="pixbuf">pkg_action_available.png</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="padding">6</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label253">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Not Installed</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">6</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkHBox" id="hbox109">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkImage" id="image1257">
- <property name="visible">True</property>
- <property name="pixbuf">pkg_action_available_excluded.png</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="padding">6</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label277">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Not Installed</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">6</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label280">
- <property name="visible">True</property>
- <property name="label">/</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label281">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Excluded</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">6</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkHBox" id="hbox99">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkImage" id="image866">
- <property name="visible">True</property>
- <property name="pixbuf">pkg_action_installed.png</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="padding">6</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label254">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Installed</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">6</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkHBox" id="hbox108">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkImage" id="image1256">
- <property name="visible">True</property>
- <property name="pixbuf">pkg_action_installed_excluded.png</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="padding">6</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label276">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Installed</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">6</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label278">
- <property name="visible">True</property>
- <property name="label">/</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label279">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Excluded</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">6</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkHBox" id="hbox100">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkImage" id="image867">
- <property name="visible">True</property>
- <property name="pixbuf">pkg_action_install.png</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="padding">6</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label255">
- <property name="visible">True</property>
- <property name="label" translatable="yes">To be Installed</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">6</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkHBox" id="hbox101">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkImage" id="image868">
- <property name="visible">True</property>
- <property name="pixbuf">pkg_action_reinstall.png</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="padding">6</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label256">
- <property name="visible">True</property>
- <property name="label" translatable="yes">To be Re-Installed</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">6</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkHBox" id="hbox102">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkImage" id="image869">
- <property name="visible">True</property>
- <property name="pixbuf">pkg_action_upgrade.png</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="padding">6</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label257">
- <property name="visible">True</property>
- <property name="label" translatable="yes">To be Upgraded</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">6</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkHBox" id="hbox103">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkImage" id="image870">
- <property name="visible">True</property>
- <property name="pixbuf">pkg_action_remove.png</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="padding">6</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label258">
- <property name="visible">True</property>
- <property name="label" translatable="yes">To be Removed</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">6</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkHBox" id="hbox104">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkImage" id="image871">
- <property name="visible">True</property>
- <property name="pixbuf">pkg_action_downgrade.png</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="padding">6</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label259">
- <property name="visible">True</property>
- <property name="label" translatable="yes">To be Downgraded</property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">6</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- </child>
-</widget>
-
-<widget class="GtkWindow" id="pkgtools_progress_window">
- <property name="border_width">12</property>
- <property name="visible">True</property>
- <property name="title" translatable="yes">working</property>
- <property name="type">GTK_WINDOW_TOPLEVEL</property>
- <property name="window_position">GTK_WIN_POS_CENTER</property>
- <property name="modal">True</property>
- <property name="resizable">True</property>
- <property name="destroy_with_parent">False</property>
- <property name="icon">gslapt.png</property>
- <property name="decorated">True</property>
- <property name="skip_taskbar_hint">False</property>
- <property name="skip_pager_hint">False</property>
- <property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
- <property name="gravity">GDK_GRAVITY_CENTER</property>
- <property name="focus_on_map">True</property>
- <property name="urgency_hint">False</property>
- <signal name="delete_event" handler="gtk_true" last_modification_time="Sun, 05 Jun 2005 20:15:50 GMT"/>
-
- <child>
- <widget class="GtkVBox" id="vbox68">
- <property name="border_width">6</property>
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">2</property>
-
- <child>
- <widget class="GtkProgressBar" id="progress_progressbar">
- <property name="visible">True</property>
- <property name="orientation">GTK_PROGRESS_LEFT_TO_RIGHT</property>
- <property name="fraction">0</property>
- <property name="pulse_step">0.10000000149</property>
- <property name="text" translatable="yes">total progress</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="progress_action">
- <property name="visible">True</property>
- <property name="label" translatable="yes"></property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">2</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="progress_message">
- <property name="visible">True</property>
- <property name="label" translatable="yes"></property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">6</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="progress_package_description">
- <property name="visible">True</property>
- <property name="label" translatable="yes"></property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">6</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
- </widget>
- </child>
-</widget>
-
-<widget class="GtkDialog" id="repositories_changed">
- <property name="visible">True</property>
- <property name="title" translatable="yes">Repositories changed</property>
- <property name="type">GTK_WINDOW_TOPLEVEL</property>
- <property name="window_position">GTK_WIN_POS_NONE</property>
- <property name="modal">True</property>
- <property name="resizable">True</property>
- <property name="destroy_with_parent">False</property>
- <property name="icon">gslapt.png</property>
- <property name="decorated">True</property>
- <property name="skip_taskbar_hint">False</property>
- <property name="skip_pager_hint">False</property>
- <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
- <property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
- <property name="focus_on_map">True</property>
- <property name="urgency_hint">False</property>
- <property name="has_separator">True</property>
-
- <child internal-child="vbox">
- <widget class="GtkVBox" id="dialog-vbox5">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">6</property>
-
- <child internal-child="action_area">
- <widget class="GtkHButtonBox" id="dialog-action_area5">
- <property name="visible">True</property>
- <property name="layout_style">GTK_BUTTONBOX_END</property>
-
- <child>
- <widget class="GtkButton" id="button5">
- <property name="visible">True</property>
- <property name="can_default">True</property>
- <property name="can_focus">True</property>
- <property name="label">gtk-no</property>
- <property name="use_stock">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="focus_on_click">True</property>
- <property name="response_id">-9</property>
- <signal name="clicked" handler="gtk_widget_destroy" object="repositories_changed" last_modification_time="Sun, 17 Jul 2005 23:31:44 GMT"/>
- </widget>
- </child>
-
- <child>
- <widget class="GtkButton" id="button6">
- <property name="visible">True</property>
- <property name="can_default">True</property>
- <property name="can_focus">True</property>
- <property name="label">gtk-yes</property>
- <property name="use_stock">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="focus_on_click">True</property>
- <property name="response_id">-8</property>
- <signal name="clicked" handler="repositories_changed_callback" object="repositories_changed" last_modification_time="Sun, 17 Jul 2005 23:32:22 GMT"/>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="pack_type">GTK_PACK_END</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkHBox" id="hbox114">
- <property name="border_width">2</property>
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">6</property>
-
- <child>
- <widget class="GtkImage" id="image1299">
- <property name="visible">True</property>
- <property name="stock">gtk-dialog-info</property>
- <property name="icon_size">6</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.20000000298</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="padding">6</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkVBox" id="vbox73">
- <property name="border_width">6</property>
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">6</property>
-
- <child>
- <widget class="GtkLabel" id="label287">
- <property name="visible">True</property>
- <property name="label" translatable="yes">&lt;span size=&quot;large&quot; weight=&quot;bold&quot;&gt;Repositories changed&lt;/span&gt;</property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">6</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label288">
- <property name="visible">True</property>
- <property name="label" translatable="yes">You need to reload the package list from the sources you have listed. Do you want to do this now?</property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">True</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">6</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">6</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- </child>
-</widget>
-
-<widget class="GtkDialog" id="dep_error_dialog">
- <property name="border_width">2</property>
- <property name="visible">True</property>
- <property name="title" translatable="yes"></property>
- <property name="type">GTK_WINDOW_TOPLEVEL</property>
- <property name="window_position">GTK_WIN_POS_CENTER</property>
- <property name="modal">True</property>
- <property name="resizable">True</property>
- <property name="destroy_with_parent">False</property>
- <property name="icon">gslapt.png</property>
- <property name="decorated">True</property>
- <property name="skip_taskbar_hint">False</property>
- <property name="skip_pager_hint">False</property>
- <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
- <property name="gravity">GDK_GRAVITY_CENTER</property>
- <property name="focus_on_map">True</property>
- <property name="urgency_hint">False</property>
- <property name="has_separator">True</property>
-
- <child internal-child="vbox">
- <widget class="GtkVBox" id="dialog-vbox6">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">6</property>
-
- <child internal-child="action_area">
- <widget class="GtkHButtonBox" id="dialog-action_area6">
- <property name="visible">True</property>
- <property name="layout_style">GTK_BUTTONBOX_END</property>
-
- <child>
- <widget class="GtkButton" id="dep_error_cancel_button">
- <property name="visible">True</property>
- <property name="can_default">True</property>
- <property name="has_default">True</property>
- <property name="can_focus">True</property>
- <property name="has_focus">True</property>
- <property name="label">gtk-cancel</property>
- <property name="use_stock">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="focus_on_click">True</property>
- <property name="response_id">-6</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkButton" id="dep_error_install_button">
- <property name="visible">True</property>
- <property name="can_default">True</property>
- <property name="can_focus">True</property>
- <property name="label">gtk-ok</property>
- <property name="use_stock">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="focus_on_click">True</property>
- <property name="response_id">-5</property>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="pack_type">GTK_PACK_END</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkHBox" id="hbox113">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">6</property>
-
- <child>
- <widget class="GtkImage" id="image1261">
- <property name="visible">True</property>
- <property name="stock">gtk-dialog-error</property>
- <property name="icon_size">6</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.20000000298</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="padding">6</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkVBox" id="vbox72">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkLabel" id="label285">
- <property name="visible">True</property>
- <property name="label" translatable="yes"></property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="dep_error_label">
- <property name="visible">True</property>
- <property name="label" translatable="yes"></property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">True</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkScrolledWindow" id="scrolledwindow22">
- <property name="border_width">2</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
- <property name="shadow_type">GTK_SHADOW_NONE</property>
- <property name="window_placement">GTK_CORNER_TOP_LEFT</property>
-
- <child>
- <widget class="GtkTextView" id="dep_error_text">
- <property name="border_width">2</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="editable">True</property>
- <property name="overwrite">False</property>
- <property name="accepts_tab">False</property>
- <property name="justification">GTK_JUSTIFY_LEFT</property>
- <property name="wrap_mode">GTK_WRAP_NONE</property>
- <property name="cursor_visible">False</property>
- <property name="pixels_above_lines">0</property>
- <property name="pixels_below_lines">0</property>
- <property name="pixels_inside_wrap">0</property>
- <property name="left_margin">0</property>
- <property name="right_margin">0</property>
- <property name="indent">0</property>
- <property name="text" translatable="yes"></property>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label286">
- <property name="visible">True</property>
- <property name="label" translatable="yes"></property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="dep_error_install_anyway_warning_label">
- <property name="visible">True</property>
- <property name="label" translatable="yes"></property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">True</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label284">
- <property name="visible">True</property>
- <property name="label" translatable="yes"></property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- </child>
-</widget>
-
-<widget class="GtkDialog" id="source_failed_dialog">
- <property name="visible">True</property>
- <property name="title" translatable="yes">Source failed</property>
- <property name="type">GTK_WINDOW_TOPLEVEL</property>
- <property name="window_position">GTK_WIN_POS_NONE</property>
- <property name="modal">False</property>
- <property name="resizable">True</property>
- <property name="destroy_with_parent">False</property>
- <property name="icon">gslapt.png</property>
- <property name="decorated">True</property>
- <property name="skip_taskbar_hint">False</property>
- <property name="skip_pager_hint">False</property>
- <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
- <property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
- <property name="focus_on_map">True</property>
- <property name="urgency_hint">False</property>
- <property name="has_separator">True</property>
-
- <child internal-child="vbox">
- <widget class="GtkVBox" id="dialog-vbox7">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child internal-child="action_area">
- <widget class="GtkHButtonBox" id="dialog-action_area7">
- <property name="visible">True</property>
- <property name="layout_style">GTK_BUTTONBOX_END</property>
-
- <child>
- <widget class="GtkButton" id="cancelbutton1">
- <property name="visible">True</property>
- <property name="can_default">True</property>
- <property name="can_focus">True</property>
- <property name="label">gtk-no</property>
- <property name="use_stock">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="focus_on_click">True</property>
- <property name="response_id">-9</property>
- </widget>
- </child>
-
- <child>
- <widget class="GtkButton" id="okbutton3">
- <property name="visible">True</property>
- <property name="can_default">True</property>
- <property name="can_focus">True</property>
- <property name="label">gtk-yes</property>
- <property name="use_stock">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="focus_on_click">True</property>
- <property name="response_id">-8</property>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="pack_type">GTK_PACK_END</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkHBox" id="hbox115">
- <property name="border_width">2</property>
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">6</property>
-
- <child>
- <widget class="GtkImage" id="image1300">
- <property name="visible">True</property>
- <property name="stock">gtk-dialog-error</property>
- <property name="icon_size">6</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.20000000298</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="padding">6</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkVBox" id="vbox74">
- <property name="border_width">6</property>
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">6</property>
-
- <child>
- <widget class="GtkLabel" id="failed_source_label">
- <property name="visible">True</property>
- <property name="label" translatable="yes"></property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">6</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label290">
- <property name="visible">True</property>
- <property name="label" translatable="yes">This package source failed or is not available. Do you want to disable this source and continue anyway?</property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">True</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">6</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- </child>
-</widget>
-
-<widget class="GtkWindow" id="changelog_window">
- <property name="visible">True</property>
- <property name="title" translatable="yes">ChangeLogs</property>
- <property name="type">GTK_WINDOW_TOPLEVEL</property>
- <property name="window_position">GTK_WIN_POS_NONE</property>
- <property name="modal">False</property>
- <property name="default_width">640</property>
- <property name="default_height">480</property>
- <property name="resizable">True</property>
- <property name="destroy_with_parent">False</property>
- <property name="icon">gslapt.png</property>
- <property name="decorated">True</property>
- <property name="skip_taskbar_hint">False</property>
- <property name="skip_pager_hint">False</property>
- <property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
- <property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
- <property name="focus_on_map">True</property>
- <property name="urgency_hint">False</property>
- <signal name="destroy_event" handler="gtk_widget_destroy" last_modification_time="Sat, 08 Mar 2008 22:04:48 GMT"/>
-
- <child>
- <widget class="GtkVBox" id="vbox78">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkNotebook" id="changelog_notebook">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="show_tabs">True</property>
- <property name="show_border">True</property>
- <property name="tab_pos">GTK_POS_TOP</property>
- <property name="scrollable">False</property>
- <property name="enable_popup">False</property>
-
- <child>
- <placeholder/>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label296">
- <property name="visible">True</property>
- <property name="label" translatable="yes"></property>
- <property name="use_underline">False</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="type">tab</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">6</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkHButtonBox" id="hbuttonbox3">
- <property name="visible">True</property>
- <property name="layout_style">GTK_BUTTONBOX_END</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkButton" id="button12">
- <property name="visible">True</property>
- <property name="can_default">True</property>
- <property name="can_focus">True</property>
- <property name="label">gtk-close</property>
- <property name="use_stock">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="focus_on_click">True</property>
- <signal name="clicked" handler="gtk_widget_destroy" object="changelog_window" last_modification_time="Sat, 08 Mar 2008 22:05:24 GMT"/>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="padding">6</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- </child>
-</widget>
-
-<widget class="GtkWindow" id="source_window">
- <property name="border_width">6</property>
- <property name="visible">True</property>
- <property name="title" translatable="yes">Package Source</property>
- <property name="type">GTK_WINDOW_TOPLEVEL</property>
- <property name="window_position">GTK_WIN_POS_CENTER</property>
- <property name="modal">True</property>
- <property name="resizable">True</property>
- <property name="destroy_with_parent">False</property>
- <property name="icon">gslapt.png</property>
- <property name="decorated">True</property>
- <property name="skip_taskbar_hint">False</property>
- <property name="skip_pager_hint">False</property>
- <property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
- <property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
- <property name="focus_on_map">True</property>
- <property name="urgency_hint">False</property>
-
- <child>
- <widget class="GtkVBox" id="vbox79">
- <property name="border_width">6</property>
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkTable" id="table6">
- <property name="border_width">6</property>
- <property name="visible">True</property>
- <property name="n_rows">2</property>
- <property name="n_columns">2</property>
- <property name="homogeneous">False</property>
- <property name="row_spacing">6</property>
- <property name="column_spacing">6</property>
-
- <child>
- <widget class="GtkLabel" id="priority_label">
- <property name="visible">True</property>
- <property name="label" translatable="yes">&lt;b&gt;Priority:&lt;/b&gt;</property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
- <property name="x_padding">6</property>
- <property name="x_options">fill</property>
- <property name="y_options">fill</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="source_label">
- <property name="visible">True</property>
- <property name="label" translatable="yes">&lt;b&gt;Source:&lt;/b&gt;</property>
- <property name="use_underline">False</property>
- <property name="use_markup">True</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">0</property>
- <property name="bottom_attach">1</property>
- <property name="x_padding">6</property>
- <property name="x_options">fill</property>
- <property name="y_options">fill</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkEntry" id="source_entry">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="editable">True</property>
- <property name="visibility">True</property>
- <property name="max_length">0</property>
- <property name="text" translatable="yes"></property>
- <property name="has_frame">True</property>
- <property name="invisible_char">●</property>
- <property name="activates_default">False</property>
- <property name="width_chars">60</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">0</property>
- <property name="bottom_attach">1</property>
- <property name="y_options">expand</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkComboBoxEntry" id="source_priority">
- <property name="border_width">6</property>
- <property name="visible">True</property>
- <property name="items" translatable="yes">Default
-Official
-Preferred
-Custom</property>
- <property name="add_tearoffs">False</property>
- <property name="has_frame">True</property>
- <property name="focus_on_click">True</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">6</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkHButtonBox" id="hbuttonbox4">
- <property name="visible">True</property>
- <property name="layout_style">GTK_BUTTONBOX_END</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkButton" id="button13">
- <property name="visible">True</property>
- <property name="can_default">True</property>
- <property name="can_focus">True</property>
- <property name="label">gtk-cancel</property>
- <property name="use_stock">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="focus_on_click">True</property>
- <signal name="clicked" handler="cancel_source_edit" object="source_window" last_modification_time="Fri, 28 Nov 2008 03:15:46 GMT"/>
- </widget>
- </child>
-
- <child>
- <widget class="GtkButton" id="button14">
- <property name="visible">True</property>
- <property name="can_default">True</property>
- <property name="can_focus">True</property>
- <property name="label">gtk-ok</property>
- <property name="use_stock">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="focus_on_click">True</property>
- <signal name="clicked" handler="source_edit_ok" object="source_window" last_modification_time="Fri, 28 Nov 2008 03:16:30 GMT"/>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- </child>
-</widget>
-
-</glade-interface>
diff --git a/gslapt.gladep b/gslapt.gladep
deleted file mode 100644
index b72fdee..0000000
--- a/gslapt.gladep
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
-<!DOCTYPE glade-project SYSTEM "http://glade.gnome.org/glade-project-2.0.dtd">
-
-<glade-project>
- <name>gslapt</name>
- <program_name>gslapt</program_name>
- <gnome_support>FALSE</gnome_support>
- <use_widget_names>TRUE</use_widget_names>
-</glade-project>
diff --git a/src/Makefile.am b/src/Makefile.am
index abca90d..534a000 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -4,8 +4,6 @@ sbin_PROGRAMS = gslapt
gslapt_SOURCES = \
main.c \
- support.c support.h \
- interface.c interface.h \
callbacks.c callbacks.h \
series.c series.h \
settings.c settings.h
diff --git a/src/callbacks.c b/src/callbacks.c
index 28ae6f2..9652470 100644
--- a/src/callbacks.c
+++ b/src/callbacks.c
@@ -25,12 +25,11 @@
#include <gtk/gtk.h>
#include "callbacks.h"
-#include "interface.h"
-#include "support.h"
#include "settings.h"
#include "series.h"
extern GtkWidget *gslapt;
+extern GtkBuilder *gslapt_builder;
extern GslaptSettings *gslapt_settings;
extern GHashTable *gslapt_series_map;
extern slapt_rc_config *global_config;
@@ -41,7 +40,9 @@ extern char rc_location[];
static GtkWidget *progress_window;
+static GtkBuilder *progress_window_builder = NULL;
static GtkWidget *preferences_window;
+static GtkBuilder *preferences_window_builder = NULL;
G_LOCK_DEFINE_STATIC (_cancelled);
static volatile guint _cancelled = 0;
static gboolean sources_modified = FALSE;
@@ -67,7 +68,7 @@ static void build_sources_treeviewlist (GtkWidget *treeview);
static void build_verification_sources_treeviewlist (GtkWidget *treeview);
#endif
static void build_exclude_treeviewlist (GtkWidget *treeview);
-static int populate_transaction_window (GtkWidget *trans_window);
+static int populate_transaction_window (GtkBuilder *b);
char *download_packages (void);
static gboolean install_packages (void);
static void set_execute_active (void);
@@ -78,8 +79,8 @@ static int ladd_deps_to_trans (slapt_transaction_t *tran, slapt_pkg_list_t *avai
slapt_pkg_list_t *installed_pkgs, slapt_pkg_info_t *pkg);
static gboolean toggle_source_status (GtkTreeView *treeview, gpointer data);
static void display_dep_error_dialog (slapt_pkg_info_t *pkg,guint m, guint c);
-static void exclude_dep_error_callback (GtkObject *object, gpointer *user_data);
-static void install_dep_error_callback (GtkObject *object, gpointer *user_data);
+static void exclude_dep_error_callback (GObject *object, gpointer *user_data);
+static void install_dep_error_callback (GObject *object, gpointer *user_data);
static void view_installed_or_available_packages (gboolean show_installed, gboolean show_available);
static int set_iter_for_install(GtkTreeModel *model, GtkTreeIter *iter,
@@ -100,7 +101,7 @@ static gint convert_slapt_priority_to_gslapt_priority(SLAPT_PRIORITY_T p);
gboolean gslapt_window_resized(GtkWindow *window, GdkEvent *event, gpointer data)
{
- const char *widget_name = gtk_widget_get_name(GTK_WIDGET(window));
+ const char *widget_name = gtk_buildable_get_name(GTK_BUILDABLE(window));
gint x, y, width, height;
x = event->configure.x;
@@ -135,7 +136,7 @@ gboolean gslapt_window_resized(GtkWindow *window, GdkEvent *event, gpointer data
return FALSE;
}
-void on_gslapt_destroy (GtkObject *object, gpointer *user_data)
+void on_gslapt_destroy (GObject *object, gpointer *user_data)
{
slapt_free_transaction(trans);
slapt_free_pkg_list(all);
@@ -150,7 +151,7 @@ void on_gslapt_destroy (GtkObject *object, gpointer *user_data)
exit(0);
}
-void update_callback (GtkObject *object, gpointer *user_data)
+void update_callback (GObject *object, gpointer *user_data)
{
GThread *gpd;
@@ -165,7 +166,7 @@ void update_callback (GtkObject *object, gpointer *user_data)
return;
}
-void upgrade_callback (GtkObject *object, gpointer *user_data)
+void upgrade_callback (GObject *object, gpointer *user_data)
{
set_busy_cursor();
mark_upgrade_packages();
@@ -175,8 +176,9 @@ void upgrade_callback (GtkObject *object, gpointer *user_data)
unset_busy_cursor();
}
-void execute_callback (GtkObject *object, gpointer *user_data)
+void execute_callback (GObject *object, gpointer *user_data)
{
+ GtkBuilder *builder;
GtkWidget *trans_window;
if (
@@ -185,7 +187,12 @@ void execute_callback (GtkObject *object, gpointer *user_data)
&& trans->remove_pkgs->pkg_count == 0
) return;
- trans_window = (GtkWidget *)create_transaction_window();
+ builder = gtk_builder_new ();
+ gslapt_load_ui (builder, "transaction_window.ui");
+ trans_window = GTK_WIDGET (gtk_builder_get_object (builder, "transaction_window"));
+ gtk_builder_connect_signals (builder, builder);
+ gtk_window_set_transient_for (GTK_WINDOW(trans_window), GTK_WINDOW(gslapt));
+
if ((gslapt_settings->tran_x == gslapt_settings->tran_y == gslapt_settings->tran_width == gslapt_settings->tran_height == 0)) {
gtk_window_set_default_size(GTK_WINDOW(trans_window),
@@ -194,8 +201,8 @@ void execute_callback (GtkObject *object, gpointer *user_data)
gslapt_settings->tran_x, gslapt_settings->tran_y);
}
- if ( populate_transaction_window(trans_window) == 0 ) {
- gtk_widget_show(trans_window);
+ if ( populate_transaction_window(builder) == 0 ) {
+ gtk_widget_show_all(trans_window);
} else {
gtk_widget_destroy(trans_window);
}
@@ -210,7 +217,14 @@ void open_preferences (GtkMenuItem *menuitem, gpointer *user_data)
GtkTreeView *verification_source_tree;
#endif
- preferences = (GtkWidget *)create_window_preferences();
+ if (preferences_window_builder == NULL)
+ preferences_window_builder = gtk_builder_new ();
+
+ gslapt_load_ui (preferences_window_builder, "window_preferences.ui");
+ preferences = GTK_WIDGET (gtk_builder_get_object (preferences_window_builder, "window_preferences"));
+ gtk_builder_connect_signals (preferences_window_builder, preferences_window_builder);
+ gtk_window_set_transient_for (GTK_WINDOW(preferences), GTK_WINDOW(gslapt));
+
if ((gslapt_settings->pref_x == gslapt_settings->pref_y == gslapt_settings->pref_width == gslapt_settings->pref_height == 0)) {
gtk_window_set_default_size(GTK_WINDOW(preferences),
@@ -219,21 +233,21 @@ void open_preferences (GtkMenuItem *menuitem, gpointer *user_data)
gslapt_settings->pref_x, gslapt_settings->pref_y);
}
- working_dir = GTK_ENTRY(lookup_widget(preferences,"preferences_working_dir_entry"));
+ working_dir = GTK_ENTRY(gtk_builder_get_object(preferences_window_builder,"preferences_working_dir_entry"));
gtk_entry_set_text(working_dir,global_config->working_dir);
- source_tree = GTK_TREE_VIEW(lookup_widget(preferences,"preferences_sources_treeview"));
+ source_tree = GTK_TREE_VIEW(gtk_builder_get_object(preferences_window_builder,"preferences_sources_treeview"));
build_sources_treeviewlist((GtkWidget *)source_tree);
#ifdef SLAPT_HAS_GPGME
- verification_source_tree = GTK_TREE_VIEW(lookup_widget(preferences,"preferences_verification_sources_treeview"));
+ verification_source_tree = GTK_TREE_VIEW(gtk_builder_get_object(preferences_window_builder,"preferences_verification_sources_treeview"));
build_verification_sources_treeviewlist((GtkWidget *)verification_source_tree);
#endif
- exclude_tree = GTK_TREE_VIEW(lookup_widget(preferences,"preferences_exclude_treeview"));
+ exclude_tree = GTK_TREE_VIEW(gtk_builder_get_object(preferences_window_builder,"preferences_exclude_treeview"));
build_exclude_treeviewlist((GtkWidget *)exclude_tree);
- gtk_widget_show(preferences);
+ gtk_widget_show_all(preferences);
preferences_window = preferences;
}
@@ -241,9 +255,9 @@ void search_activated (GtkWidget *gslapt, gpointer *user_data)
{
gboolean valid = FALSE, exists = FALSE;
GtkTreeIter iter;
- GtkTreeView *treeview = GTK_TREE_VIEW(lookup_widget(gslapt,"pkg_listing_treeview"));
- gchar *pattern = (gchar *)gtk_entry_get_text(GTK_ENTRY(lookup_widget(gslapt,"search_entry")));
- GtkEntryCompletion *completion = gtk_entry_get_completion(GTK_ENTRY(lookup_widget(gslapt,"search_entry")));
+ GtkTreeView *treeview = GTK_TREE_VIEW(gtk_builder_get_object(gslapt_builder,"pkg_listing_treeview"));
+ gchar *pattern = (gchar *)gtk_entry_get_text(GTK_ENTRY(gtk_builder_get_object(gslapt_builder,"search_entry")));
+ GtkEntryCompletion *completion = gtk_entry_get_completion(GTK_ENTRY(gtk_builder_get_object(gslapt_builder,"search_entry")));
GtkTreeModel *completions = gtk_entry_completion_get_model(completion);
build_searched_treeviewlist(GTK_WIDGET(treeview),pattern);
@@ -282,7 +296,7 @@ void add_pkg_for_install (GtkWidget *gslapt, gpointer *user_data)
GtkTreeModelFilter *filter_model;
GtkTreeModelSort *package_model;
- treeview = GTK_TREE_VIEW(lookup_widget(gslapt,"pkg_listing_treeview"));
+ treeview = GTK_TREE_VIEW(gtk_builder_get_object(gslapt_builder,"pkg_listing_treeview"));
selection = gtk_tree_view_get_selection(treeview);
package_model = GTK_TREE_MODEL_SORT(gtk_tree_view_get_model(treeview));
@@ -453,7 +467,7 @@ void add_pkg_for_removal (GtkWidget *gslapt, gpointer *user_data)
GtkTreeSelection *selection;
GtkTreeModelSort *package_model;
- treeview = GTK_TREE_VIEW(lookup_widget(gslapt,"pkg_listing_treeview"));
+ treeview = GTK_TREE_VIEW(gtk_builder_get_object(gslapt_builder,"pkg_listing_treeview"));
selection = gtk_tree_view_get_selection(treeview);
package_model = GTK_TREE_MODEL_SORT(gtk_tree_view_get_model(treeview));
@@ -569,31 +583,31 @@ void build_package_treeviewlist (GtkWidget *treeview)
/* if it's excluded */
if ((slapt_get_exact_pkg(trans->exclude_pkgs,all->pkgs[i]->name, all->pkgs[i]->version) != NULL) ||
slapt_is_excluded(global_config,all->pkgs[i]) == 1) {
- status_icon = create_pixbuf("pkg_action_available_excluded.png");
+ status_icon = gslapt_img("pkg_action_available_excluded.png");
} else {
- status_icon = create_pixbuf("pkg_action_available.png");
+ status_icon = gslapt_img("pkg_action_available.png");
}
status = g_strdup_printf("z%s",all->pkgs[i]->name);
location = all->pkgs[i]->location;
} else if (slapt_get_exact_pkg(trans->remove_pkgs,all->pkgs[i]->name, all->pkgs[i]->version) != NULL) {
- status_icon = create_pixbuf("pkg_action_remove.png");
+ status_icon = gslapt_img("pkg_action_remove.png");
status = g_strdup_printf("r%s",all->pkgs[i]->name);
location = all->pkgs[i]->location;
} else if (slapt_get_exact_pkg(trans->install_pkgs,all->pkgs[i]->name, all->pkgs[i]->version) != NULL) {
- status_icon = create_pixbuf("pkg_action_install.png");
+ status_icon = gslapt_img("pkg_action_install.png");
status = g_strdup_printf("i%s",all->pkgs[i]->name);
location = all->pkgs[i]->location;
} else if (lsearch_upgrade_transaction(trans,all->pkgs[i]) != NULL) {
- status_icon = create_pixbuf("pkg_action_upgrade.png");
+ status_icon = gslapt_img("pkg_action_upgrade.png");
status = g_strdup_printf("u%s",all->pkgs[i]->name);
location = all->pkgs[i]->location;
} else if (is_inst) {
/* if it's excluded */
if ((slapt_get_exact_pkg(trans->exclude_pkgs,all->pkgs[i]->name, all->pkgs[i]->version) != NULL) ||
slapt_is_excluded(global_config,all->pkgs[i]) == 1) {
- status_icon = create_pixbuf("pkg_action_installed_excluded.png");
+ status_icon = gslapt_img("pkg_action_installed_excluded.png");
} else {
- status_icon = create_pixbuf("pkg_action_installed.png");
+ status_icon = gslapt_img("pkg_action_installed.png");
}
status = g_strdup_printf("a%s",all->pkgs[i]->name);
location = installed_pkg->location;
@@ -601,9 +615,9 @@ void build_package_treeviewlist (GtkWidget *treeview)
/* if it's excluded */
if ((slapt_get_exact_pkg(trans->exclude_pkgs,all->pkgs[i]->name, all->pkgs[i]->version) != NULL) ||
slapt_is_excluded(global_config,all->pkgs[i]) == 1) {
- status_icon = create_pixbuf("pkg_action_available_excluded.png");
+ status_icon = gslapt_img("pkg_action_available_excluded.png");
} else {
- status_icon = create_pixbuf("pkg_action_available.png");
+ status_icon = gslapt_img("pkg_action_available.png");
}
status = g_strdup_printf("z%s",all->pkgs[i]->name);
location = all->pkgs[i]->location;
@@ -646,15 +660,15 @@ void build_package_treeviewlist (GtkWidget *treeview)
gchar *short_desc = slapt_gen_short_pkg_description(installed->pkgs[i]);
if (slapt_get_exact_pkg(trans->remove_pkgs,installed->pkgs[i]->name, installed->pkgs[i]->version) != NULL) {
- status_icon = create_pixbuf("pkg_action_remove.png");
+ status_icon = gslapt_img("pkg_action_remove.png");
status = g_strdup_printf("r%s",installed->pkgs[i]->name);
} else {
/* if it's excluded */
if ((slapt_get_exact_pkg(trans->exclude_pkgs,installed->pkgs[i]->name, installed->pkgs[i]->version) != NULL) ||
slapt_is_excluded(global_config,installed->pkgs[i]) == 1) {
- status_icon = create_pixbuf("pkg_action_installed_excluded.png");
+ status_icon = gslapt_img("pkg_action_installed_excluded.png");
} else {
- status_icon = create_pixbuf("pkg_action_installed.png");
+ status_icon = gslapt_img("pkg_action_installed.png");
}
status = g_strdup_printf("a%s",installed->pkgs[i]->name);
}
@@ -687,7 +701,7 @@ void build_package_treeviewlist (GtkWidget *treeview)
package_model = GTK_TREE_MODEL_SORT(gtk_tree_model_sort_new_with_model(GTK_TREE_MODEL(filter_model)));
gtk_tree_view_set_model (GTK_TREE_VIEW(treeview),GTK_TREE_MODEL(package_model));
- if (gslapt->window != NULL) {
+ if (gtk_widget_get_window(gslapt) != NULL) {
unset_busy_cursor();
}
}
@@ -717,11 +731,11 @@ void build_searched_treeviewlist (GtkWidget *treeview, gchar *pattern)
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)));
- view_list_all = gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(lookup_widget(gslapt,"view_all_packages_menu")));
- view_list_available = gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(lookup_widget(gslapt,"view_available_packages_menu")));
- view_list_installed = gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(lookup_widget(gslapt,"view_installed_packages_menu")));
- view_list_marked = gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(lookup_widget(gslapt,"view_marked_packages_menu")));
- view_list_upgradeable = gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(lookup_widget(gslapt,"view_upgradeable_packages_menu")));
+ view_list_all = gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(gtk_builder_get_object(gslapt_builder,"view_all_packages_menu")));
+ view_list_available = gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(gtk_builder_get_object(gslapt_builder,"view_available_packages_menu")));
+ view_list_installed = gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(gtk_builder_get_object(gslapt_builder,"view_installed_packages_menu")));
+ view_list_marked = gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(gtk_builder_get_object(gslapt_builder,"view_marked_packages_menu")));
+ view_list_upgradeable = gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(gtk_builder_get_object(gslapt_builder,"view_upgradeable_packages_menu")));
a_matches = slapt_search_pkg_list(all,pattern);
i_matches = slapt_search_pkg_list(installed,pattern);
@@ -784,14 +798,22 @@ void build_searched_treeviewlist (GtkWidget *treeview, gchar *pattern)
}
-void open_about (GtkObject *object, gpointer *user_data)
+void open_about (GObject *object, gpointer *user_data)
{
+ GtkBuilder *builder;
GtkWidget *about;
- about = (GtkWidget *)create_about();
- gtk_label_set_text(GTK_LABEL(lookup_widget(about,"label146")),
+
+ builder = gtk_builder_new ();
+ gslapt_load_ui (builder, "about.ui");
+ about = GTK_WIDGET (gtk_builder_get_object (builder, "about"));
+ gtk_builder_connect_signals (builder, NULL);
+ gtk_window_set_transient_for (GTK_WINDOW(about), GTK_WINDOW(gslapt));
+
+ gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(builder,"label146")),
"<span weight=\"bold\" size=\"xx-large\">" PACKAGE " " VERSION "</span>");
- gtk_label_set_use_markup(GTK_LABEL(lookup_widget(about,"label146")),TRUE);
- gtk_widget_show (about);
+ gtk_label_set_use_markup(GTK_LABEL(gtk_builder_get_object (builder,"label146")),TRUE);
+ g_object_unref (G_OBJECT (builder));
+ gtk_widget_show_all (about);
}
void show_pkg_details (GtkTreeSelection *selection, gpointer data)
@@ -800,7 +822,7 @@ void show_pkg_details (GtkTreeSelection *selection, gpointer data)
GtkTreeModelSort *package_model;
GtkTreeView *treeview;
- treeview = GTK_TREE_VIEW(lookup_widget(gslapt,"pkg_listing_treeview"));
+ treeview = GTK_TREE_VIEW(gtk_builder_get_object(gslapt_builder,"pkg_listing_treeview"));
package_model = GTK_TREE_MODEL_SORT(gtk_tree_view_get_model(treeview));
if (gtk_tree_selection_get_selected(selection,(GtkTreeModel **)&package_model, &iter)) {
@@ -842,7 +864,7 @@ static void fillin_pkg_details (slapt_pkg_info_t *pkg)
GtkTreeViewColumn *column;
GList *columns;
guint i;
- GtkWidget *treeview = lookup_widget(gslapt,"dep_conf_sug_treeview");
+ GtkWidget *treeview = GTK_WIDGET(gtk_builder_get_object(gslapt_builder,"dep_conf_sug_treeview"));
slapt_pkg_info_t *latest_pkg = slapt_get_newest_pkg(all,pkg->name);
slapt_pkg_info_t *installed_pkg = slapt_get_newest_pkg(installed,pkg->name);
slapt_pkg_upgrade_t *pkg_upgrade = NULL;
@@ -850,26 +872,26 @@ static void fillin_pkg_details (slapt_pkg_info_t *pkg)
const char *priority_str = NULL;
/* set package details */
- gtk_label_set_text(GTK_LABEL(lookup_widget(gslapt,"pkg_info_name")),pkg->name);
- gtk_label_set_text(GTK_LABEL(lookup_widget(gslapt,"pkg_info_version")),pkg->version);
- gtk_label_set_text(GTK_LABEL(lookup_widget(gslapt,"pkg_info_source")),pkg->mirror);
+ gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(gslapt_builder,"pkg_info_name")),pkg->name);
+ gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(gslapt_builder,"pkg_info_version")),pkg->version);
+ gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(gslapt_builder,"pkg_info_source")),pkg->mirror);
short_desc = slapt_gen_short_pkg_description(pkg);
if (short_desc != NULL) {
- gtk_label_set_text(GTK_LABEL(lookup_widget(gslapt,"pkg_info_description")),short_desc);
+ gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(gslapt_builder,"pkg_info_description")),short_desc);
free(short_desc);
} else {
- gtk_label_set_text(GTK_LABEL(lookup_widget(gslapt,"pkg_info_description")),"");
+ gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(gslapt_builder,"pkg_info_description")),"");
}
location = gslapt_series_map_lookup(gslapt_series_map, pkg->location);
if (location != NULL) {
- gtk_label_set_text(GTK_LABEL(lookup_widget(gslapt,"pkg_info_location")),location);
+ gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(gslapt_builder,"pkg_info_location")),location);
free(location);
} else {
- gtk_label_set_text(GTK_LABEL(lookup_widget(gslapt,"pkg_info_location")),pkg->location);
+ gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(gslapt_builder,"pkg_info_location")),pkg->location);
}
priority_str = slapt_priority_to_str(pkg->priority);
- gtk_label_set_text(GTK_LABEL(lookup_widget(gslapt,"pkg_info_priority")),priority_str);
+ gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(gslapt_builder,"pkg_info_priority")),priority_str);
/* dependency information tab */
store = gtk_tree_store_new(1,G_TYPE_STRING);
@@ -951,7 +973,7 @@ static void fillin_pkg_details (slapt_pkg_info_t *pkg)
gtk_tree_view_expand_all(GTK_TREE_VIEW(treeview));
/* description tab */
- pkg_full_desc = gtk_text_view_get_buffer(GTK_TEXT_VIEW(lookup_widget(gslapt,"pkg_description_textview")));
+ pkg_full_desc = gtk_text_view_get_buffer(GTK_TEXT_VIEW(gtk_builder_get_object(gslapt_builder,"pkg_description_textview")));
clean_desc = strdup(pkg->description);
slapt_clean_description(clean_desc,pkg->name);
gtk_text_buffer_set_text(pkg_full_desc, clean_desc, -1);
@@ -960,7 +982,7 @@ static void fillin_pkg_details (slapt_pkg_info_t *pkg)
free(clean_desc);
/* changelog tab */
- pkg_changelog = gtk_text_view_get_buffer(GTK_TEXT_VIEW(lookup_widget(gslapt,"pkg_changelog_textview")));
+ pkg_changelog = gtk_text_view_get_buffer(GTK_TEXT_VIEW(gtk_builder_get_object(gslapt_builder,"pkg_changelog_textview")));
if ((changelog = slapt_get_pkg_changelog(pkg)) != NULL) {
if (!g_utf8_validate(changelog, -1, NULL)) {
char *converted = g_convert(changelog, strlen(changelog), "UTF-8", "ISO-8859-1", NULL, NULL, NULL);
@@ -976,7 +998,7 @@ static void fillin_pkg_details (slapt_pkg_info_t *pkg)
}
/* file list tab */
- pkg_filelist = gtk_text_view_get_buffer(GTK_TEXT_VIEW(lookup_widget(gslapt,"pkg_filelist_textview")));
+ pkg_filelist = gtk_text_view_get_buffer(GTK_TEXT_VIEW(gtk_builder_get_object(gslapt_builder,"pkg_filelist_textview")));
if ((filelist = slapt_get_pkg_filelist(pkg)) != NULL) {
if (!g_utf8_validate(filelist, -1, NULL)) {
char *converted = g_convert(filelist, strlen(filelist), "UTF-8", "ISO-8859-1", NULL, NULL, NULL);
@@ -994,39 +1016,39 @@ static void fillin_pkg_details (slapt_pkg_info_t *pkg)
/* set status */
if ((slapt_get_exact_pkg(trans->exclude_pkgs,pkg->name,pkg->version) != NULL) ||
slapt_is_excluded(global_config,pkg) == 1) {
- gtk_label_set_text(GTK_LABEL(lookup_widget(gslapt,"pkg_info_status")),(gchar *)_("Excluded"));
+ gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(gslapt_builder,"pkg_info_status")),(gchar *)_("Excluded"));
} else if (slapt_get_exact_pkg(trans->remove_pkgs,pkg->name,pkg->version) != NULL) {
- gtk_label_set_text(GTK_LABEL(lookup_widget(gslapt,"pkg_info_status")),(gchar *)_("To be Removed"));
+ gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(gslapt_builder,"pkg_info_status")),(gchar *)_("To be Removed"));
} else if (slapt_get_exact_pkg(trans->install_pkgs,pkg->name,pkg->version) != NULL) {
- gtk_label_set_text(GTK_LABEL(lookup_widget(gslapt,"pkg_info_status")),(gchar *)_("To be Installed"));
+ gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(gslapt_builder,"pkg_info_status")),(gchar *)_("To be Installed"));
} else if ( (pkg_upgrade = lsearch_upgrade_transaction(trans,pkg)) != NULL) {
if (slapt_cmp_pkgs(pkg, pkg_upgrade->installed) == 0 &&
slapt_cmp_pkg_versions(pkg_upgrade->upgrade->version,pkg_upgrade->installed->version) == 0) {
- gtk_label_set_text(GTK_LABEL(lookup_widget(gslapt,"pkg_info_status")),(gchar *)_("To be Re-Installed"));
+ gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(gslapt_builder,"pkg_info_status")),(gchar *)_("To be Re-Installed"));
} else if (slapt_cmp_pkgs(latest_pkg, pkg_upgrade->upgrade) > 0 && slapt_cmp_pkg_versions(pkg->version, pkg_upgrade->upgrade->version) > 0) {
- gtk_label_set_text(GTK_LABEL(lookup_widget(gslapt,"pkg_info_status")),(gchar *)_("To be Downgraded"));
+ gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(gslapt_builder,"pkg_info_status")),(gchar *)_("To be Downgraded"));
} else if (slapt_cmp_pkgs(pkg, pkg_upgrade->upgrade) < 0) {
- gtk_label_set_text(GTK_LABEL(lookup_widget(gslapt,"pkg_info_status")),(gchar *)_("To be Upgraded"));
+ gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(gslapt_builder,"pkg_info_status")),(gchar *)_("To be Upgraded"));
} else if (slapt_cmp_pkgs(pkg, pkg_upgrade->upgrade) == 0) {
- gtk_label_set_text(GTK_LABEL(lookup_widget(gslapt,"pkg_info_status")),(gchar *)_("To be Installed"));
+ gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(gslapt_builder,"pkg_info_status")),(gchar *)_("To be Installed"));
} else if (slapt_cmp_pkgs(pkg, pkg_upgrade->upgrade) > 0) {
- gtk_label_set_text(GTK_LABEL(lookup_widget(gslapt,"pkg_info_status")),(gchar *)_("To be Downgraded"));
+ gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(gslapt_builder,"pkg_info_status")),(gchar *)_("To be Downgraded"));
}
} else if (slapt_get_exact_pkg(installed,pkg->name,pkg->version) != NULL) {
- gtk_label_set_text(GTK_LABEL(lookup_widget(gslapt,"pkg_info_status")),(gchar *)_("Installed"));
+ gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(gslapt_builder,"pkg_info_status")),(gchar *)_("Installed"));
} else {
- gtk_label_set_text(GTK_LABEL(lookup_widget(gslapt,"pkg_info_status")),(gchar *)_("Not Installed"));
+ gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(gslapt_builder,"pkg_info_status")),(gchar *)_("Not Installed"));
}
/* set installed info */
if (installed_pkg != NULL) {
gchar size_u[20];
sprintf(size_u,"%d K",installed_pkg->size_u);
- gtk_label_set_text(GTK_LABEL(lookup_widget(gslapt,"pkg_info_installed_installed_size")),size_u);
- gtk_label_set_text(GTK_LABEL(lookup_widget(gslapt,"pkg_info_installed_version")),installed_pkg->version);
+ gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(gslapt_builder,"pkg_info_installed_installed_size")),size_u);
+ gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(gslapt_builder,"pkg_info_installed_version")),installed_pkg->version);
} else {
- gtk_label_set_text(GTK_LABEL(lookup_widget(gslapt,"pkg_info_installed_installed_size")),"");
- gtk_label_set_text(GTK_LABEL(lookup_widget(gslapt,"pkg_info_installed_version")),"");
+ gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(gslapt_builder,"pkg_info_installed_installed_size")),"");
+ gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(gslapt_builder,"pkg_info_installed_version")),"");
}
/* set latest available info */
@@ -1034,15 +1056,15 @@ static void fillin_pkg_details (slapt_pkg_info_t *pkg)
gchar latest_size_c[20],latest_size_u[20];
sprintf(latest_size_c,"%d K",latest_pkg->size_c);
sprintf(latest_size_u,"%d K",latest_pkg->size_u);
- gtk_label_set_text(GTK_LABEL(lookup_widget(gslapt,"pkg_info_available_version")),latest_pkg->version);
- gtk_label_set_text(GTK_LABEL(lookup_widget(gslapt,"pkg_info_available_source")),latest_pkg->mirror);
- gtk_label_set_text(GTK_LABEL(lookup_widget(gslapt,"pkg_info_available_size")),latest_size_c);
- gtk_label_set_text(GTK_LABEL(lookup_widget(gslapt,"pkg_info_available_installed_size")),latest_size_u);
+ gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(gslapt_builder,"pkg_info_available_version")),latest_pkg->version);
+ gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(gslapt_builder,"pkg_info_available_source")),latest_pkg->mirror);
+ gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(gslapt_builder,"pkg_info_available_size")),latest_size_c);
+ gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(gslapt_builder,"pkg_info_available_installed_size")),latest_size_u);
} else {
- gtk_label_set_text(GTK_LABEL(lookup_widget(gslapt,"pkg_info_available_version")),"");
- gtk_label_set_text(GTK_LABEL(lookup_widget(gslapt,"pkg_info_available_source")),"");
- gtk_label_set_text(GTK_LABEL(lookup_widget(gslapt,"pkg_info_available_size")),"");
- gtk_label_set_text(GTK_LABEL(lookup_widget(gslapt,"pkg_info_available_installed_size")),"");
+ gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(gslapt_builder,"pkg_info_available_version")),"");
+ gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(gslapt_builder,"pkg_info_available_source")),"");
+ gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(gslapt_builder,"pkg_info_available_size")),"");
+ gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(gslapt_builder,"pkg_info_available_installed_size")),"");
}
}
@@ -1060,17 +1082,24 @@ static void get_package_data (void)
slapt_pkg_list_t *new_pkgs = slapt_init_pkg_list();
new_pkgs->free_pkgs = TRUE;
- progress_window = create_dl_progress_window();
+ if (progress_window_builder == NULL)
+ progress_window_builder = gtk_builder_new ();
+
+ gslapt_load_ui (progress_window_builder, "dl_progress_window.ui");
+ progress_window = GTK_WIDGET (gtk_builder_get_object (progress_window_builder, "dl_progress_window"));
+ gtk_builder_connect_signals (progress_window_builder, NULL);
+ gtk_window_set_transient_for (GTK_WINDOW(progress_window), GTK_WINDOW(gslapt));
+
gtk_window_set_title(GTK_WINDOW(progress_window),(gchar *)_("Progress"));
- p_bar = GTK_PROGRESS_BAR(lookup_widget(progress_window,"progress_progressbar"));
- dl_bar = GTK_PROGRESS_BAR(lookup_widget(progress_window,"dl_progress"));
- progress_action_label = GTK_LABEL(lookup_widget(progress_window,"progress_action"));
- progress_message_label = GTK_LABEL(lookup_widget(progress_window,"progress_message"));
+ p_bar = GTK_PROGRESS_BAR(gtk_builder_get_object (progress_window_builder,"dl_progress_progressbar"));
+ dl_bar = GTK_PROGRESS_BAR(gtk_builder_get_object (progress_window_builder,"dl_progress"));
+ progress_action_label = GTK_LABEL(gtk_builder_get_object (progress_window_builder,"dl_progress_action"));
+ progress_message_label = GTK_LABEL(gtk_builder_get_object (progress_window_builder,"dl_progress_message"));
gdk_threads_enter();
lock_toolbar_buttons();
context_id = gslapt_set_status((gchar *)_("Checking for new package data..."));
- gtk_widget_show(progress_window);
+ gtk_widget_show_all(progress_window);
gdk_threads_leave();
#ifdef SLAPT_HAS_GPGME
@@ -1144,12 +1173,20 @@ static void get_package_data (void)
gslapt_clear_status(context_id);
} else {
/* prompt the user to continue downloading package sources */
- GtkWidget *q = create_source_failed_dialog();
+ GtkBuilder * builder = gtk_builder_new ();
+ GtkWidget *q;
+
+ gslapt_load_ui (builder, "source_failed_dialog.ui");
+ q = GTK_WIDGET (gtk_builder_get_object (builder, "source_failed_dialog"));
+ gtk_builder_connect_signals (builder, NULL);
+
gtk_label_set_text(
- GTK_LABEL(lookup_widget(q,"failed_source_label")),
+ GTK_LABEL(gtk_builder_get_object (builder,"failed_source_label")),
global_config->sources->src[i]->url
);
+ gtk_widget_show_all(q);
+
gint result = gtk_dialog_run(GTK_DIALOG(q));
if (result == GTK_RESPONSE_YES) {
/* we'll disable this source and continue on */
@@ -1163,6 +1200,7 @@ static void get_package_data (void)
gslapt_clear_status(context_id);
}
gtk_widget_destroy(q);
+ g_object_unref (G_OBJECT (builder));
}
@@ -1405,18 +1443,21 @@ static void get_package_data (void)
trans = slapt_init_transaction();
gdk_threads_enter();
+ gtk_widget_destroy(progress_window);
+ gslapt_clear_status(context_id);
unlock_toolbar_buttons();
rebuild_treeviews(progress_window,TRUE);
- gslapt_clear_status(context_id);
- gtk_widget_destroy(progress_window);
gdk_threads_leave();
+ g_object_unref (G_OBJECT (progress_window_builder));
+ progress_window_builder = NULL;
+
}
int gtk_progress_callback(void *data, double dltotal, double dlnow,
double ultotal, double ulnow)
{
- GtkProgressBar *p_bar = GTK_PROGRESS_BAR(lookup_widget(progress_window,"dl_progress"));
+ GtkProgressBar *p_bar = GTK_PROGRESS_BAR(gtk_builder_get_object(progress_window_builder,"dl_progress"));
double perc = 1.0;
struct slapt_progress_data *cb_data = (struct slapt_progress_data *)data;
time_t now = time(NULL);
@@ -1441,7 +1482,7 @@ int gtk_progress_callback(void *data, double dltotal, double dlnow,
gdk_threads_enter();
gtk_progress_bar_set_fraction(p_bar,perc);
- gtk_label_set_text(GTK_LABEL(lookup_widget(progress_window,"progress_dl_speed")),status);
+ gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(progress_window_builder,"progress_dl_speed")),status);
gdk_threads_leave();
g_free(status);
@@ -1456,7 +1497,7 @@ static void rebuild_treeviews (GtkWidget *current_window,gboolean reload)
GtkTreeModelFilter *filter_model;
GtkTreeModelSort *package_model;
const gchar *search_text = gtk_entry_get_text(
- GTK_ENTRY(lookup_widget(gslapt,"search_entry")));
+ GTK_ENTRY(gtk_builder_get_object(gslapt_builder,"search_entry")));
set_busy_cursor();
@@ -1473,7 +1514,7 @@ static void rebuild_treeviews (GtkWidget *current_window,gboolean reload)
slapt_free_pkg_list(all_ptr);
}
- treeview = (GtkWidget *)lookup_widget(gslapt,"pkg_listing_treeview");
+ treeview = (GtkWidget *)gtk_builder_get_object(gslapt_builder,"pkg_listing_treeview");
package_model = GTK_TREE_MODEL_SORT(gtk_tree_view_get_model(GTK_TREE_VIEW(treeview)));
filter_model = GTK_TREE_MODEL_FILTER(gtk_tree_model_sort_get_model(GTK_TREE_MODEL_SORT(package_model)));
@@ -1481,11 +1522,11 @@ static void rebuild_treeviews (GtkWidget *current_window,gboolean reload)
gtk_list_store_clear(store);
if (reload == TRUE) {
- gtk_entry_set_text(GTK_ENTRY(lookup_widget(gslapt,"search_entry")),"");
+ gtk_entry_set_text(GTK_ENTRY(gtk_builder_get_object(gslapt_builder,"search_entry")),"");
}
rebuild_package_action_menu();
- gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(lookup_widget(gslapt,"view_all_packages_menu")), TRUE);
+ gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(gtk_builder_get_object(gslapt_builder,"view_all_packages_menu")), TRUE);
build_package_treeviewlist(treeview);
if ((reload == FALSE) && (strcmp(search_text,"") != 0)) {
@@ -1498,7 +1539,7 @@ static void rebuild_treeviews (GtkWidget *current_window,gboolean reload)
static guint gslapt_set_status (const gchar *msg)
{
guint context_id;
- GtkStatusbar *bar = GTK_STATUSBAR(lookup_widget(gslapt,"bottom_statusbar"));
+ GtkStatusbar *bar = GTK_STATUSBAR(gtk_builder_get_object(gslapt_builder,"bottom_statusbar"));
context_id = gtk_statusbar_get_context_id(bar,msg);
gtk_statusbar_push(bar,context_id,msg);
@@ -1508,27 +1549,27 @@ static guint gslapt_set_status (const gchar *msg)
static void gslapt_clear_status (guint context_id)
{
- GtkStatusbar *bar = GTK_STATUSBAR(lookup_widget(gslapt,"bottom_statusbar"));
+ GtkStatusbar *bar = GTK_STATUSBAR(gtk_builder_get_object(gslapt_builder,"bottom_statusbar"));
gtk_statusbar_pop(bar,context_id);
}
static void lock_toolbar_buttons (void)
{
- gtk_widget_set_sensitive(lookup_widget(gslapt,"top_menubar"),FALSE);
+ gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(gslapt_builder,"top_menubar")),FALSE);
- gtk_widget_set_sensitive(lookup_widget(gslapt,"action_bar_update_button"),FALSE);
- gtk_widget_set_sensitive(lookup_widget(gslapt,"action_bar_upgrade_button"),FALSE);
- gtk_widget_set_sensitive(lookup_widget(gslapt,"action_bar_execute_button"),FALSE);
+ gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(gslapt_builder,"action_bar_update_button")),FALSE);
+ gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(gslapt_builder,"action_bar_upgrade_button")),FALSE);
+ gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(gslapt_builder,"action_bar_execute_button")),FALSE);
}
static void unlock_toolbar_buttons (void)
{
- gtk_widget_set_sensitive(lookup_widget(gslapt,"top_menubar"),TRUE);
+ gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(gslapt_builder,"top_menubar")),TRUE);
- gtk_widget_set_sensitive(lookup_widget(gslapt,"action_bar_update_button"),TRUE);
- gtk_widget_set_sensitive(lookup_widget(gslapt,"action_bar_upgrade_button"),TRUE);
+ gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(gslapt_builder,"action_bar_update_button")),TRUE);
+ gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(gslapt_builder,"action_bar_upgrade_button")),TRUE);
if (
trans->upgrade_pkgs->pkg_count != 0
@@ -1540,7 +1581,7 @@ static void unlock_toolbar_buttons (void)
}
-static void lhandle_transaction (GtkWidget *w)
+static void lhandle_transaction (GtkBuilder *b)
{
GtkCheckButton *dl_only_checkbutton;
gboolean dl_only = FALSE;
@@ -1549,9 +1590,10 @@ static void lhandle_transaction (GtkWidget *w)
gdk_threads_enter();
lock_toolbar_buttons();
- dl_only_checkbutton = GTK_CHECK_BUTTON(lookup_widget(w,"download_only_checkbutton"));
+ dl_only_checkbutton = GTK_CHECK_BUTTON(gtk_builder_get_object(b,"download_only_checkbutton"));
dl_only = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(dl_only_checkbutton));
- gtk_widget_destroy(w);
+ gtk_widget_destroy(GTK_WIDGET(gtk_builder_get_object(b,"transaction_window")));
+ g_object_unref (G_OBJECT (b));
gdk_threads_leave();
/* download the pkgs */
@@ -1638,9 +1680,9 @@ void transaction_okbutton_clicked (GtkWidget *w, gpointer *user_data)
GThread *gdp;
#if !GLIB_CHECK_VERSION (2, 31, 0)
- gdp = g_thread_create((GThreadFunc)lhandle_transaction,w,FALSE,NULL);
+ gdp = g_thread_create((GThreadFunc)lhandle_transaction,GTK_BUILDER(user_data),FALSE,NULL);
#else
- gdp = g_thread_new("GslaptTransactionStart", (GThreadFunc)lhandle_transaction,w);
+ gdp = g_thread_new("GslaptTransactionStart", (GThreadFunc)lhandle_transaction,GTK_BUILDER(user_data));
#endif
return;
@@ -1655,8 +1697,8 @@ static void build_sources_treeviewlist(GtkWidget *treeview)
GtkTreeViewColumn *column;
GtkTreeSelection *select;
guint i = 0;
- GdkPixbuf *enabled_status_icon = create_pixbuf("pkg_action_installed.png");
- GdkPixbuf *disabled_status_icon = create_pixbuf("pkg_action_available.png");
+ GdkPixbuf *enabled_status_icon = gslapt_img("pkg_action_installed.png");
+ GdkPixbuf *disabled_status_icon = gslapt_img("pkg_action_available.png");
gboolean enabled = TRUE;
store = gtk_list_store_new (
@@ -1766,7 +1808,7 @@ static void build_exclude_treeviewlist(GtkWidget *treeview)
}
-static int populate_transaction_window (GtkWidget *trans_window)
+static int populate_transaction_window (GtkBuilder *b)
{
GtkTreeView *summary_treeview;
GtkTreeStore *store;
@@ -1778,11 +1820,11 @@ static int populate_transaction_window (GtkWidget *trans_window)
double dl_size = 0,free_space = 0,already_dl_size = 0;
gchar buf[512];
- summary_treeview = GTK_TREE_VIEW(lookup_widget(trans_window,"transaction_summary_treeview"));
+ summary_treeview = GTK_TREE_VIEW(gtk_builder_get_object(b,"transaction_summary_treeview"));
store = gtk_tree_store_new (1,G_TYPE_STRING);
- sum_pkg_num = GTK_LABEL(lookup_widget(trans_window,"summary_pkg_numbers"));
- sum_dl_size = GTK_LABEL(lookup_widget(trans_window,"summary_dl_size"));
- sum_free_space = GTK_LABEL(lookup_widget(trans_window,"summary_free_space"));
+ sum_pkg_num = GTK_LABEL(gtk_builder_get_object(b,"summary_pkg_numbers"));
+ sum_dl_size = GTK_LABEL(gtk_builder_get_object(b,"summary_dl_size"));
+ sum_free_space = GTK_LABEL(gtk_builder_get_object(b,"summary_free_space"));
/* setup the store */
if ( trans->missing_err->err_count > 0 ) {
@@ -2008,7 +2050,7 @@ static void mark_upgrade_packages (void)
GtkTreeModelSort *package_model;
GtkTreeView *treeview;
- treeview = GTK_TREE_VIEW(lookup_widget(gslapt,"pkg_listing_treeview"));
+ treeview = GTK_TREE_VIEW(gtk_builder_get_object(gslapt_builder,"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)));
@@ -2094,16 +2136,23 @@ char *download_packages (void)
pkgs_to_dl += trans->install_pkgs->pkg_count;
pkgs_to_dl += trans->upgrade_pkgs->pkg_count;
- progress_window = create_dl_progress_window();
+ if (progress_window_builder == NULL)
+ progress_window_builder = gtk_builder_new ();
+
+ gslapt_load_ui (progress_window_builder, "dl_progress_window.ui");
+ progress_window = GTK_WIDGET (gtk_builder_get_object (progress_window_builder, "dl_progress_window"));
+ gtk_builder_connect_signals (progress_window_builder, NULL);
+ gtk_window_set_transient_for (GTK_WINDOW(progress_window), GTK_WINDOW(gslapt));
+
gtk_window_set_title(GTK_WINDOW(progress_window),(gchar *)_("Progress"));
- p_bar = GTK_PROGRESS_BAR(lookup_widget(progress_window,"progress_progressbar"));
- progress_action_label = GTK_LABEL(lookup_widget(progress_window,"progress_action"));
- progress_message_label = GTK_LABEL(lookup_widget(progress_window,"progress_message"));
- progress_pkg_desc = GTK_LABEL(lookup_widget(progress_window,"progress_package_description"));
+ p_bar = GTK_PROGRESS_BAR(gtk_builder_get_object (progress_window_builder,"dl_progress_progressbar"));
+ progress_action_label = GTK_LABEL(gtk_builder_get_object (progress_window_builder,"dl_progress_action"));
+ progress_message_label = GTK_LABEL(gtk_builder_get_object (progress_window_builder,"dl_progress_message"));
+ progress_pkg_desc = GTK_LABEL(gtk_builder_get_object (progress_window_builder,"dl_progress_package_description"));
gdk_threads_enter();
- gtk_widget_show(progress_window);
+ gtk_widget_show_all(progress_window);
context_id = gslapt_set_status((gchar *)_("Downloading packages..."));
gdk_threads_leave();
@@ -2140,8 +2189,8 @@ char *download_packages (void)
gtk_label_set_text(progress_action_label,(gchar *)_("Downloading..."));
gtk_label_set_text(progress_message_label,msg);
gtk_progress_bar_set_fraction(p_bar,((count * 100)/pkgs_to_dl)/100);
- gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(lookup_widget(progress_window,"dl_progress")),0.0);
- gtk_progress_bar_set_text(GTK_PROGRESS_BAR(lookup_widget(progress_window,"dl_progress")),dl_size);
+ gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(gtk_builder_get_object (progress_window_builder,"dl_progress")),0.0);
+ gtk_progress_bar_set_text(GTK_PROGRESS_BAR(gtk_builder_get_object (progress_window_builder,"dl_progress")),dl_size);
gdk_threads_leave();
free(msg);
@@ -2190,8 +2239,8 @@ char *download_packages (void)
gtk_label_set_text(progress_action_label,(gchar *)_("Downloading..."));
gtk_label_set_text(progress_message_label,msg);
gtk_progress_bar_set_fraction(p_bar,((count * 100)/pkgs_to_dl)/100);
- gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(lookup_widget(progress_window,"dl_progress")),0.0);
- gtk_progress_bar_set_text(GTK_PROGRESS_BAR(lookup_widget(progress_window,"dl_progress")),dl_size);
+ gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(gtk_builder_get_object (progress_window_builder,"dl_progress")),0.0);
+ gtk_progress_bar_set_text(GTK_PROGRESS_BAR(gtk_builder_get_object (progress_window_builder,"dl_progress")),dl_size);
gdk_threads_leave();
free(msg);
@@ -2220,11 +2269,16 @@ char *download_packages (void)
gtk_widget_destroy(progress_window);
gslapt_clear_status(context_id);
gdk_threads_leave();
+
+ g_object_unref (G_OBJECT (progress_window_builder));
+ progress_window_builder = NULL;
+
return NULL;
}
static gboolean install_packages (void)
{
+ GtkBuilder *builder = gtk_builder_new ();
GtkLabel *progress_action_label,*progress_message_label,*progress_pkg_desc;
GtkProgressBar *p_bar;
guint i,context_id;
@@ -2232,18 +2286,25 @@ static gboolean install_packages (void)
/* begin removing, installing, and upgrading */
- progress_window = create_pkgtools_progress_window();
+ gslapt_load_ui (builder, "pkgtools_progress_window.ui");
+ progress_window = GTK_WIDGET (gtk_builder_get_object (builder, "pkgtools_progress_window"));
+ gtk_builder_connect_signals (builder, NULL);
+ gtk_window_set_transient_for (GTK_WINDOW(progress_window), GTK_WINDOW(gslapt));
+
gtk_window_set_title(GTK_WINDOW(progress_window),(gchar *)_("Progress"));
- p_bar = GTK_PROGRESS_BAR(lookup_widget(progress_window,"progress_progressbar"));
- progress_action_label = GTK_LABEL(lookup_widget(progress_window,"progress_action"));
- progress_message_label = GTK_LABEL(lookup_widget(progress_window,"progress_message"));
- progress_pkg_desc = GTK_LABEL(lookup_widget(progress_window,"progress_package_description"));
+ p_bar = GTK_PROGRESS_BAR(gtk_builder_get_object (builder,"progress_progressbar"));
+ progress_action_label = GTK_LABEL(gtk_builder_get_object (builder,"progress_action"));
+ progress_message_label = GTK_LABEL(gtk_builder_get_object (builder,"progress_message"));
+ progress_pkg_desc = GTK_LABEL(gtk_builder_get_object (builder,"progress_package_description"));
gdk_threads_enter();
- gtk_widget_show(progress_window);
+ gtk_widget_show_all(progress_window);
gdk_threads_leave();
+ g_object_unref (G_OBJECT (builder));
+
+
for (i = 0; i < trans->remove_pkgs->pkg_count;++i) {
char *clean_desc = strdup(trans->remove_pkgs->pkgs[i]->description);
slapt_clean_description(clean_desc,trans->remove_pkgs->pkgs[i]->name);
@@ -2361,17 +2422,25 @@ void clean_callback (GtkWidget *widget, gpointer *user_data)
void preferences_sources_add (GtkWidget *w, gpointer *user_data)
{
- GtkWidget *source_window = create_source_window();
- GtkComboBox *source_priority = GTK_COMBO_BOX(lookup_widget(source_window,"source_priority"));
- gtk_combo_box_set_active (source_priority,0);
- gtk_widget_show(source_window);
+ GtkBuilder *builder;
+ GtkWidget *source_window;
+
+ builder = gtk_builder_new ();
+ gslapt_load_ui (builder, "source_window.ui");
+ source_window = GTK_WIDGET (gtk_builder_get_object (builder, "source_window"));
+ gtk_builder_connect_signals (builder, builder);
+ // g_object_unref (G_OBJECT (builder));
+
+ GtkComboBox *source_priority = GTK_COMBO_BOX(gtk_builder_get_object (builder,"source_priority"));
+
+ gtk_widget_show_all(source_window);
}
void preferences_sources_remove (GtkWidget *w, gpointer *user_data)
{
GtkTreeIter iter;
GtkTreeModel *model;
- GtkTreeView *source_tree = GTK_TREE_VIEW(lookup_widget(w,"preferences_sources_treeview"));
+ GtkTreeView *source_tree = GTK_TREE_VIEW(gtk_builder_get_object(GTK_BUILDER(user_data),"preferences_sources_treeview"));
GtkTreeSelection *select = gtk_tree_view_get_selection (GTK_TREE_VIEW (source_tree));
GtkListStore *store = GTK_LIST_STORE(gtk_tree_view_get_model(source_tree));
@@ -2386,7 +2455,7 @@ void preferences_sources_edit (GtkWidget *w, gpointer *user_data)
{
GtkTreeIter iter;
GtkTreeModel *model;
- GtkTreeView *source_tree = GTK_TREE_VIEW(lookup_widget(w,"preferences_sources_treeview"));
+ GtkTreeView *source_tree = GTK_TREE_VIEW(gtk_builder_get_object(GTK_BUILDER(user_data),"preferences_sources_treeview"));
GtkTreeSelection *select = gtk_tree_view_get_selection (GTK_TREE_VIEW (source_tree));
if ( gtk_tree_selection_get_selected(select,&model,&iter)) {
@@ -2396,14 +2465,23 @@ void preferences_sources_edit (GtkWidget *w, gpointer *user_data)
gtk_tree_model_get(model,&iter,1,&source,4,&priority,-1);
if (source) {
- GtkWidget *source_window = create_source_window();
- GtkEntry *source_entry = GTK_ENTRY(lookup_widget(source_window,"source_entry"));
- GtkComboBox *source_priority = GTK_COMBO_BOX(lookup_widget(source_window,"source_priority"));
+ GtkBuilder *builder = gtk_builder_new ();
+ GtkWidget *source_window;
+ GtkEntry *source_entry;
+ GtkComboBox *source_priority;
+
+ gslapt_load_ui (builder, "source_window.ui");
+ source_window = GTK_WIDGET (gtk_builder_get_object (builder, "source_window"));
+ gtk_builder_connect_signals (builder, builder);
+ // g_object_unref (G_OBJECT (builder));
+
+ source_entry = GTK_ENTRY(gtk_builder_get_object (builder,"source_entry"));
+ source_priority = GTK_COMBO_BOX(gtk_builder_get_object (builder,"source_priority"));
g_object_set_data ( G_OBJECT(source_window), "original_url", source);
gtk_entry_set_text(source_entry,source);
gtk_combo_box_set_active (source_priority,convert_slapt_priority_to_gslapt_priority(priority));
- gtk_widget_show(source_window);
+ gtk_widget_show_all(source_window);
}
}
@@ -2412,7 +2490,7 @@ void preferences_sources_edit (GtkWidget *w, gpointer *user_data)
void preferences_on_ok_clicked (GtkWidget *w, gpointer *user_data)
{
- GtkEntry *preferences_working_dir_entry = GTK_ENTRY(lookup_widget(w,"preferences_working_dir_entry"));
+ GtkEntry *preferences_working_dir_entry = GTK_ENTRY(gtk_builder_get_object(GTK_BUILDER(user_data),"preferences_working_dir_entry"));
const gchar *working_dir = gtk_entry_get_text(preferences_working_dir_entry);
GtkTreeModel *model;
GtkTreeView *tree;
@@ -2434,7 +2512,7 @@ void preferences_on_ok_clicked (GtkWidget *w, gpointer *user_data)
global_config->exclude_list = slapt_init_list();
global_config->sources = slapt_init_source_list();
- tree = GTK_TREE_VIEW(lookup_widget(w,"preferences_sources_treeview"));
+ tree = GTK_TREE_VIEW(gtk_builder_get_object(GTK_BUILDER(user_data),"preferences_sources_treeview"));
model = gtk_tree_view_get_model(tree);
valid = gtk_tree_model_get_iter_first(model,&iter);
while (valid)
@@ -2463,7 +2541,7 @@ void preferences_on_ok_clicked (GtkWidget *w, gpointer *user_data)
valid = gtk_tree_model_iter_next(model, &iter);
}
- tree = GTK_TREE_VIEW(lookup_widget(w,"preferences_exclude_treeview"));
+ tree = GTK_TREE_VIEW(gtk_builder_get_object(GTK_BUILDER(user_data),"preferences_exclude_treeview"));
model = gtk_tree_view_get_model(tree);
valid = gtk_tree_model_get_iter_first(model,&iter);
while (valid)
@@ -2483,15 +2561,25 @@ void preferences_on_ok_clicked (GtkWidget *w, gpointer *user_data)
}
preferences_window = NULL;
- gtk_widget_destroy(w);
+ gtk_widget_destroy(GTK_WIDGET (gtk_builder_get_object (GTK_BUILDER(user_data), "window_preferences")));
+ g_object_unref(G_OBJECT(user_data));
+ preferences_window_builder = NULL;
/* dialog to resync package sources */
if (sources_modified == TRUE) {
+ GtkBuilder *builder = gtk_builder_new ();
+ GtkWidget *rc;
sources_modified = FALSE;
+
if (excludes_modified == TRUE)
excludes_modified = FALSE;
- GtkWidget *rc = create_repositories_changed();
- gtk_widget_show(rc);
+
+ gslapt_load_ui (builder, "repositories_changed.ui");
+ rc = GTK_WIDGET (gtk_builder_get_object (builder, "repositories_changed"));
+ gtk_builder_connect_signals (builder, NULL);
+ g_object_unref (G_OBJECT (builder));
+
+ gtk_widget_show_all(rc);
} else {
/* rebuild package list */
if (excludes_modified == TRUE) {
@@ -2504,9 +2592,9 @@ void preferences_on_ok_clicked (GtkWidget *w, gpointer *user_data)
void preferences_exclude_add(GtkWidget *w, gpointer *user_data)
{
- GtkEntry *new_exclude_entry = GTK_ENTRY(lookup_widget(w,"new_exclude_entry"));
+ GtkEntry *new_exclude_entry = GTK_ENTRY(gtk_builder_get_object(GTK_BUILDER(user_data),"new_exclude_entry"));
const gchar *new_exclude = gtk_entry_get_text(new_exclude_entry);
- GtkTreeView *exclude_tree = GTK_TREE_VIEW(lookup_widget(w,"preferences_exclude_treeview"));
+ GtkTreeView *exclude_tree = GTK_TREE_VIEW(gtk_builder_get_object(GTK_BUILDER(user_data),"preferences_exclude_treeview"));
GtkListStore *store = GTK_LIST_STORE(gtk_tree_view_get_model(exclude_tree));
GtkTreeIter iter;
@@ -2525,7 +2613,7 @@ void preferences_exclude_remove(GtkWidget *w, gpointer *user_data)
{
GtkTreeIter iter;
GtkTreeModel *model;
- GtkTreeView *exclude_tree = GTK_TREE_VIEW(lookup_widget(w,"preferences_exclude_treeview"));
+ GtkTreeView *exclude_tree = GTK_TREE_VIEW(gtk_builder_get_object(GTK_BUILDER(user_data),"preferences_exclude_treeview"));
GtkTreeSelection *select = gtk_tree_view_get_selection (GTK_TREE_VIEW (exclude_tree));
GtkListStore *store = GTK_LIST_STORE(gtk_tree_view_get_model(exclude_tree));
@@ -2539,13 +2627,16 @@ void preferences_exclude_remove(GtkWidget *w, gpointer *user_data)
void cancel_preferences (GtkWidget *w, gpointer *user_data)
{
preferences_window = NULL;
- gtk_widget_destroy(w);
+ gtk_widget_destroy(GTK_WIDGET (gtk_builder_get_object (GTK_BUILDER(user_data), "window_preferences")));
+ g_object_unref(G_OBJECT(user_data));
+ preferences_window_builder = NULL;
}
void cancel_transaction (GtkWidget *w, gpointer *user_data)
{
- gtk_widget_destroy(w);
+ gtk_widget_destroy(GTK_WIDGET(gtk_builder_get_object(GTK_BUILDER(user_data),"transaction_window")));
+ g_object_unref (G_OBJECT (user_data));
}
void add_pkg_for_reinstall (GtkWidget *gslapt, gpointer *user_data)
@@ -2560,9 +2651,9 @@ void add_pkg_for_reinstall (GtkWidget *gslapt, gpointer *user_data)
static void set_execute_active (void)
{
- gtk_widget_set_sensitive(lookup_widget(gslapt,"action_bar_execute_button"),TRUE);
- gtk_widget_set_sensitive(lookup_widget(gslapt,"execute1"),TRUE);
- gtk_widget_set_sensitive(lookup_widget(gslapt,"unmark_all1"),TRUE);
+ gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(gslapt_builder,"action_bar_execute_button")),TRUE);
+ gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(gslapt_builder,"execute1")),TRUE);
+ gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(gslapt_builder,"unmark_all1")),TRUE);
if (pending_trans_context_id == 0) {
pending_trans_context_id = gslapt_set_status((gchar *)_("Pending changes. Click execute when ready."));
@@ -2575,26 +2666,34 @@ static void clear_execute_active (void)
if ( pending_trans_context_id > 0 ) {
gtk_statusbar_pop(
- GTK_STATUSBAR(lookup_widget(gslapt,"bottom_statusbar")),
+ GTK_STATUSBAR(gtk_builder_get_object(gslapt_builder,"bottom_statusbar")),
pending_trans_context_id
);
pending_trans_context_id = 0;
}
- gtk_widget_set_sensitive(lookup_widget(gslapt,"action_bar_execute_button"),FALSE);
- gtk_widget_set_sensitive(lookup_widget(gslapt,"execute1"),FALSE);
- gtk_widget_set_sensitive(lookup_widget(gslapt,"unmark_all1"),FALSE);
+ gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(gslapt_builder,"action_bar_execute_button")),FALSE);
+ gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(gslapt_builder,"execute1")),FALSE);
+ gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(gslapt_builder,"unmark_all1")),FALSE);
}
static void notify (const char *title,const char *message)
{
- GtkWidget *w = create_notification();
+ GtkBuilder *builder;
+ GtkWidget *w;
+
+ builder = gtk_builder_new ();
+ gslapt_load_ui (builder, "notification.ui");
+ w = GTK_WIDGET (gtk_builder_get_object (builder, "notification"));
+ gtk_builder_connect_signals (builder, NULL);
+
gtk_window_set_title (GTK_WINDOW (w), title);
- gtk_label_set_text(GTK_LABEL(lookup_widget(w,"notification_label")),message);
- gtk_label_set_use_markup (GTK_LABEL(lookup_widget(w,"notification_label")),
+ gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(builder,"notification_label")),message);
+ gtk_label_set_use_markup (GTK_LABEL(gtk_builder_get_object(builder,"notification_label")),
TRUE);
- gtk_widget_show(w);
+ g_object_unref (G_OBJECT (builder));
+ gtk_widget_show_all(w);
}
static gboolean pkg_action_popup_menu (GtkTreeView *treeview, gpointer data)
@@ -2604,18 +2703,21 @@ static gboolean pkg_action_popup_menu (GtkTreeView *treeview, gpointer data)
GtkTreeViewColumn *column;
GtkTreePath *path;
+ if (event == NULL)
+ return FALSE;
+
if (event->type != GDK_BUTTON_PRESS)
return FALSE;
if (!gtk_tree_view_get_path_at_pos(treeview,event->x,event->y,&path,&column,NULL,NULL))
return FALSE;
- if (event->button != 3 && (event->button == 1 && strcmp(column->title,(gchar *)_("Status")) != 0))
+ if (event->button != 3 && (event->button == 1 && strcmp(gtk_tree_view_column_get_title(column),(gchar *)_("Status")) != 0))
return FALSE;
gtk_tree_path_free(path);
- menu = GTK_MENU(gtk_menu_item_get_submenu(GTK_MENU_ITEM(lookup_widget(gslapt,"package1"))));
+ menu = GTK_MENU(gtk_menu_item_get_submenu(GTK_MENU_ITEM(gtk_builder_get_object(gslapt_builder,"package1"))));
gtk_menu_popup(
menu,
@@ -2639,7 +2741,7 @@ void unmark_package(GtkWidget *gslapt, gpointer *user_data)
guint is_installed = 0,i;
GtkTreeModelSort *package_model;
- treeview = GTK_TREE_VIEW(lookup_widget(gslapt,"pkg_listing_treeview"));
+ treeview = GTK_TREE_VIEW(gtk_builder_get_object(gslapt_builder,"pkg_listing_treeview"));
selection = gtk_tree_view_get_selection(treeview);
package_model = GTK_TREE_MODEL_SORT(gtk_tree_view_get_model(treeview));
@@ -2697,12 +2799,12 @@ void unmark_package(GtkWidget *gslapt, gpointer *user_data)
model = GTK_TREE_MODEL(gtk_tree_model_filter_get_model(GTK_TREE_MODEL_FILTER(filter_model)));
if (is_installed == 1) {
- GdkPixbuf *status_icon = create_pixbuf("pkg_action_installed.png");
+ GdkPixbuf *status_icon = gslapt_img("pkg_action_installed.png");
gtk_list_store_set(GTK_LIST_STORE(model),&actual_iter,STATUS_ICON_COLUMN,status_icon,-1);
status = g_strdup_printf("a%s",pkg->name);
g_object_unref(status_icon);
} else {
- GdkPixbuf *status_icon = create_pixbuf("pkg_action_available.png");
+ GdkPixbuf *status_icon = gslapt_img("pkg_action_available.png");
gtk_list_store_set(GTK_LIST_STORE(model),&actual_iter,STATUS_ICON_COLUMN,status_icon,-1);
status = g_strdup_printf("z%s",pkg->name);
g_object_unref(status_icon);
@@ -2723,7 +2825,7 @@ void unmark_package(GtkWidget *gslapt, gpointer *user_data)
if (set_iter_to_pkg(model,&actual_iter,installed_pkg)) {
gchar *istatus = g_strdup_printf("i%s",installed_pkg->name);
- GdkPixbuf *status_icon = create_pixbuf("pkg_action_installed.png");
+ GdkPixbuf *status_icon = gslapt_img("pkg_action_installed.png");
gtk_list_store_set(GTK_LIST_STORE(model),&actual_iter,STATUS_ICON_COLUMN,status_icon,-1);
gtk_list_store_set(GTK_LIST_STORE(model),&actual_iter,STATUS_COLUMN,istatus,-1);
gtk_list_store_set(GTK_LIST_STORE(model),&actual_iter,MARKED_COLUMN,FALSE,-1);
@@ -2790,7 +2892,7 @@ static int ladd_deps_to_trans (slapt_transaction_t *tran, slapt_pkg_list_t *avai
return -1;
}
- treeview = GTK_TREE_VIEW(lookup_widget(gslapt,"pkg_listing_treeview"));
+ treeview = GTK_TREE_VIEW(gtk_builder_get_object(gslapt_builder,"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)));
@@ -2977,10 +3079,18 @@ static slapt_pkg_upgrade_t *lsearch_upgrade_transaction (slapt_transaction_t *tr
return NULL;
}
-void open_icon_legend (GtkObject *object, gpointer *user_data)
+void open_icon_legend (GObject *object, gpointer *user_data)
{
- GtkWidget *icon_legend = create_icon_legend();
- gtk_widget_show(icon_legend);
+ GtkBuilder *builder;
+ GtkWidget *icon_legend;
+
+ builder = gtk_builder_new ();
+ gslapt_load_ui (builder, "icon_legend.ui");
+ icon_legend = GTK_WIDGET (gtk_builder_get_object (builder, "icon_legend"));
+ gtk_builder_connect_signals (builder, NULL);
+ g_object_unref (G_OBJECT (builder));
+
+ gtk_widget_show_all(icon_legend);
}
@@ -3032,49 +3142,49 @@ static void build_package_action_menu (slapt_pkg_info_t *pkg)
is_exclude = 1;
}
- menu = GTK_MENU(gtk_menu_item_get_submenu(GTK_MENU_ITEM(lookup_widget(gslapt,"package1"))));
+ menu = GTK_MENU(gtk_menu_item_get_submenu(GTK_MENU_ITEM(gtk_builder_get_object(gslapt_builder,"package1"))));
- gtk_widget_set_sensitive(lookup_widget(GTK_WIDGET(menu),"upgrade1"),FALSE);
- gtk_widget_set_sensitive(lookup_widget(GTK_WIDGET(menu),"re_install1"),FALSE);
- gtk_widget_set_sensitive(lookup_widget(GTK_WIDGET(menu),"downgrade1"),FALSE);
- gtk_widget_set_sensitive(lookup_widget(GTK_WIDGET(menu),"install1"),FALSE);
- gtk_widget_set_sensitive(lookup_widget(GTK_WIDGET(menu),"remove1"),FALSE);
- gtk_widget_set_sensitive(lookup_widget(GTK_WIDGET(menu),"unmark1"),FALSE);
+ gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(gslapt_builder,"upgrade1")),FALSE);
+ gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(gslapt_builder,"re-install1")),FALSE);
+ gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(gslapt_builder,"downgrade1")),FALSE);
+ gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(gslapt_builder,"install1")),FALSE);
+ gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(gslapt_builder,"remove1")),FALSE);
+ gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(gslapt_builder,"unmark1")),FALSE);
- g_signal_handlers_disconnect_by_func(GTK_OBJECT(lookup_widget(GTK_WIDGET(menu),"upgrade1")),add_pkg_for_install,GTK_OBJECT(gslapt));
- g_signal_handlers_disconnect_by_func(GTK_OBJECT(lookup_widget(GTK_WIDGET(menu),"re_install1")),add_pkg_for_reinstall,GTK_OBJECT(gslapt));
- g_signal_handlers_disconnect_by_func(GTK_OBJECT(lookup_widget(GTK_WIDGET(menu),"downgrade1")),add_pkg_for_reinstall,GTK_OBJECT(gslapt));
- g_signal_handlers_disconnect_by_func(GTK_OBJECT(lookup_widget(GTK_WIDGET(menu),"install1")),add_pkg_for_install,GTK_OBJECT(gslapt));
- g_signal_handlers_disconnect_by_func(GTK_OBJECT(lookup_widget(GTK_WIDGET(menu),"remove1")),add_pkg_for_removal,GTK_OBJECT(gslapt));
- g_signal_handlers_disconnect_by_func(GTK_OBJECT(lookup_widget(GTK_WIDGET(menu),"unmark1")),unmark_package,GTK_OBJECT(gslapt));
+ g_signal_handlers_disconnect_by_func(G_OBJECT(gtk_builder_get_object(gslapt_builder,"upgrade1")),add_pkg_for_install,G_OBJECT(gslapt));
+ g_signal_handlers_disconnect_by_func(G_OBJECT(gtk_builder_get_object(gslapt_builder,"re-install1")),add_pkg_for_reinstall,G_OBJECT(gslapt));
+ g_signal_handlers_disconnect_by_func(G_OBJECT(gtk_builder_get_object(gslapt_builder,"downgrade1")),add_pkg_for_reinstall,G_OBJECT(gslapt));
+ g_signal_handlers_disconnect_by_func(G_OBJECT(gtk_builder_get_object(gslapt_builder,"install1")),add_pkg_for_install,G_OBJECT(gslapt));
+ g_signal_handlers_disconnect_by_func(G_OBJECT(gtk_builder_get_object(gslapt_builder,"remove1")),add_pkg_for_removal,G_OBJECT(gslapt));
+ g_signal_handlers_disconnect_by_func(G_OBJECT(gtk_builder_get_object(gslapt_builder,"unmark1")),unmark_package,G_OBJECT(gslapt));
- g_signal_connect_swapped(G_OBJECT(lookup_widget(GTK_WIDGET(menu),"upgrade1")),
+ g_signal_connect_swapped(G_OBJECT(gtk_builder_get_object(gslapt_builder,"upgrade1")),
"activate", G_CALLBACK (add_pkg_for_install), GTK_WIDGET(gslapt));
- g_signal_connect_swapped((gpointer)lookup_widget(GTK_WIDGET(menu),"re_install1"),
- "activate", G_CALLBACK(add_pkg_for_reinstall),GTK_OBJECT(gslapt));
- g_signal_connect_swapped((gpointer)lookup_widget(GTK_WIDGET(menu),"downgrade1"),
- "activate", G_CALLBACK(add_pkg_for_reinstall),GTK_OBJECT(gslapt));
- g_signal_connect_swapped(G_OBJECT(lookup_widget(GTK_WIDGET(menu),"install1")),
+ g_signal_connect_swapped((gpointer)gtk_builder_get_object(gslapt_builder,"re-install1"),
+ "activate", G_CALLBACK(add_pkg_for_reinstall),G_OBJECT(gslapt));
+ g_signal_connect_swapped((gpointer)gtk_builder_get_object(gslapt_builder,"downgrade1"),
+ "activate", G_CALLBACK(add_pkg_for_reinstall),G_OBJECT(gslapt));
+ g_signal_connect_swapped(G_OBJECT(gtk_builder_get_object(gslapt_builder,"install1")),
"activate", G_CALLBACK (add_pkg_for_install), GTK_WIDGET(gslapt));
- g_signal_connect_swapped(G_OBJECT(lookup_widget(GTK_WIDGET(menu),"remove1")),
+ g_signal_connect_swapped(G_OBJECT(gtk_builder_get_object(gslapt_builder,"remove1")),
"activate",G_CALLBACK (add_pkg_for_removal), GTK_WIDGET(gslapt));
- g_signal_connect_swapped(G_OBJECT(lookup_widget(GTK_WIDGET(menu),"unmark1")),
+ g_signal_connect_swapped(G_OBJECT(gtk_builder_get_object(gslapt_builder,"unmark1")),
"activate",G_CALLBACK (unmark_package), GTK_WIDGET(gslapt));
if ( slapt_search_transaction(trans,pkg->name) == 0 ) {
if ( is_exclude == 0 ) {
/* upgrade */
if ( is_installed == 1 && is_newest == 0 && (slapt_search_transaction_by_pkg(trans,upgrade_pkg) == 0 ) ) {
- gtk_widget_set_sensitive(lookup_widget(GTK_WIDGET(menu),"upgrade1"),TRUE);
+ gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(gslapt_builder,"upgrade1")),TRUE);
/* re-install */
}else if ( is_installed == 1 && is_newest == 1 && is_downloadable == 1 ) {
- gtk_widget_set_sensitive(lookup_widget(GTK_WIDGET(menu),"re_install1"),TRUE);
+ gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(gslapt_builder,"re-install1")),TRUE);
/* this is for downgrades */
}else if ( is_installed == 0 && is_downgrade == 1 && is_downloadable == 1 ) {
- gtk_widget_set_sensitive(lookup_widget(GTK_WIDGET(menu),"downgrade1"),TRUE);
+ gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(gslapt_builder,"downgrade1")),TRUE);
/* straight up install */
}else if ( is_installed == 0 && is_downloadable == 1 ) {
- gtk_widget_set_sensitive(lookup_widget(GTK_WIDGET(menu),"install1"),TRUE);
+ gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(gslapt_builder,"install1")),TRUE);
}
}
@@ -3084,13 +3194,13 @@ static void build_package_action_menu (slapt_pkg_info_t *pkg)
is_installed == 1 && is_exclude != 1 &&
(slapt_search_transaction(trans,pkg->name) == 0)
) {
- gtk_widget_set_sensitive(lookup_widget(GTK_WIDGET(menu),"remove1"),TRUE);
+ gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(gslapt_builder,"remove1")),TRUE);
}
if ((slapt_get_exact_pkg(trans->exclude_pkgs,pkg->name,pkg->version) == NULL) &&
(slapt_search_transaction_by_pkg(trans,pkg) == 1)
) {
- gtk_widget_set_sensitive(lookup_widget(GTK_WIDGET(menu),"unmark1"),TRUE);
+ gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(gslapt_builder,"unmark1")),TRUE);
}
}
@@ -3102,7 +3212,7 @@ static void rebuild_package_action_menu (void)
GtkTreeIter iter;
GtkTreeModelSort *package_model;
- treeview = GTK_TREE_VIEW(lookup_widget(gslapt,"pkg_listing_treeview"));
+ treeview = GTK_TREE_VIEW(gtk_builder_get_object(gslapt_builder,"pkg_listing_treeview"));
package_model = GTK_TREE_MODEL_SORT(gtk_tree_view_get_model(treeview));
selection = gtk_tree_view_get_selection(treeview);
@@ -3142,12 +3252,12 @@ static void rebuild_package_action_menu (void)
}
} else {
- gtk_widget_set_sensitive(lookup_widget(GTK_WIDGET(gslapt),"upgrade1"),FALSE);
- gtk_widget_set_sensitive(lookup_widget(GTK_WIDGET(gslapt),"re_install1"),FALSE);
- gtk_widget_set_sensitive(lookup_widget(GTK_WIDGET(gslapt),"downgrade1"),FALSE);
- gtk_widget_set_sensitive(lookup_widget(GTK_WIDGET(gslapt),"install1"),FALSE);
- gtk_widget_set_sensitive(lookup_widget(GTK_WIDGET(gslapt),"remove1"),FALSE);
- gtk_widget_set_sensitive(lookup_widget(GTK_WIDGET(gslapt),"unmark1"),FALSE);
+ gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(gslapt_builder,"upgrade1")),FALSE);
+ gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(gslapt_builder,"re-install1")),FALSE);
+ gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(gslapt_builder,"downgrade1")),FALSE);
+ gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(gslapt_builder,"install1")),FALSE);
+ gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(gslapt_builder,"remove1")),FALSE);
+ gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(gslapt_builder,"unmark1")),FALSE);
}
}
@@ -3175,11 +3285,11 @@ static void reset_search_list (void)
view_list_available = FALSE, view_list_marked = FALSE,
view_list_upgradeable = FALSE;
- view_list_all = gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(lookup_widget(gslapt,"view_all_packages_menu")));
- view_list_available = gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(lookup_widget(gslapt,"view_available_packages_menu")));
- view_list_installed = gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(lookup_widget(gslapt,"view_installed_packages_menu")));
- view_list_marked = gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(lookup_widget(gslapt,"view_marked_packages_menu")));
- view_list_upgradeable = gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(lookup_widget(gslapt,"view_upgradeable_packages_menu")));
+ view_list_all = gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(gtk_builder_get_object(gslapt_builder,"view_all_packages_menu")));
+ view_list_available = gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(gtk_builder_get_object(gslapt_builder,"view_available_packages_menu")));
+ view_list_installed = gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(gtk_builder_get_object(gslapt_builder,"view_installed_packages_menu")));
+ view_list_marked = gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(gtk_builder_get_object(gslapt_builder,"view_marked_packages_menu")));
+ view_list_upgradeable = gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(gtk_builder_get_object(gslapt_builder,"view_upgradeable_packages_menu")));
if (view_list_all) {
view_all_packages(NULL,NULL);
@@ -3214,7 +3324,7 @@ void repositories_changed_callback (GtkWidget *repositories_changed,
gpointer *user_data)
{
gtk_widget_destroy(GTK_WIDGET(repositories_changed));
- g_signal_emit_by_name(lookup_widget(gslapt,"action_bar_update_button"),
+ g_signal_emit_by_name(gtk_builder_get_object(gslapt_builder,"action_bar_update_button"),
"clicked");
}
@@ -3277,13 +3387,16 @@ static gboolean toggle_source_status (GtkTreeView *treeview, gpointer data)
GtkTreeModel *model;
GtkTreeIter iter;
+ if (event == NULL)
+ return FALSE;
+
if (event->type != GDK_BUTTON_PRESS)
return FALSE;
if (!gtk_tree_view_get_path_at_pos(treeview,event->x,event->y,&path,&column,NULL,NULL))
return FALSE;
- if (strcmp(column->title,(gchar *)_("Enabled")) != 0)
+ if (strcmp(gtk_tree_view_column_get_title(column),(gchar *)_("Enabled")) != 0)
return FALSE;
gtk_tree_path_free(path);
@@ -3295,14 +3408,14 @@ static gboolean toggle_source_status (GtkTreeView *treeview, gpointer data)
gtk_tree_model_get(model,&iter,1,&source,2,&status,-1 );
if (status) { /* is active */
- GdkPixbuf *status_icon = create_pixbuf("pkg_action_available.png");
+ GdkPixbuf *status_icon = gslapt_img("pkg_action_available.png");
gtk_list_store_set(GTK_LIST_STORE(model),&iter,
0,status_icon,
2,FALSE,
-1);
g_object_unref(status_icon);
} else { /* is not active */
- GdkPixbuf *status_icon = create_pixbuf("pkg_action_installed.png");
+ GdkPixbuf *status_icon = gslapt_img("pkg_action_installed.png");
gtk_list_store_set(GTK_LIST_STORE(model),&iter,
0,status_icon,
2,TRUE,
@@ -3319,23 +3432,29 @@ static gboolean toggle_source_status (GtkTreeView *treeview, gpointer data)
static void display_dep_error_dialog (slapt_pkg_info_t *pkg,guint m, guint c)
{
- GtkWidget *w = create_dep_error_dialog();
+ GtkBuilder *builder;
+ GtkWidget *w;
GtkTextBuffer *error_buf = NULL;
guint i;
gchar *msg = g_strdup_printf((gchar *)_("<b>Excluding %s due to dependency failure</b>"),pkg->name);
+ builder = gtk_builder_new ();
+ gslapt_load_ui (builder, "dep_error_dialog.ui");
+ w = GTK_WIDGET (gtk_builder_get_object (builder, "dep_error_dialog"));
+ gtk_builder_connect_signals (builder, NULL);
+
gtk_window_set_title (GTK_WINDOW(w),(char *)_("Error"));
- gtk_label_set_text(GTK_LABEL(lookup_widget(w,"dep_error_label")),msg);
+ gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(builder,"dep_error_label")),msg);
g_free(msg);
- gtk_label_set_text(GTK_LABEL(lookup_widget(w,"dep_error_install_anyway_warning_label")),
+ gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(builder,"dep_error_install_anyway_warning_label")),
(char *)_("Missing dependencies may mean the software in this package will not function correctly. Do you want to continue without the required packages?"));
- gtk_label_set_use_markup (GTK_LABEL(lookup_widget(w,"dep_error_label")),
+ gtk_label_set_use_markup (GTK_LABEL(gtk_builder_get_object(builder,"dep_error_label")),
TRUE);
- gtk_label_set_use_markup (GTK_LABEL(lookup_widget(w,"dep_error_install_anyway_warning_label")),
+ gtk_label_set_use_markup (GTK_LABEL(gtk_builder_get_object(builder,"dep_error_install_anyway_warning_label")),
TRUE);
- error_buf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(lookup_widget(w,"dep_error_text")));
+ error_buf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(gtk_builder_get_object(builder,"dep_error_text")));
if (m == trans->missing_err->err_count)
m = 0;
@@ -3367,17 +3486,27 @@ static void display_dep_error_dialog (slapt_pkg_info_t *pkg,guint m, guint c)
free(err);
}
- g_signal_connect(G_OBJECT(lookup_widget(w,"dep_error_cancel_button")),"clicked",
+ g_signal_connect(G_OBJECT(gtk_builder_get_object(builder,"dep_error_cancel_button")),"clicked",
G_CALLBACK(exclude_dep_error_callback),pkg);
- g_signal_connect(G_OBJECT(lookup_widget(w,"dep_error_install_button")),"clicked",
+ g_signal_connect(G_OBJECT(gtk_builder_get_object(builder,"dep_error_install_button")),"clicked",
G_CALLBACK(install_dep_error_callback),pkg);
- gtk_widget_show(w);
+ g_object_unref (G_OBJECT (builder));
+ gtk_widget_show_all(w);
}
-static void exclude_dep_error_callback (GtkObject *object, gpointer *user_data)
+static void exclude_dep_error_callback (GObject *object, gpointer *user_data)
{
- GtkWidget *dep_error_dialog = lookup_widget(GTK_WIDGET(object),"dep_error_dialog");
+ GtkBuilder *builder = gtk_builder_new ();
+ GtkWidget *dep_error_dialog;
+
+ gslapt_load_ui (builder, "dep_error_dialog.ui");
+
+ dep_error_dialog = GTK_WIDGET(gtk_builder_get_object(builder, "dep_error_dialog"));
+
+ gtk_builder_connect_signals (builder, NULL);
+ g_object_unref (G_OBJECT (builder));
+
slapt_pkg_info_t *pkg = (slapt_pkg_info_t *)user_data;
slapt_add_exclude_to_transaction(trans,pkg);
@@ -3385,18 +3514,28 @@ static void exclude_dep_error_callback (GtkObject *object, gpointer *user_data)
gtk_widget_destroy(dep_error_dialog);
}
-static void install_dep_error_callback (GtkObject *object, gpointer *user_data)
+static void install_dep_error_callback (GObject *object, gpointer *user_data)
{
+ GtkBuilder *builder = gtk_builder_new ();
GtkTreeView *treeview;
GtkTreeIter iter;
GtkTreeModel *model;
GtkTreeModelFilter *filter_model;
GtkTreeModelSort *package_model;
- GtkWidget *dep_error_dialog = lookup_widget(GTK_WIDGET(object),"dep_error_dialog");
- slapt_pkg_info_t *pkg = (slapt_pkg_info_t *)user_data;
- slapt_pkg_info_t *installed_pkg = slapt_get_newest_pkg(installed,pkg->name);
+ GtkWidget *dep_error_dialog;
+ slapt_pkg_info_t *pkg;
+ slapt_pkg_info_t *installed_pkg;
+
+ gslapt_load_ui (builder, "dep_error_dialog.ui");
+
+ dep_error_dialog = GTK_WIDGET(gtk_builder_get_object(builder,"dep_error_dialog"));
+ gtk_builder_connect_signals (builder, NULL);
+ g_object_unref (G_OBJECT (builder));
- treeview = GTK_TREE_VIEW(lookup_widget(gslapt,"pkg_listing_treeview"));
+ pkg = (slapt_pkg_info_t *)user_data;
+ installed_pkg = slapt_get_newest_pkg(installed,pkg->name);
+
+ treeview = GTK_TREE_VIEW(gtk_builder_get_object(gslapt_builder,"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)));
model = GTK_TREE_MODEL(gtk_tree_model_filter_get_model(GTK_TREE_MODEL_FILTER(filter_model)));
@@ -3433,8 +3572,8 @@ static void install_dep_error_callback (GtkObject *object, gpointer *user_data)
void view_all_packages (GtkMenuItem *menuitem, gpointer *user_data)
{
- gchar *pattern = (gchar *)gtk_entry_get_text(GTK_ENTRY(lookup_widget(gslapt,"search_entry")));
- GtkTreeView *treeview = GTK_TREE_VIEW(lookup_widget(gslapt,"pkg_listing_treeview"));
+ gchar *pattern = (gchar *)gtk_entry_get_text(GTK_ENTRY(gtk_builder_get_object(gslapt_builder,"search_entry")));
+ GtkTreeView *treeview = GTK_TREE_VIEW(gtk_builder_get_object(gslapt_builder,"pkg_listing_treeview"));
GtkTreeModelFilter *filter_model;
GtkTreeModel *base_model;
GtkTreeIter iter;
@@ -3444,7 +3583,7 @@ void view_all_packages (GtkMenuItem *menuitem, gpointer *user_data)
if (pattern && strlen(pattern) > 0)
return build_searched_treeviewlist(GTK_WIDGET(treeview), pattern);
- treeview = GTK_TREE_VIEW(lookup_widget(gslapt,"pkg_listing_treeview"));
+ treeview = GTK_TREE_VIEW(gtk_builder_get_object(gslapt_builder,"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)));
@@ -3461,8 +3600,8 @@ void view_all_packages (GtkMenuItem *menuitem, gpointer *user_data)
void view_available_packages (GtkMenuItem *menuitem, gpointer *user_data)
{
gboolean show_installed = FALSE, show_available = TRUE;
- gchar *pattern = (gchar *)gtk_entry_get_text(GTK_ENTRY(lookup_widget(gslapt,"search_entry")));
- GtkTreeView *treeview = GTK_TREE_VIEW(lookup_widget(gslapt,"pkg_listing_treeview"));
+ gchar *pattern = (gchar *)gtk_entry_get_text(GTK_ENTRY(gtk_builder_get_object(gslapt_builder,"search_entry")));
+ GtkTreeView *treeview = GTK_TREE_VIEW(gtk_builder_get_object(gslapt_builder,"pkg_listing_treeview"));
view_installed_or_available_packages(show_installed, show_available);
@@ -3473,8 +3612,8 @@ void view_available_packages (GtkMenuItem *menuitem, gpointer *user_data)
void view_installed_packages (GtkMenuItem *menuitem, gpointer *user_data)
{
gboolean show_installed = TRUE, show_available = FALSE;
- gchar *pattern = (gchar *)gtk_entry_get_text(GTK_ENTRY(lookup_widget(gslapt,"search_entry")));
- GtkTreeView *treeview = GTK_TREE_VIEW(lookup_widget(gslapt,"pkg_listing_treeview"));
+ gchar *pattern = (gchar *)gtk_entry_get_text(GTK_ENTRY(gtk_builder_get_object(gslapt_builder,"search_entry")));
+ GtkTreeView *treeview = GTK_TREE_VIEW(gtk_builder_get_object(gslapt_builder,"pkg_listing_treeview"));
view_installed_or_available_packages(show_installed, show_available);
@@ -3491,7 +3630,7 @@ void view_installed_or_available_packages (gboolean show_installed, gboolean sho
GtkTreeModelSort *package_model;
GtkTreeView *treeview;
- treeview = GTK_TREE_VIEW(lookup_widget(gslapt,"pkg_listing_treeview"));
+ treeview = GTK_TREE_VIEW(gtk_builder_get_object(gslapt_builder,"pkg_listing_treeview"));
package_model = GTK_TREE_MODEL_SORT(gtk_tree_view_get_model(GTK_TREE_VIEW(treeview)));
filter_model = GTK_TREE_MODEL_FILTER(gtk_tree_model_sort_get_model(GTK_TREE_MODEL_SORT(package_model)));
@@ -3528,9 +3667,9 @@ void view_marked_packages (GtkMenuItem *menuitem, gpointer *user_data)
GtkTreeModel *base_model;
GtkTreeModelSort *package_model;
GtkTreeView *treeview;
- gchar *pattern = (gchar *)gtk_entry_get_text(GTK_ENTRY(lookup_widget(gslapt,"search_entry")));
+ gchar *pattern = (gchar *)gtk_entry_get_text(GTK_ENTRY(gtk_builder_get_object(gslapt_builder,"search_entry")));
- treeview = GTK_TREE_VIEW(lookup_widget(gslapt,"pkg_listing_treeview"));
+ treeview = GTK_TREE_VIEW(gtk_builder_get_object(gslapt_builder,"pkg_listing_treeview"));
package_model = GTK_TREE_MODEL_SORT(gtk_tree_view_get_model(GTK_TREE_VIEW(treeview)));
filter_model = GTK_TREE_MODEL_FILTER(gtk_tree_model_sort_get_model(GTK_TREE_MODEL_SORT(package_model)));
@@ -3562,7 +3701,7 @@ static int set_iter_for_install(GtkTreeModel *model, GtkTreeIter *iter,
slapt_pkg_info_t *pkg)
{
gchar *status = g_strdup_printf("i%s",pkg->name);
- GdkPixbuf *status_icon = create_pixbuf("pkg_action_install.png");
+ GdkPixbuf *status_icon = gslapt_img("pkg_action_install.png");
gtk_list_store_set(GTK_LIST_STORE(model),iter,STATUS_ICON_COLUMN,status_icon,-1);
gtk_list_store_set(GTK_LIST_STORE(model),iter,STATUS_COLUMN,status,-1);
gtk_list_store_set(GTK_LIST_STORE(model),iter,MARKED_COLUMN,TRUE,-1);
@@ -3575,7 +3714,7 @@ static int set_iter_for_reinstall(GtkTreeModel *model, GtkTreeIter *iter,
slapt_pkg_info_t *pkg)
{
gchar *status = g_strdup_printf("u%s",pkg->name);
- GdkPixbuf *status_icon = create_pixbuf("pkg_action_reinstall.png");
+ GdkPixbuf *status_icon = gslapt_img("pkg_action_reinstall.png");
gtk_list_store_set(GTK_LIST_STORE(model),iter,STATUS_ICON_COLUMN,status_icon,-1);
gtk_list_store_set(GTK_LIST_STORE(model),iter,STATUS_COLUMN,status,-1);
gtk_list_store_set(GTK_LIST_STORE(model),iter,MARKED_COLUMN,TRUE,-1);
@@ -3588,7 +3727,7 @@ static int set_iter_for_downgrade(GtkTreeModel *model, GtkTreeIter *iter,
slapt_pkg_info_t *pkg)
{
gchar *status = g_strdup_printf("u%s",pkg->name);
- GdkPixbuf *status_icon = create_pixbuf("pkg_action_downgrade.png");
+ GdkPixbuf *status_icon = gslapt_img("pkg_action_downgrade.png");
gtk_list_store_set(GTK_LIST_STORE(model),iter,STATUS_ICON_COLUMN,status_icon,-1);
gtk_list_store_set(GTK_LIST_STORE(model),iter,STATUS_COLUMN,status,-1);
gtk_list_store_set(GTK_LIST_STORE(model),iter,MARKED_COLUMN,TRUE,-1);
@@ -3601,7 +3740,7 @@ static int set_iter_for_upgrade(GtkTreeModel *model, GtkTreeIter *iter,
slapt_pkg_info_t *pkg)
{
gchar *status = g_strdup_printf("u%s",pkg->name);
- GdkPixbuf *status_icon = create_pixbuf("pkg_action_upgrade.png");
+ GdkPixbuf *status_icon = gslapt_img("pkg_action_upgrade.png");
gtk_list_store_set(GTK_LIST_STORE(model),iter,STATUS_ICON_COLUMN,status_icon,-1);
gtk_list_store_set(GTK_LIST_STORE(model),iter,STATUS_COLUMN,status,-1);
gtk_list_store_set(GTK_LIST_STORE(model),iter,MARKED_COLUMN,TRUE,-1);
@@ -3614,7 +3753,7 @@ static int set_iter_for_remove(GtkTreeModel *model, GtkTreeIter *iter,
slapt_pkg_info_t *pkg)
{
gchar *status = g_strdup_printf("r%s",pkg->name);
- GdkPixbuf *status_icon = create_pixbuf("pkg_action_remove.png");
+ GdkPixbuf *status_icon = gslapt_img("pkg_action_remove.png");
gtk_list_store_set(GTK_LIST_STORE(model),iter,STATUS_ICON_COLUMN,status_icon,-1);
gtk_list_store_set(GTK_LIST_STORE(model),iter,STATUS_COLUMN,status,-1);
gtk_list_store_set(GTK_LIST_STORE(model),iter,MARKED_COLUMN,TRUE,-1);
@@ -3638,7 +3777,7 @@ void mark_obsolete_packages (GtkMenuItem *menuitem, gpointer *user_data)
global_config, all, installed);
guint i;
- treeview = GTK_TREE_VIEW(lookup_widget(gslapt,"pkg_listing_treeview"));
+ treeview = GTK_TREE_VIEW(gtk_builder_get_object(gslapt_builder,"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)));
@@ -3715,15 +3854,16 @@ static void build_verification_sources_treeviewlist (GtkWidget *treeview)
}
#ifdef SLAPT_HAS_GPGME
-static void get_gpg_key(GtkWidget *w)
+static void get_gpg_key(GtkBuilder *b)
{
GtkTreeIter iter;
GtkTreeModel *model;
- GtkTreeView *source_tree = GTK_TREE_VIEW(lookup_widget(w,"preferences_verification_sources_treeview"));
+ GtkTreeView *source_tree = GTK_TREE_VIEW(gtk_builder_get_object(b,"preferences_verification_sources_treeview"));
GtkTreeSelection *select = gtk_tree_view_get_selection (GTK_TREE_VIEW (source_tree));
GtkListStore *store = GTK_LIST_STORE(gtk_tree_view_get_model(source_tree));
if ( gtk_tree_selection_get_selected(select,&model,&iter)) {
+ GtkBuilder *builder;
GtkLabel *progress_action_label, *progress_message_label;
GtkProgressBar *p_bar, *dl_bar;
unsigned int compressed = 0;
@@ -3732,18 +3872,23 @@ static void get_gpg_key(GtkWidget *w)
gchar *url;
gtk_tree_model_get(GTK_TREE_MODEL(model), &iter, 0, &url, -1);
- progress_window = create_dl_progress_window();
+ builder = gtk_builder_new ();
+ gslapt_load_ui (builder, "dl_progress_window.ui");
+ progress_window = GTK_WIDGET (gtk_builder_get_object (builder, "dl_progress_window"));
+ gtk_builder_connect_signals (builder, NULL);
+ gtk_window_set_transient_for (GTK_WINDOW(progress_window), GTK_WINDOW(gslapt));
+
gtk_window_set_title(GTK_WINDOW(progress_window),(gchar *)_("Progress"));
- p_bar = GTK_PROGRESS_BAR(lookup_widget(progress_window,"progress_progressbar"));
- dl_bar = GTK_PROGRESS_BAR(lookup_widget(progress_window,"dl_progress"));
- progress_action_label = GTK_LABEL(lookup_widget(progress_window,"progress_action"));
- progress_message_label = GTK_LABEL(lookup_widget(progress_window,"progress_message"));
+ p_bar = GTK_PROGRESS_BAR(gtk_builder_get_object(builder,"dl_progress_progressbar"));
+ dl_bar = GTK_PROGRESS_BAR(gtk_builder_get_object(builder,"dl_progress"));
+ progress_action_label = GTK_LABEL(gtk_builder_get_object(builder,"dl_progress_action"));
+ progress_message_label = GTK_LABEL(gtk_builder_get_object(builder,"dl_progress_message"));
gtk_progress_bar_set_fraction(dl_bar,0.0);
gtk_label_set_text(progress_message_label,url);
gtk_label_set_text(progress_action_label,(gchar *)SLAPT_GPG_KEY);
gdk_threads_enter();
- gtk_widget_show(progress_window);
+ gtk_widget_show_all(progress_window);
gdk_threads_leave();
gpg_key = slapt_get_pkg_source_gpg_key(global_config, url, &compressed);
@@ -3774,6 +3919,7 @@ static void get_gpg_key(GtkWidget *w)
g_free(url);
gdk_threads_enter();
+ g_object_unref (G_OBJECT (builder));
gtk_widget_destroy(progress_window);
gdk_threads_leave();
@@ -3786,9 +3932,9 @@ void preferences_sources_add_key (GtkWidget *w, gpointer *user_data)
GThread *gdp;
#if !GLIB_CHECK_VERSION (2, 31, 0)
- gdp = g_thread_create((GThreadFunc)get_gpg_key,w,FALSE,NULL);
+ gdp = g_thread_create((GThreadFunc)get_gpg_key,GTK_BUILDER(user_data),FALSE,NULL);
#else
- gdp = g_thread_new("GslaptPrefAddSource", (GThreadFunc)get_gpg_key,w);
+ gdp = g_thread_new("GslaptPrefAddSource", (GThreadFunc)get_gpg_key,GTK_BUILDER(user_data));
#endif
return;
@@ -3803,9 +3949,9 @@ void view_upgradeable_packages (GtkMenuItem *menuitem, gpointer *user_data)
GtkTreeModel *base_model;
GtkTreeModelSort *package_model;
GtkTreeView *treeview;
- gchar *pattern = (gchar *)gtk_entry_get_text(GTK_ENTRY(lookup_widget(gslapt,"search_entry")));
+ gchar *pattern = (gchar *)gtk_entry_get_text(GTK_ENTRY(gtk_builder_get_object(gslapt_builder,"search_entry")));
- treeview = GTK_TREE_VIEW(lookup_widget(gslapt,"pkg_listing_treeview"));
+ treeview = GTK_TREE_VIEW(gtk_builder_get_object(gslapt_builder,"pkg_listing_treeview"));
package_model = GTK_TREE_MODEL_SORT(gtk_tree_view_get_model(GTK_TREE_VIEW(treeview)));
filter_model = GTK_TREE_MODEL_FILTER(gtk_tree_model_sort_get_model(GTK_TREE_MODEL_SORT(package_model)));
@@ -3835,9 +3981,19 @@ void view_upgradeable_packages (GtkMenuItem *menuitem, gpointer *user_data)
void view_changelogs (GtkMenuItem *menuitem, gpointer *user_data)
{
+ GtkBuilder *builder = gtk_builder_new ();
int i, changelogs = 0;
- GtkWidget *changelog_window = create_changelog_window();
- GtkWidget *changelog_notebook = lookup_widget(changelog_window, "changelog_notebook");
+ GtkWidget *changelog_window;
+ GtkWidget *changelog_notebook;
+
+ gslapt_load_ui (builder, "changelog_window.ui");
+ changelog_window = GTK_WIDGET (gtk_builder_get_object (builder, "changelog_window"));
+ gtk_builder_connect_signals (builder, NULL);
+ gtk_window_set_transient_for (GTK_WINDOW(changelog_window), GTK_WINDOW(gslapt));
+
+ changelog_notebook = GTK_WIDGET(gtk_builder_get_object(builder, "changelog_notebook"));
+
+ g_object_unref (G_OBJECT (builder));
if ((gslapt_settings->cl_x == gslapt_settings->cl_y == gslapt_settings->cl_width == gslapt_settings->cl_height == 0)) {
gtk_window_set_default_size(GTK_WINDOW(changelog_window),
@@ -3929,9 +4085,9 @@ void view_changelogs (GtkMenuItem *menuitem, gpointer *user_data)
gtk_text_buffer_set_text(changelog_buffer, changelog_txt, -1);
gtk_text_view_set_editable (GTK_TEXT_VIEW (textview), FALSE);
- gtk_widget_show( scrolledwindow );
- gtk_widget_show( textview );
- gtk_widget_show( label );
+ gtk_widget_show_all( scrolledwindow );
+ gtk_widget_show_all( textview );
+ gtk_widget_show_all( label );
gtk_container_add ( GTK_CONTAINER(changelog_notebook), scrolledwindow );
gtk_container_set_border_width ( GTK_CONTAINER(scrolledwindow), 2 );
@@ -3946,7 +4102,7 @@ void view_changelogs (GtkMenuItem *menuitem, gpointer *user_data)
}
if (changelogs > 0) {
- gtk_widget_show(changelog_window);
+ gtk_widget_show_all(changelog_window);
} else {
gtk_widget_destroy(changelog_window);
notify((gchar *)_("ChangeLogs"),_("No changelogs found."));
@@ -3955,7 +4111,8 @@ void view_changelogs (GtkMenuItem *menuitem, gpointer *user_data)
void cancel_source_edit (GtkWidget *w, gpointer *user_data)
{
- gtk_widget_destroy(w);
+ gtk_widget_destroy(GTK_WIDGET(gtk_builder_get_object(GTK_BUILDER(user_data),"source_window")));
+ g_object_unref(G_OBJECT(user_data));
}
void source_edit_ok (GtkWidget *w, gpointer *user_data)
@@ -3963,11 +4120,11 @@ void source_edit_ok (GtkWidget *w, gpointer *user_data)
SLAPT_PRIORITY_T priority;
const char *original_url = NULL;
const gchar *source = NULL;
- GtkEntry *source_entry = GTK_ENTRY(lookup_widget(w,"source_entry"));
- GtkComboBox *source_priority = GTK_COMBO_BOX(lookup_widget(w,"source_priority"));
+ GtkEntry *source_entry = GTK_ENTRY(gtk_builder_get_object(GTK_BUILDER(user_data),"source_entry"));
+ GtkComboBox *source_priority = GTK_COMBO_BOX(gtk_builder_get_object(GTK_BUILDER(user_data),"source_priority"));
GtkTreeIter iter;
GtkTreeModel *model;
- GtkTreeView *source_tree = GTK_TREE_VIEW(lookup_widget(preferences_window,"preferences_sources_treeview"));
+ GtkTreeView *source_tree = GTK_TREE_VIEW(gtk_builder_get_object(preferences_window_builder,"preferences_sources_treeview"));
GtkTreeSelection *select = gtk_tree_view_get_selection (GTK_TREE_VIEW (source_tree));
GtkListStore *store = GTK_LIST_STORE(gtk_tree_view_get_model(source_tree));
@@ -3978,7 +4135,7 @@ void source_edit_ok (GtkWidget *w, gpointer *user_data)
priority = convert_gslapt_priority_to_slapt_priority(gtk_combo_box_get_active(source_priority));
- if ((original_url = g_object_get_data( G_OBJECT(w), "original_url")) != NULL) {
+ if ((original_url = g_object_get_data( G_OBJECT(gtk_builder_get_object(GTK_BUILDER(user_data),"source_window")), "original_url")) != NULL) {
const char *priority_str = slapt_priority_to_str(priority);
if ( gtk_tree_selection_get_selected(select,&model,&iter))
@@ -3986,7 +4143,7 @@ void source_edit_ok (GtkWidget *w, gpointer *user_data)
} else {
const char *priority_str = slapt_priority_to_str(priority);
- GdkPixbuf *status_icon = create_pixbuf("pkg_action_installed.png");
+ GdkPixbuf *status_icon = gslapt_img("pkg_action_installed.png");
gtk_list_store_append(store, &iter);
gtk_list_store_set(store, &iter,
0, status_icon,
@@ -3999,7 +4156,8 @@ void source_edit_ok (GtkWidget *w, gpointer *user_data)
}
sources_modified = TRUE;
- gtk_widget_destroy(w);
+ gtk_widget_destroy(GTK_WIDGET(gtk_builder_get_object(GTK_BUILDER(user_data),"source_window")));
+ g_object_unref(G_OBJECT(user_data));
}
static SLAPT_PRIORITY_T convert_gslapt_priority_to_slapt_priority(gint p)
@@ -4033,3 +4191,25 @@ static gint convert_slapt_priority_to_gslapt_priority(SLAPT_PRIORITY_T p)
};
}
+GdkPixbuf *gslapt_img (const char *img)
+{
+ char buffer[2048];
+
+ snprintf(buffer, 2047, "%s/%s/ui/%s", PACKAGE_DATA_DIR, PACKAGE, img);
+
+ GdkPixbuf *i = gdk_pixbuf_new_from_file(buffer, NULL);
+ return i;
+}
+
+void gslapt_load_ui (GtkBuilder *b, const char *f)
+{
+ GError *error = NULL;
+ char buffer[2048];
+ snprintf (buffer, 2047, "%s/%s/ui/%s", PACKAGE_DATA_DIR, PACKAGE, f);
+
+ if (!gtk_builder_add_from_file (b, buffer, &error)) {
+ g_warning ("Couldn't load builder file: %s", error->message);
+ g_error_free (error);
+ exit(1);
+ }
+}
diff --git a/src/callbacks.h b/src/callbacks.h
index f75e337..d612f6e 100644
--- a/src/callbacks.h
+++ b/src/callbacks.h
@@ -20,6 +20,36 @@
#include <slapt.h>
#define RC_LOCATION "/etc/slapt-get/slapt-getrc"
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+/*
+ * Standard gettext macros.
+ */
+#ifdef ENABLE_NLS
+# include <libintl.h>
+# undef _
+# define _(String) dgettext (PACKAGE, String)
+# define P_(String, String_p, n) ngettext(String, String_p, n)
+# ifdef gettext_noop
+# define N_(String) gettext_noop (String)
+# else
+# define N_(String) (String)
+# endif
+#else
+# define textdomain(String) (String)
+# define gettext(String) (String)
+# define dgettext(Domain,Message) (Message)
+# define dcgettext(Domain,Message,Type) (Message)
+# define bindtextdomain(Domain,Directory) (Domain)
+# define _(String) (String)
+# define P_(String, String_p, n) (String_p)
+# define N_(String) (String)
+#endif
+
+
+
enum {
STATUS_ICON_COLUMN,
NAME_COLUMN,
@@ -37,10 +67,10 @@ enum {
};
gboolean gslapt_window_resized(GtkWindow *window, GdkEvent *event, gpointer data);
-void on_gslapt_destroy (GtkObject *object, gpointer *user_data);
-void update_callback (GtkObject *object, gpointer *user_data);
-void upgrade_callback (GtkObject *object, gpointer *user_data);
-void execute_callback (GtkObject *object, gpointer *user_data);
+void on_gslapt_destroy (GObject *object, gpointer *user_data);
+void update_callback (GObject *object, gpointer *user_data);
+void upgrade_callback (GObject *object, gpointer *user_data);
+void execute_callback (GObject *object, gpointer *user_data);
void search_activated (GtkWidget *gslapt, gpointer *user_data);
void add_pkg_for_install (GtkWidget *gslapt, gpointer *user_data);
void add_pkg_for_reinstall (GtkWidget *gslapt, gpointer *user_data);
@@ -48,7 +78,7 @@ void add_pkg_for_removal (GtkWidget *gslapt, gpointer *user_data);
void build_installed_treeviewlist (GtkWidget *);
void build_available_treeviewlist (GtkWidget *);
void build_searched_treeviewlist (GtkWidget *,gchar *pattern);
-void open_about (GtkObject *object, gpointer *user_data);
+void open_about (GObject *object, gpointer *user_data);
void show_pkg_details (GtkTreeSelection *selection, gpointer data);
@@ -85,7 +115,7 @@ void repositories_changed_callback (GtkWidget *repositories_changed,
/* menu callbacks */
void clean_callback (GtkWidget *widget, gpointer *user_data);
void open_preferences (GtkMenuItem *menuitem, gpointer *user_data);
-void open_icon_legend (GtkObject *object, gpointer *user_data);
+void open_icon_legend (GObject *object, gpointer *user_data);
void unmark_all_activate (GtkMenuItem *menuitem, gpointer *user_data);
void update_activate (GtkMenuItem *menuitem, gpointer *user_data);
void mark_all_upgrades_activate (GtkMenuItem *menuitem, gpointer *user_data);
@@ -112,3 +142,6 @@ void view_changelogs (GtkMenuItem *menuitem, gpointer *user_data);
void cancel_source_edit (GtkWidget *w, gpointer *user_data);
void source_edit_ok (GtkWidget *w, gpointer *user_data);
+
+GdkPixbuf *gslapt_img (const char *img);
+void gslapt_load_ui (GtkBuilder *b, const char *f);
diff --git a/src/interface.c b/src/interface.c
deleted file mode 100644
index e0e4a93..0000000
--- a/src/interface.c
+++ /dev/null
@@ -1,3052 +0,0 @@
-/*
- * DO NOT EDIT THIS FILE - it is generated by Glade.
- */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <unistd.h>
-#include <string.h>
-#include <stdio.h>
-
-#include <gdk/gdkkeysyms.h>
-#include <gtk/gtk.h>
-
-#include "callbacks.h"
-#include "interface.h"
-#include "support.h"
-
-#define GLADE_HOOKUP_OBJECT(component,widget,name) \
- g_object_set_data_full (G_OBJECT (component), name, \
- gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref)
-
-#define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \
- g_object_set_data (G_OBJECT (component), name, widget)
-
-GtkWidget*
-create_window_preferences (void)
-{
- GtkWidget *window_preferences;
- GdkPixbuf *window_preferences_icon_pixbuf;
- GtkWidget *preferences_vbox;
- GtkWidget *preferences_notebook;
- GtkWidget *preferences_working_dir_vbox;
- GtkWidget *preferences_working_dir_vbox_vbox;
- GtkWidget *preferences_working_dir_label;
- GtkWidget *hbox3;
- GtkWidget *label72;
- GtkWidget *vbox12;
- GtkWidget *preferences_working_dir_entry;
- GtkWidget *button7;
- GtkWidget *label50;
- GtkWidget *preferences_exclude_vbox;
- GtkWidget *preferences_exclude_vbox_vbox;
- GtkWidget *preferences_exclude_label;
- GtkWidget *hbox81;
- GtkWidget *label140;
- GtkWidget *hbox82;
- GtkWidget *scrolledwindow12;
- GtkWidget *preferences_exclude_treeview;
- GtkWidget *vbox42;
- GtkWidget *preferences_remove_exclude_button;
- GtkWidget *hbox95;
- GtkWidget *label164;
- GtkWidget *new_exclude_entry;
- GtkWidget *preferences_add_exclude_button;
- GtkWidget *label51;
- GtkWidget *preferences_sources_vbox;
- GtkWidget *vbox57;
- GtkWidget *label161;
- GtkWidget *hbox92;
- GtkWidget *label162;
- GtkWidget *hbox93;
- GtkWidget *scrolledwindow16;
- GtkWidget *preferences_sources_treeview;
- GtkWidget *vbox58;
- GtkWidget *preferences_add_source_button;
- GtkWidget *button8;
- GtkWidget *preferences_remove_source_button;
- GtkWidget *label160;
- #ifdef SLAPT_HAS_GPGME
- GtkWidget *preferences_verification_vbox;
- GtkWidget *vbox76;
- GtkWidget *label294;
- GtkWidget *hbox116;
- GtkWidget *label295;
- GtkWidget *hbox117;
- GtkWidget *scrolledwindow24;
- GtkWidget *preferences_verification_sources_treeview;
- GtkWidget *vbox77;
- GtkWidget *button9;
- GtkWidget *label293;
- #endif
- GtkWidget *preferences_hbuttonbox;
- GtkWidget *preferences_close_button;
- GtkWidget *preferences_ok_button;
-
- window_preferences = gtk_window_new (GTK_WINDOW_TOPLEVEL);
- gtk_widget_set_name (window_preferences, "window_preferences");
- gtk_window_set_title (GTK_WINDOW (window_preferences), _("Preferences"));
- gtk_window_set_position (GTK_WINDOW (window_preferences), GTK_WIN_POS_CENTER);
- gtk_window_set_modal (GTK_WINDOW (window_preferences), TRUE);
- gtk_window_set_default_size (GTK_WINDOW (window_preferences), 400, 300);
- window_preferences_icon_pixbuf = create_pixbuf ("gslapt.png");
- if (window_preferences_icon_pixbuf)
- {
- gtk_window_set_icon (GTK_WINDOW (window_preferences), window_preferences_icon_pixbuf);
- g_object_unref (window_preferences_icon_pixbuf);
- }
- gtk_window_set_gravity (GTK_WINDOW (window_preferences), GDK_GRAVITY_CENTER);
-
- preferences_vbox = gtk_vbox_new (FALSE, 0);
- gtk_widget_set_name (preferences_vbox, "preferences_vbox");
- gtk_widget_show (preferences_vbox);
- gtk_container_add (GTK_CONTAINER (window_preferences), preferences_vbox);
- gtk_container_set_border_width (GTK_CONTAINER (preferences_vbox), 6);
-
- preferences_notebook = gtk_notebook_new ();
- gtk_widget_set_name (preferences_notebook, "preferences_notebook");
- gtk_widget_show (preferences_notebook);
- gtk_box_pack_start (GTK_BOX (preferences_vbox), preferences_notebook, TRUE, TRUE, 0);
- gtk_container_set_border_width (GTK_CONTAINER (preferences_notebook), 6);
-
- preferences_working_dir_vbox = gtk_vbox_new (FALSE, 18);
- gtk_widget_set_name (preferences_working_dir_vbox, "preferences_working_dir_vbox");
- gtk_widget_show (preferences_working_dir_vbox);
- gtk_container_add (GTK_CONTAINER (preferences_notebook), preferences_working_dir_vbox);
- gtk_container_set_border_width (GTK_CONTAINER (preferences_working_dir_vbox), 12);
-
- preferences_working_dir_vbox_vbox = gtk_vbox_new (FALSE, 6);
- gtk_widget_set_name (preferences_working_dir_vbox_vbox, "preferences_working_dir_vbox_vbox");
- gtk_widget_show (preferences_working_dir_vbox_vbox);
- gtk_box_pack_start (GTK_BOX (preferences_working_dir_vbox), preferences_working_dir_vbox_vbox, TRUE, TRUE, 0);
-
- preferences_working_dir_label = gtk_label_new (_("<b>Package and data storage</b>"));
- gtk_widget_set_name (preferences_working_dir_label, "preferences_working_dir_label");
- gtk_widget_show (preferences_working_dir_label);
- gtk_box_pack_start (GTK_BOX (preferences_working_dir_vbox_vbox), preferences_working_dir_label, FALSE, FALSE, 0);
- gtk_label_set_use_markup (GTK_LABEL (preferences_working_dir_label), TRUE);
- gtk_misc_set_alignment (GTK_MISC (preferences_working_dir_label), 0, 0.5);
-
- hbox3 = gtk_hbox_new (FALSE, 0);
- gtk_widget_set_name (hbox3, "hbox3");
- gtk_widget_show (hbox3);
- gtk_box_pack_start (GTK_BOX (preferences_working_dir_vbox_vbox), hbox3, TRUE, TRUE, 0);
-
- label72 = gtk_label_new (" ");
- gtk_widget_set_name (label72, "label72");
- gtk_widget_show (label72);
- gtk_box_pack_start (GTK_BOX (hbox3), label72, FALSE, FALSE, 0);
-
- vbox12 = gtk_vbox_new (FALSE, 6);
- gtk_widget_set_name (vbox12, "vbox12");
- gtk_widget_show (vbox12);
- gtk_box_pack_start (GTK_BOX (hbox3), vbox12, FALSE, FALSE, 0);
-
- preferences_working_dir_entry = gtk_entry_new ();
- gtk_widget_set_name (preferences_working_dir_entry, "preferences_working_dir_entry");
- gtk_widget_show (preferences_working_dir_entry);
- gtk_box_pack_start (GTK_BOX (vbox12), preferences_working_dir_entry, FALSE, FALSE, 0);
-
- button7 = gtk_button_new_with_mnemonic (_("_Delete Cached Package Files"));
- gtk_widget_set_name (button7, "button7");
- gtk_widget_show (button7);
- gtk_box_pack_start (GTK_BOX (vbox12), button7, FALSE, FALSE, 0);
-
- label50 = gtk_label_new (_("Working Directory"));
- gtk_widget_set_name (label50, "label50");
- gtk_widget_show (label50);
- gtk_notebook_set_tab_label (GTK_NOTEBOOK (preferences_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (preferences_notebook), 0), label50);
- gtk_label_set_justify (GTK_LABEL (label50), GTK_JUSTIFY_CENTER);
-
- preferences_exclude_vbox = gtk_vbox_new (FALSE, 18);
- gtk_widget_set_name (preferences_exclude_vbox, "preferences_exclude_vbox");
- gtk_widget_show (preferences_exclude_vbox);
- gtk_container_add (GTK_CONTAINER (preferences_notebook), preferences_exclude_vbox);
- gtk_container_set_border_width (GTK_CONTAINER (preferences_exclude_vbox), 12);
-
- preferences_exclude_vbox_vbox = gtk_vbox_new (FALSE, 6);
- gtk_widget_set_name (preferences_exclude_vbox_vbox, "preferences_exclude_vbox_vbox");
- gtk_widget_show (preferences_exclude_vbox_vbox);
- gtk_box_pack_start (GTK_BOX (preferences_exclude_vbox), preferences_exclude_vbox_vbox, TRUE, TRUE, 0);
- gtk_container_set_border_width (GTK_CONTAINER (preferences_exclude_vbox_vbox), 12);
-
- preferences_exclude_label = gtk_label_new (_("<b>Exclude List</b>"));
- gtk_widget_set_name (preferences_exclude_label, "preferences_exclude_label");
- gtk_widget_show (preferences_exclude_label);
- gtk_box_pack_start (GTK_BOX (preferences_exclude_vbox_vbox), preferences_exclude_label, FALSE, FALSE, 0);
- gtk_label_set_use_markup (GTK_LABEL (preferences_exclude_label), TRUE);
- gtk_misc_set_alignment (GTK_MISC (preferences_exclude_label), 0, 0.5);
-
- hbox81 = gtk_hbox_new (FALSE, 0);
- gtk_widget_set_name (hbox81, "hbox81");
- gtk_widget_show (hbox81);
- gtk_box_pack_start (GTK_BOX (preferences_exclude_vbox_vbox), hbox81, TRUE, TRUE, 0);
- gtk_widget_set_size_request (hbox81, -1, 174);
-
- label140 = gtk_label_new (" ");
- gtk_widget_set_name (label140, "label140");
- gtk_widget_show (label140);
- gtk_box_pack_start (GTK_BOX (hbox81), label140, FALSE, FALSE, 0);
-
- hbox82 = gtk_hbox_new (FALSE, 12);
- gtk_widget_set_name (hbox82, "hbox82");
- gtk_widget_show (hbox82);
- gtk_box_pack_start (GTK_BOX (hbox81), hbox82, TRUE, TRUE, 0);
-
- scrolledwindow12 = gtk_scrolled_window_new (NULL, NULL);
- gtk_widget_set_name (scrolledwindow12, "scrolledwindow12");
- gtk_widget_show (scrolledwindow12);
- gtk_box_pack_start (GTK_BOX (hbox82), scrolledwindow12, TRUE, TRUE, 0);
- gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow12), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
- gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow12), GTK_SHADOW_IN);
-
- preferences_exclude_treeview = gtk_tree_view_new ();
- gtk_widget_set_name (preferences_exclude_treeview, "preferences_exclude_treeview");
- gtk_widget_show (preferences_exclude_treeview);
- gtk_container_add (GTK_CONTAINER (scrolledwindow12), preferences_exclude_treeview);
- gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (preferences_exclude_treeview), FALSE);
- gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (preferences_exclude_treeview), TRUE);
- gtk_tree_view_set_reorderable (GTK_TREE_VIEW (preferences_exclude_treeview), TRUE);
-
- vbox42 = gtk_vbox_new (FALSE, 6);
- gtk_widget_set_name (vbox42, "vbox42");
- gtk_widget_show (vbox42);
- gtk_box_pack_start (GTK_BOX (hbox82), vbox42, FALSE, FALSE, 0);
-
- preferences_remove_exclude_button = gtk_button_new_from_stock ("gtk-remove");
- gtk_widget_set_name (preferences_remove_exclude_button, "preferences_remove_exclude_button");
- gtk_widget_show (preferences_remove_exclude_button);
- gtk_box_pack_start (GTK_BOX (vbox42), preferences_remove_exclude_button, FALSE, FALSE, 0);
- GTK_WIDGET_SET_FLAGS (preferences_remove_exclude_button, GTK_CAN_DEFAULT);
-
- hbox95 = gtk_hbox_new (FALSE, 2);
- gtk_widget_set_name (hbox95, "hbox95");
- gtk_widget_show (hbox95);
- gtk_box_pack_start (GTK_BOX (preferences_exclude_vbox_vbox), hbox95, FALSE, TRUE, 0);
- gtk_container_set_border_width (GTK_CONTAINER (hbox95), 6);
-
- label164 = gtk_label_new (_("<span weight=\"bold\">Exclude Expression:</span>"));
- gtk_widget_set_name (label164, "label164");
- gtk_widget_show (label164);
- gtk_box_pack_start (GTK_BOX (hbox95), label164, FALSE, FALSE, 0);
- gtk_label_set_use_markup (GTK_LABEL (label164), TRUE);
-
- new_exclude_entry = gtk_entry_new ();
- gtk_widget_set_name (new_exclude_entry, "new_exclude_entry");
- gtk_widget_show (new_exclude_entry);
- gtk_box_pack_start (GTK_BOX (hbox95), new_exclude_entry, TRUE, TRUE, 0);
-
- preferences_add_exclude_button = gtk_button_new_from_stock ("gtk-add");
- gtk_widget_set_name (preferences_add_exclude_button, "preferences_add_exclude_button");
- gtk_widget_show (preferences_add_exclude_button);
- gtk_box_pack_start (GTK_BOX (hbox95), preferences_add_exclude_button, FALSE, FALSE, 0);
- GTK_WIDGET_SET_FLAGS (preferences_add_exclude_button, GTK_CAN_DEFAULT);
-
- label51 = gtk_label_new (_("Excludes"));
- gtk_widget_set_name (label51, "label51");
- gtk_widget_show (label51);
- gtk_notebook_set_tab_label (GTK_NOTEBOOK (preferences_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (preferences_notebook), 1), label51);
- gtk_label_set_justify (GTK_LABEL (label51), GTK_JUSTIFY_CENTER);
-
- preferences_sources_vbox = gtk_vbox_new (FALSE, 18);
- gtk_widget_set_name (preferences_sources_vbox, "preferences_sources_vbox");
- gtk_widget_show (preferences_sources_vbox);
- gtk_container_add (GTK_CONTAINER (preferences_notebook), preferences_sources_vbox);
- gtk_container_set_border_width (GTK_CONTAINER (preferences_sources_vbox), 12);
-
- vbox57 = gtk_vbox_new (FALSE, 6);
- gtk_widget_set_name (vbox57, "vbox57");
- gtk_widget_show (vbox57);
- gtk_box_pack_start (GTK_BOX (preferences_sources_vbox), vbox57, TRUE, TRUE, 0);
- gtk_container_set_border_width (GTK_CONTAINER (vbox57), 12);
-
- label161 = gtk_label_new (_("<b>Package Sources</b>"));
- gtk_widget_set_name (label161, "label161");
- gtk_widget_show (label161);
- gtk_box_pack_start (GTK_BOX (vbox57), label161, FALSE, FALSE, 0);
- gtk_label_set_use_markup (GTK_LABEL (label161), TRUE);
- gtk_misc_set_alignment (GTK_MISC (label161), 0, 0.5);
-
- hbox92 = gtk_hbox_new (FALSE, 0);
- gtk_widget_set_name (hbox92, "hbox92");
- gtk_widget_show (hbox92);
- gtk_box_pack_start (GTK_BOX (vbox57), hbox92, TRUE, TRUE, 0);
- gtk_widget_set_size_request (hbox92, -1, 174);
-
- label162 = gtk_label_new (" ");
- gtk_widget_set_name (label162, "label162");
- gtk_widget_show (label162);
- gtk_box_pack_start (GTK_BOX (hbox92), label162, FALSE, FALSE, 0);
-
- hbox93 = gtk_hbox_new (FALSE, 12);
- gtk_widget_set_name (hbox93, "hbox93");
- gtk_widget_show (hbox93);
- gtk_box_pack_start (GTK_BOX (hbox92), hbox93, TRUE, TRUE, 0);
-
- scrolledwindow16 = gtk_scrolled_window_new (NULL, NULL);
- gtk_widget_set_name (scrolledwindow16, "scrolledwindow16");
- gtk_widget_show (scrolledwindow16);
- gtk_box_pack_start (GTK_BOX (hbox93), scrolledwindow16, TRUE, TRUE, 0);
- gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow16), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
- gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow16), GTK_SHADOW_IN);
-
- preferences_sources_treeview = gtk_tree_view_new ();
- gtk_widget_set_name (preferences_sources_treeview, "preferences_sources_treeview");
- gtk_widget_show (preferences_sources_treeview);
- gtk_container_add (GTK_CONTAINER (scrolledwindow16), preferences_sources_treeview);
- gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (preferences_sources_treeview), TRUE);
- gtk_tree_view_set_reorderable (GTK_TREE_VIEW (preferences_sources_treeview), TRUE);
-
- vbox58 = gtk_vbox_new (FALSE, 6);
- gtk_widget_set_name (vbox58, "vbox58");
- gtk_widget_show (vbox58);
- gtk_box_pack_start (GTK_BOX (hbox93), vbox58, FALSE, FALSE, 0);
-
- preferences_add_source_button = gtk_button_new_from_stock ("gtk-add");
- gtk_widget_set_name (preferences_add_source_button, "preferences_add_source_button");
- gtk_widget_show (preferences_add_source_button);
- gtk_box_pack_start (GTK_BOX (vbox58), preferences_add_source_button, FALSE, FALSE, 0);
- GTK_WIDGET_SET_FLAGS (preferences_add_source_button, GTK_CAN_DEFAULT);
-
- button8 = gtk_button_new_from_stock ("gtk-edit");
- gtk_widget_set_name (button8, "button8");
- gtk_widget_show (button8);
- gtk_box_pack_start (GTK_BOX (vbox58), button8, FALSE, FALSE, 0);
-
- preferences_remove_source_button = gtk_button_new_from_stock ("gtk-remove");
- gtk_widget_set_name (preferences_remove_source_button, "preferences_remove_source_button");
- gtk_widget_show (preferences_remove_source_button);
- gtk_box_pack_start (GTK_BOX (vbox58), preferences_remove_source_button, FALSE, FALSE, 0);
- GTK_WIDGET_SET_FLAGS (preferences_remove_source_button, GTK_CAN_DEFAULT);
-
- label160 = gtk_label_new (_("Sources"));
- gtk_widget_set_name (label160, "label160");
- gtk_widget_show (label160);
- gtk_notebook_set_tab_label (GTK_NOTEBOOK (preferences_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (preferences_notebook), 2), label160);
-
- #ifdef SLAPT_HAS_GPGME
- preferences_verification_vbox = gtk_vbox_new (FALSE, 18);
- gtk_widget_set_name (preferences_verification_vbox, "preferences_verification_vbox");
- gtk_widget_show (preferences_verification_vbox);
- gtk_container_add (GTK_CONTAINER (preferences_notebook), preferences_verification_vbox);
- gtk_container_set_border_width (GTK_CONTAINER (preferences_verification_vbox), 12);
-
- vbox76 = gtk_vbox_new (FALSE, 6);
- gtk_widget_set_name (vbox76, "vbox76");
- gtk_widget_show (vbox76);
- gtk_box_pack_start (GTK_BOX (preferences_verification_vbox), vbox76, TRUE, TRUE, 0);
- gtk_container_set_border_width (GTK_CONTAINER (vbox76), 12);
-
- label294 = gtk_label_new (_("<b>GPG Keys</b>"));
- gtk_widget_set_name (label294, "label294");
- gtk_widget_show (label294);
- gtk_box_pack_start (GTK_BOX (vbox76), label294, FALSE, FALSE, 0);
- gtk_label_set_use_markup (GTK_LABEL (label294), TRUE);
- gtk_misc_set_alignment (GTK_MISC (label294), 0, 0.5);
-
- hbox116 = gtk_hbox_new (FALSE, 0);
- gtk_widget_set_name (hbox116, "hbox116");
- gtk_widget_show (hbox116);
- gtk_box_pack_start (GTK_BOX (vbox76), hbox116, TRUE, TRUE, 0);
- gtk_widget_set_size_request (hbox116, -1, 174);
-
- label295 = gtk_label_new (" ");
- gtk_widget_set_name (label295, "label295");
- gtk_widget_show (label295);
- gtk_box_pack_start (GTK_BOX (hbox116), label295, FALSE, FALSE, 0);
-
- hbox117 = gtk_hbox_new (FALSE, 12);
- gtk_widget_set_name (hbox117, "hbox117");
- gtk_widget_show (hbox117);
- gtk_box_pack_start (GTK_BOX (hbox116), hbox117, TRUE, TRUE, 0);
-
- scrolledwindow24 = gtk_scrolled_window_new (NULL, NULL);
- gtk_widget_set_name (scrolledwindow24, "scrolledwindow24");
- gtk_widget_show (scrolledwindow24);
- gtk_box_pack_start (GTK_BOX (hbox117), scrolledwindow24, TRUE, TRUE, 0);
- gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow24), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
- gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow24), GTK_SHADOW_IN);
-
- preferences_verification_sources_treeview = gtk_tree_view_new ();
- gtk_widget_set_name (preferences_verification_sources_treeview, "preferences_verification_sources_treeview");
- gtk_widget_show (preferences_verification_sources_treeview);
- gtk_container_add (GTK_CONTAINER (scrolledwindow24), preferences_verification_sources_treeview);
- gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (preferences_verification_sources_treeview), TRUE);
- gtk_tree_view_set_reorderable (GTK_TREE_VIEW (preferences_verification_sources_treeview), TRUE);
-
- vbox77 = gtk_vbox_new (FALSE, 6);
- gtk_widget_set_name (vbox77, "vbox77");
- gtk_widget_show (vbox77);
- gtk_box_pack_start (GTK_BOX (hbox117), vbox77, FALSE, FALSE, 0);
-
- button9 = gtk_button_new_from_stock ("gtk-add");
- gtk_widget_set_name (button9, "button9");
- gtk_widget_show (button9);
- gtk_box_pack_start (GTK_BOX (vbox77), button9, FALSE, FALSE, 0);
- GTK_WIDGET_SET_FLAGS (button9, GTK_CAN_DEFAULT);
-
- label293 = gtk_label_new (_("Verification"));
- gtk_widget_set_name (label293, "label293");
- gtk_widget_show (label293);
- gtk_notebook_set_tab_label (GTK_NOTEBOOK (preferences_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (preferences_notebook), 3), label293);
- #endif
-
- preferences_hbuttonbox = gtk_hbutton_box_new ();
- gtk_widget_set_name (preferences_hbuttonbox, "preferences_hbuttonbox");
- gtk_widget_show (preferences_hbuttonbox);
- gtk_box_pack_start (GTK_BOX (preferences_vbox), preferences_hbuttonbox, FALSE, TRUE, 0);
- gtk_container_set_border_width (GTK_CONTAINER (preferences_hbuttonbox), 6);
- gtk_button_box_set_layout (GTK_BUTTON_BOX (preferences_hbuttonbox), GTK_BUTTONBOX_END);
- gtk_box_set_spacing (GTK_BOX (preferences_hbuttonbox), 6);
-
- preferences_close_button = gtk_button_new_from_stock ("gtk-cancel");
- gtk_widget_set_name (preferences_close_button, "preferences_close_button");
- gtk_widget_show (preferences_close_button);
- gtk_container_add (GTK_CONTAINER (preferences_hbuttonbox), preferences_close_button);
- GTK_WIDGET_SET_FLAGS (preferences_close_button, GTK_CAN_DEFAULT);
-
- preferences_ok_button = gtk_button_new_from_stock ("gtk-ok");
- gtk_widget_set_name (preferences_ok_button, "preferences_ok_button");
- gtk_widget_show (preferences_ok_button);
- gtk_container_add (GTK_CONTAINER (preferences_hbuttonbox), preferences_ok_button);
- GTK_WIDGET_SET_FLAGS (preferences_ok_button, GTK_CAN_DEFAULT);
-
- g_signal_connect ((gpointer) window_preferences, "destroy_event",
- G_CALLBACK (gtk_widget_destroy),
- NULL);
- g_signal_connect ((gpointer) button7, "clicked",
- G_CALLBACK (clean_callback),
- NULL);
- g_signal_connect ((gpointer) window_preferences, "configure-event",
- G_CALLBACK (gslapt_window_resized),
- NULL);
- g_signal_connect_swapped ((gpointer) preferences_remove_exclude_button, "clicked",
- G_CALLBACK (preferences_exclude_remove),
- GTK_OBJECT (window_preferences));
- g_signal_connect_swapped ((gpointer) new_exclude_entry, "editing_done",
- G_CALLBACK (preferences_exclude_add),
- GTK_OBJECT (window_preferences));
- g_signal_connect_swapped ((gpointer) new_exclude_entry, "activate",
- G_CALLBACK (preferences_exclude_add),
- GTK_OBJECT (window_preferences));
- g_signal_connect_swapped ((gpointer) preferences_add_exclude_button, "clicked",
- G_CALLBACK (preferences_exclude_add),
- GTK_OBJECT (window_preferences));
- g_signal_connect_swapped ((gpointer) preferences_add_source_button, "clicked",
- G_CALLBACK (preferences_sources_add),
- GTK_OBJECT (window_preferences));
- g_signal_connect_swapped ((gpointer) button8, "clicked",
- G_CALLBACK (preferences_sources_edit),
- GTK_OBJECT (window_preferences));
- g_signal_connect_swapped ((gpointer) preferences_remove_source_button, "clicked",
- G_CALLBACK (preferences_sources_remove),
- GTK_OBJECT (window_preferences));
- #ifdef SLAPT_HAS_GPGME
- g_signal_connect_swapped ((gpointer) button9, "clicked",
- G_CALLBACK (preferences_sources_add_key),
- GTK_OBJECT (window_preferences));
- #endif
- g_signal_connect_swapped ((gpointer) preferences_close_button, "clicked",
- G_CALLBACK (cancel_preferences),
- GTK_OBJECT (window_preferences));
- g_signal_connect_swapped ((gpointer) preferences_ok_button, "clicked",
- G_CALLBACK (preferences_on_ok_clicked),
- GTK_OBJECT (window_preferences));
-
- /* Store pointers to all widgets, for use by lookup_widget(). */
- GLADE_HOOKUP_OBJECT_NO_REF (window_preferences, window_preferences, "window_preferences");
- GLADE_HOOKUP_OBJECT (window_preferences, preferences_vbox, "preferences_vbox");
- GLADE_HOOKUP_OBJECT (window_preferences, preferences_notebook, "preferences_notebook");
- GLADE_HOOKUP_OBJECT (window_preferences, preferences_working_dir_vbox, "preferences_working_dir_vbox");
- GLADE_HOOKUP_OBJECT (window_preferences, preferences_working_dir_vbox_vbox, "preferences_working_dir_vbox_vbox");
- GLADE_HOOKUP_OBJECT (window_preferences, preferences_working_dir_label, "preferences_working_dir_label");
- GLADE_HOOKUP_OBJECT (window_preferences, hbox3, "hbox3");
- GLADE_HOOKUP_OBJECT (window_preferences, label72, "label72");
- GLADE_HOOKUP_OBJECT (window_preferences, vbox12, "vbox12");
- GLADE_HOOKUP_OBJECT (window_preferences, preferences_working_dir_entry, "preferences_working_dir_entry");
- GLADE_HOOKUP_OBJECT (window_preferences, button7, "button7");
- GLADE_HOOKUP_OBJECT (window_preferences, label50, "label50");
- GLADE_HOOKUP_OBJECT (window_preferences, preferences_exclude_vbox, "preferences_exclude_vbox");
- GLADE_HOOKUP_OBJECT (window_preferences, preferences_exclude_vbox_vbox, "preferences_exclude_vbox_vbox");
- GLADE_HOOKUP_OBJECT (window_preferences, preferences_exclude_label, "preferences_exclude_label");
- GLADE_HOOKUP_OBJECT (window_preferences, hbox81, "hbox81");
- GLADE_HOOKUP_OBJECT (window_preferences, label140, "label140");
- GLADE_HOOKUP_OBJECT (window_preferences, hbox82, "hbox82");
- GLADE_HOOKUP_OBJECT (window_preferences, scrolledwindow12, "scrolledwindow12");
- GLADE_HOOKUP_OBJECT (window_preferences, preferences_exclude_treeview, "preferences_exclude_treeview");
- GLADE_HOOKUP_OBJECT (window_preferences, vbox42, "vbox42");
- GLADE_HOOKUP_OBJECT (window_preferences, preferences_remove_exclude_button, "preferences_remove_exclude_button");
- GLADE_HOOKUP_OBJECT (window_preferences, hbox95, "hbox95");
- GLADE_HOOKUP_OBJECT (window_preferences, label164, "label164");
- GLADE_HOOKUP_OBJECT (window_preferences, new_exclude_entry, "new_exclude_entry");
- GLADE_HOOKUP_OBJECT (window_preferences, preferences_add_exclude_button, "preferences_add_exclude_button");
- GLADE_HOOKUP_OBJECT (window_preferences, label51, "label51");
- GLADE_HOOKUP_OBJECT (window_preferences, preferences_sources_vbox, "preferences_sources_vbox");
- GLADE_HOOKUP_OBJECT (window_preferences, vbox57, "vbox57");
- GLADE_HOOKUP_OBJECT (window_preferences, label161, "label161");
- GLADE_HOOKUP_OBJECT (window_preferences, hbox92, "hbox92");
- GLADE_HOOKUP_OBJECT (window_preferences, label162, "label162");
- GLADE_HOOKUP_OBJECT (window_preferences, hbox93, "hbox93");
- GLADE_HOOKUP_OBJECT (window_preferences, scrolledwindow16, "scrolledwindow16");
- GLADE_HOOKUP_OBJECT (window_preferences, preferences_sources_treeview, "preferences_sources_treeview");
- GLADE_HOOKUP_OBJECT (window_preferences, vbox58, "vbox58");
- GLADE_HOOKUP_OBJECT (window_preferences, preferences_add_source_button, "preferences_add_source_button");
- GLADE_HOOKUP_OBJECT (window_preferences, button8, "button8");
- GLADE_HOOKUP_OBJECT (window_preferences, preferences_remove_source_button, "preferences_remove_source_button");
- GLADE_HOOKUP_OBJECT (window_preferences, label160, "label160");
- #ifdef SLAPT_HAS_GPGME
- GLADE_HOOKUP_OBJECT (window_preferences, preferences_verification_vbox, "preferences_verification_vbox");
- GLADE_HOOKUP_OBJECT (window_preferences, vbox76, "vbox76");
- GLADE_HOOKUP_OBJECT (window_preferences, label294, "label294");
- GLADE_HOOKUP_OBJECT (window_preferences, hbox116, "hbox116");
- GLADE_HOOKUP_OBJECT (window_preferences, label295, "label295");
- GLADE_HOOKUP_OBJECT (window_preferences, hbox117, "hbox117");
- GLADE_HOOKUP_OBJECT (window_preferences, scrolledwindow24, "scrolledwindow24");
- GLADE_HOOKUP_OBJECT (window_preferences, preferences_verification_sources_treeview, "preferences_verification_sources_treeview");
- GLADE_HOOKUP_OBJECT (window_preferences, vbox77, "vbox77");
- GLADE_HOOKUP_OBJECT (window_preferences, button9, "button9");
- GLADE_HOOKUP_OBJECT (window_preferences, label293, "label293");
- #endif
- GLADE_HOOKUP_OBJECT (window_preferences, preferences_hbuttonbox, "preferences_hbuttonbox");
- GLADE_HOOKUP_OBJECT (window_preferences, preferences_close_button, "preferences_close_button");
- GLADE_HOOKUP_OBJECT (window_preferences, preferences_ok_button, "preferences_ok_button");
-
- return window_preferences;
-}
-
-GtkWidget*
-create_gslapt (void)
-{
- GtkWidget *gslapt;
- GdkPixbuf *gslapt_icon_pixbuf;
- GtkWidget *gslapt_vbox;
- GtkWidget *top_menubar;
- GtkWidget *actions2;
- GtkWidget *actions2_menu;
- GtkWidget *update1;
- GtkWidget *image1731;
- GtkWidget *mark_all_upgrades2;
- GtkWidget *image1732;
- GtkWidget *mark_obsolete1;
- GtkWidget *image1733;
- GtkWidget *execute1;
- GtkWidget *image1734;
- GtkWidget *separator2;
- GtkWidget *quit;
- GtkWidget *edit1;
- GtkWidget *edit1_menu;
- GtkWidget *unmark_all1;
- GtkWidget *image1735;
- GtkWidget *separator1;
- GtkWidget *preferences2;
- GtkWidget *image1736;
- GtkWidget *view1;
- GtkWidget *view1_menu;
- GSList *view_all_packages_menu_group = NULL;
- GtkWidget *view_all_packages_menu;
- GtkWidget *view_available_packages_menu;
- GtkWidget *view_installed_packages_menu;
- GtkWidget *view_marked_packages_menu;
- GtkWidget *view_upgradeable_packages_menu;
- GtkWidget *package1;
- GtkWidget *package1_menu;
- GtkWidget *unmark1;
- GtkWidget *image1737;
- GtkWidget *install1;
- GtkWidget *image1738;
- GtkWidget *re_install1;
- GtkWidget *image1739;
- GtkWidget *upgrade1;
- GtkWidget *image1740;
- GtkWidget *downgrade1;
- GtkWidget *image1741;
- GtkWidget *remove1;
- GtkWidget *image1742;
- GtkWidget *help3;
- GtkWidget *help3_menu;
- GtkWidget *icon_legend1;
- GtkWidget *image1743;
- GtkWidget *changelogs_menu;
- GtkWidget *image1744;
- GtkWidget *about3;
- GtkWidget *image1745;
- GtkWidget *action_toolbar;
- GtkIconSize tmp_toolbar_icon_size;
- GtkWidget *tmp_image;
- GtkWidget *action_bar_update_button;
- GtkWidget *action_bar_upgrade_button;
- GtkWidget *separatortoolitem1;
- GtkWidget *action_bar_execute_button;
- GtkWidget *search_vbox;
- GtkWidget *search_align;
- GtkWidget *search_hbox;
- GtkWidget *label292;
- GtkWidget *search_entry;
- GtkWidget *pkg_vpaned;
- GtkWidget *pkg_list_scrolled;
- GtkWidget *pkg_listing_treeview;
- GtkWidget *pkg_info_notebook;
- GtkWidget *scrolledwindow20;
- GtkWidget *viewport1;
- GtkWidget *vbox63;
- GtkWidget *table2;
- GtkWidget *label226;
- GtkWidget *pkg_info_name;
- GtkWidget *label250;
- GtkWidget *label227;
- GtkWidget *pkg_info_description;
- GtkWidget *label273;
- GtkWidget *pkg_info_version;
- GtkWidget *pkg_info_status;
- GtkWidget *label291;
- GtkWidget *pkg_info_source;
- GtkWidget *label298;
- GtkWidget *pkg_info_priority;
- GtkWidget *label244;
- GtkWidget *pkg_info_location;
- GtkWidget *vbox67;
- GtkWidget *label272;
- GtkWidget *hbox106;
- GtkWidget *label271;
- GtkWidget *table3;
- GtkWidget *label237;
- GtkWidget *pkg_info_installed_version;
- GtkWidget *label239;
- GtkWidget *pkg_info_installed_installed_size;
- GtkWidget *vbox66;
- GtkWidget *label261;
- GtkWidget *hbox105;
- GtkWidget *label262;
- GtkWidget *table5;
- GtkWidget *label263;
- GtkWidget *label264;
- GtkWidget *label265;
- GtkWidget *label266;
- GtkWidget *pkg_info_available_version;
- GtkWidget *pkg_info_available_size;
- GtkWidget *pkg_info_available_installed_size;
- GtkWidget *pkg_info_available_source;
- GtkWidget *pkg_info_common_label;
- GtkWidget *vbox64;
- GtkWidget *scrolledwindow19;
- GtkWidget *pkg_description_textview;
- GtkWidget *pkg_info_description_label;
- GtkWidget *scrolledwindow21;
- GtkWidget *dep_conf_sug_treeview;
- GtkWidget *pkg_info_dependencies_label;
- GtkWidget *scrolledwindow23;
- GtkWidget *pkg_changelog_textview;
- GtkWidget *pkg_info_changelog;
- GtkWidget *scrolledwindow25;
- GtkWidget *pkg_filelist_textview;
- GtkWidget *pkg_info_filelist;
- GtkWidget *bottom_statusbar;
- GtkAccelGroup *accel_group;
- GtkTooltips *tooltips;
-
- tooltips = gtk_tooltips_new ();
-
- accel_group = gtk_accel_group_new ();
-
- gslapt = gtk_window_new (GTK_WINDOW_TOPLEVEL);
- gtk_widget_set_name (gslapt, "gslapt");
- gtk_window_set_title (GTK_WINDOW (gslapt), _("Gslapt"));
- gtk_window_set_position (GTK_WINDOW (gslapt), GTK_WIN_POS_CENTER);
- gslapt_icon_pixbuf = create_pixbuf ("gslapt.png");
- if (gslapt_icon_pixbuf)
- {
- gtk_window_set_icon (GTK_WINDOW (gslapt), gslapt_icon_pixbuf);
- g_object_unref (gslapt_icon_pixbuf);
- }
- gtk_window_set_gravity (GTK_WINDOW (gslapt), GDK_GRAVITY_CENTER);
-
- gslapt_vbox = gtk_vbox_new (FALSE, 0);
- gtk_widget_set_name (gslapt_vbox, "gslapt_vbox");
- gtk_widget_show (gslapt_vbox);
- gtk_container_add (GTK_CONTAINER (gslapt), gslapt_vbox);
-
- top_menubar = gtk_menu_bar_new ();
- gtk_widget_set_name (top_menubar, "top_menubar");
- gtk_widget_show (top_menubar);
- gtk_box_pack_start (GTK_BOX (gslapt_vbox), top_menubar, FALSE, FALSE, 0);
-
- actions2 = gtk_menu_item_new_with_mnemonic (_("_File"));
- gtk_widget_set_name (actions2, "actions2");
- gtk_widget_show (actions2);
- gtk_container_add (GTK_CONTAINER (top_menubar), actions2);
-
- actions2_menu = gtk_menu_new ();
- gtk_widget_set_name (actions2_menu, "actions2_menu");
- gtk_menu_item_set_submenu (GTK_MENU_ITEM (actions2), actions2_menu);
-
- update1 = gtk_image_menu_item_new_with_mnemonic (_("Update"));
- gtk_widget_set_name (update1, "update1");
- gtk_widget_show (update1);
- gtk_container_add (GTK_CONTAINER (actions2_menu), update1);
- gtk_tooltips_set_tip (tooltips, update1, _("Update local package cache"), NULL);
- gtk_widget_add_accelerator (update1, "activate", accel_group,
- GDK_y, (GdkModifierType) GDK_CONTROL_MASK,
- GTK_ACCEL_VISIBLE);
-
- image1731 = gtk_image_new_from_stock ("gtk-refresh", GTK_ICON_SIZE_MENU);
- gtk_widget_set_name (image1731, "image1731");
- gtk_widget_show (image1731);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (update1), image1731);
-
- mark_all_upgrades2 = gtk_image_menu_item_new_with_mnemonic (_("Mark All Upgrades"));
- gtk_widget_set_name (mark_all_upgrades2, "mark_all_upgrades2");
- gtk_widget_show (mark_all_upgrades2);
- gtk_container_add (GTK_CONTAINER (actions2_menu), mark_all_upgrades2);
- gtk_tooltips_set_tip (tooltips, mark_all_upgrades2, _("Mark all possible upgrades"), NULL);
- gtk_widget_add_accelerator (mark_all_upgrades2, "activate", accel_group,
- GDK_a, (GdkModifierType) GDK_CONTROL_MASK,
- GTK_ACCEL_VISIBLE);
-
- image1732 = gtk_image_new_from_stock ("gtk-go-up", GTK_ICON_SIZE_MENU);
- gtk_widget_set_name (image1732, "image1732");
- gtk_widget_show (image1732);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (mark_all_upgrades2), image1732);
-
- 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);
-
- image1733 = gtk_image_new_from_stock ("gtk-remove", GTK_ICON_SIZE_MENU);
- gtk_widget_set_name (image1733, "image1733");
- gtk_widget_show (image1733);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (mark_obsolete1), image1733);
-
- execute1 = gtk_image_menu_item_new_with_mnemonic (_("Execute"));
- gtk_widget_set_name (execute1, "execute1");
- gtk_widget_show (execute1);
- gtk_container_add (GTK_CONTAINER (actions2_menu), execute1);
- gtk_tooltips_set_tip (tooltips, execute1, _("Execute all scheduled actions in current transaction"), NULL);
- gtk_widget_add_accelerator (execute1, "activate", accel_group,
- GDK_Return, (GdkModifierType) GDK_CONTROL_MASK,
- GTK_ACCEL_VISIBLE);
-
- image1734 = gtk_image_new_from_stock ("gtk-apply", GTK_ICON_SIZE_MENU);
- gtk_widget_set_name (image1734, "image1734");
- gtk_widget_show (image1734);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (execute1), image1734);
-
- separator2 = gtk_separator_menu_item_new ();
- gtk_widget_set_name (separator2, "separator2");
- gtk_widget_show (separator2);
- gtk_container_add (GTK_CONTAINER (actions2_menu), separator2);
- gtk_widget_set_sensitive (separator2, FALSE);
-
- quit = gtk_image_menu_item_new_from_stock ("gtk-quit", accel_group);
- gtk_widget_set_name (quit, "quit");
- gtk_widget_show (quit);
- gtk_container_add (GTK_CONTAINER (actions2_menu), quit);
-
- edit1 = gtk_menu_item_new_with_mnemonic (_("_Edit"));
- gtk_widget_set_name (edit1, "edit1");
- gtk_widget_show (edit1);
- gtk_container_add (GTK_CONTAINER (top_menubar), edit1);
-
- edit1_menu = gtk_menu_new ();
- gtk_widget_set_name (edit1_menu, "edit1_menu");
- gtk_menu_item_set_submenu (GTK_MENU_ITEM (edit1), edit1_menu);
-
- unmark_all1 = gtk_image_menu_item_new_with_mnemonic (_("Unmark All"));
- gtk_widget_set_name (unmark_all1, "unmark_all1");
- gtk_widget_show (unmark_all1);
- gtk_container_add (GTK_CONTAINER (edit1_menu), unmark_all1);
- gtk_widget_add_accelerator (unmark_all1, "activate", accel_group,
- GDK_z, (GdkModifierType) GDK_CONTROL_MASK,
- GTK_ACCEL_VISIBLE);
-
- image1735 = gtk_image_new_from_stock ("gtk-undo", GTK_ICON_SIZE_MENU);
- gtk_widget_set_name (image1735, "image1735");
- gtk_widget_show (image1735);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (unmark_all1), image1735);
-
- separator1 = gtk_separator_menu_item_new ();
- gtk_widget_set_name (separator1, "separator1");
- gtk_widget_show (separator1);
- gtk_container_add (GTK_CONTAINER (edit1_menu), separator1);
- gtk_widget_set_sensitive (separator1, FALSE);
-
- preferences2 = gtk_image_menu_item_new_with_mnemonic (_("Preferences"));
- gtk_widget_set_name (preferences2, "preferences2");
- gtk_widget_show (preferences2);
- gtk_container_add (GTK_CONTAINER (edit1_menu), preferences2);
- gtk_widget_add_accelerator (preferences2, "activate", accel_group,
- GDK_p, (GdkModifierType) GDK_CONTROL_MASK,
- GTK_ACCEL_VISIBLE);
-
- image1736 = gtk_image_new_from_stock ("gtk-preferences", GTK_ICON_SIZE_MENU);
- gtk_widget_set_name (image1736, "image1736");
- gtk_widget_show (image1736);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (preferences2), image1736);
-
- view1 = gtk_menu_item_new_with_mnemonic (_("_View"));
- gtk_widget_set_name (view1, "view1");
- gtk_widget_show (view1);
- gtk_container_add (GTK_CONTAINER (top_menubar), view1);
-
- view1_menu = gtk_menu_new ();
- gtk_widget_set_name (view1_menu, "view1_menu");
- gtk_menu_item_set_submenu (GTK_MENU_ITEM (view1), view1_menu);
-
- view_all_packages_menu = gtk_radio_menu_item_new_with_mnemonic (view_all_packages_menu_group, _("All"));
- view_all_packages_menu_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (view_all_packages_menu));
- gtk_widget_set_name (view_all_packages_menu, "view_all_packages_menu");
- gtk_widget_show (view_all_packages_menu);
- gtk_container_add (GTK_CONTAINER (view1_menu), view_all_packages_menu);
- gtk_tooltips_set_tip (tooltips, view_all_packages_menu, _("View all packages"), NULL);
- gtk_widget_add_accelerator (view_all_packages_menu, "activate", accel_group,
- GDK_F1, (GdkModifierType) 0,
- GTK_ACCEL_VISIBLE);
-
- view_available_packages_menu = gtk_radio_menu_item_new_with_mnemonic (view_all_packages_menu_group, _("Available"));
- view_all_packages_menu_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (view_available_packages_menu));
- gtk_widget_set_name (view_available_packages_menu, "view_available_packages_menu");
- gtk_widget_show (view_available_packages_menu);
- gtk_container_add (GTK_CONTAINER (view1_menu), view_available_packages_menu);
- gtk_tooltips_set_tip (tooltips, view_available_packages_menu, _("View available packages from current sources"), NULL);
- gtk_widget_add_accelerator (view_available_packages_menu, "activate", accel_group,
- GDK_F2, (GdkModifierType) 0,
- GTK_ACCEL_VISIBLE);
-
- view_installed_packages_menu = gtk_radio_menu_item_new_with_mnemonic (view_all_packages_menu_group, _("Installed"));
- view_all_packages_menu_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (view_installed_packages_menu));
- gtk_widget_set_name (view_installed_packages_menu, "view_installed_packages_menu");
- gtk_widget_show (view_installed_packages_menu);
- gtk_container_add (GTK_CONTAINER (view1_menu), view_installed_packages_menu);
- gtk_tooltips_set_tip (tooltips, view_installed_packages_menu, _("View installed packages"), NULL);
- gtk_widget_add_accelerator (view_installed_packages_menu, "activate", accel_group,
- GDK_F3, (GdkModifierType) 0,
- GTK_ACCEL_VISIBLE);
-
- view_marked_packages_menu = gtk_radio_menu_item_new_with_mnemonic (view_all_packages_menu_group, _("Marked"));
- view_all_packages_menu_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (view_marked_packages_menu));
- gtk_widget_set_name (view_marked_packages_menu, "view_marked_packages_menu");
- gtk_widget_show (view_marked_packages_menu);
- gtk_container_add (GTK_CONTAINER (view1_menu), view_marked_packages_menu);
- gtk_tooltips_set_tip (tooltips, view_marked_packages_menu, _("View Marked Packages"), NULL);
- gtk_widget_add_accelerator (view_marked_packages_menu, "activate", accel_group,
- GDK_F4, (GdkModifierType) 0,
- GTK_ACCEL_VISIBLE);
-
- view_upgradeable_packages_menu = gtk_radio_menu_item_new_with_mnemonic (view_all_packages_menu_group, _("Upgradeable"));
- view_all_packages_menu_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (view_upgradeable_packages_menu));
- gtk_widget_set_name (view_upgradeable_packages_menu, "view_upgradeable_packages_menu");
- gtk_widget_show (view_upgradeable_packages_menu);
- gtk_container_add (GTK_CONTAINER (view1_menu), view_upgradeable_packages_menu);
- gtk_tooltips_set_tip (tooltips, view_upgradeable_packages_menu, _("View Upgradeable Packages"), NULL);
- gtk_widget_add_accelerator (view_upgradeable_packages_menu, "activate", accel_group,
- GDK_F5, (GdkModifierType) 0,
- GTK_ACCEL_VISIBLE);
-
- package1 = gtk_menu_item_new_with_mnemonic (_("P_ackage"));
- gtk_widget_set_name (package1, "package1");
- gtk_widget_show (package1);
- gtk_container_add (GTK_CONTAINER (top_menubar), package1);
-
- package1_menu = gtk_menu_new ();
- gtk_widget_set_name (package1_menu, "package1_menu");
- gtk_menu_item_set_submenu (GTK_MENU_ITEM (package1), package1_menu);
-
- unmark1 = gtk_image_menu_item_new_with_mnemonic (_("Unmark"));
- gtk_widget_set_name (unmark1, "unmark1");
- gtk_widget_show (unmark1);
- gtk_container_add (GTK_CONTAINER (package1_menu), unmark1);
- gtk_widget_set_sensitive (unmark1, FALSE);
- gtk_widget_add_accelerator (unmark1, "activate", accel_group,
- GDK_n, (GdkModifierType) GDK_CONTROL_MASK,
- GTK_ACCEL_VISIBLE);
-
- image1737 = create_pixmap (gslapt, "pkg_action_available.png");
- gtk_widget_set_name (image1737, "image1737");
- gtk_widget_show (image1737);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (unmark1), image1737);
-
- install1 = gtk_image_menu_item_new_with_mnemonic (_("Install"));
- gtk_widget_set_name (install1, "install1");
- gtk_widget_show (install1);
- gtk_container_add (GTK_CONTAINER (package1_menu), install1);
- gtk_widget_set_sensitive (install1, FALSE);
- gtk_widget_add_accelerator (install1, "activate", accel_group,
- GDK_i, (GdkModifierType) GDK_CONTROL_MASK,
- GTK_ACCEL_VISIBLE);
-
- image1738 = create_pixmap (gslapt, "pkg_action_install.png");
- gtk_widget_set_name (image1738, "image1738");
- gtk_widget_show (image1738);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (install1), image1738);
-
- re_install1 = gtk_image_menu_item_new_with_mnemonic (_("Re-Install"));
- gtk_widget_set_name (re_install1, "re_install1");
- gtk_widget_show (re_install1);
- gtk_container_add (GTK_CONTAINER (package1_menu), re_install1);
- gtk_widget_set_sensitive (re_install1, FALSE);
- gtk_widget_add_accelerator (re_install1, "activate", accel_group,
- GDK_e, (GdkModifierType) GDK_CONTROL_MASK,
- GTK_ACCEL_VISIBLE);
-
- image1739 = create_pixmap (gslapt, "pkg_action_reinstall.png");
- gtk_widget_set_name (image1739, "image1739");
- gtk_widget_show (image1739);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (re_install1), image1739);
-
- upgrade1 = gtk_image_menu_item_new_with_mnemonic (_("Upgrade"));
- gtk_widget_set_name (upgrade1, "upgrade1");
- gtk_widget_show (upgrade1);
- gtk_container_add (GTK_CONTAINER (package1_menu), upgrade1);
- gtk_widget_set_sensitive (upgrade1, FALSE);
- gtk_widget_add_accelerator (upgrade1, "activate", accel_group,
- GDK_u, (GdkModifierType) GDK_CONTROL_MASK,
- GTK_ACCEL_VISIBLE);
-
- image1740 = create_pixmap (gslapt, "pkg_action_upgrade.png");
- gtk_widget_set_name (image1740, "image1740");
- gtk_widget_show (image1740);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (upgrade1), image1740);
-
- downgrade1 = gtk_image_menu_item_new_with_mnemonic (_("Downgrade"));
- gtk_widget_set_name (downgrade1, "downgrade1");
- gtk_widget_show (downgrade1);
- gtk_container_add (GTK_CONTAINER (package1_menu), downgrade1);
- gtk_widget_set_sensitive (downgrade1, FALSE);
- gtk_widget_add_accelerator (downgrade1, "activate", accel_group,
- GDK_d, (GdkModifierType) GDK_CONTROL_MASK,
- GTK_ACCEL_VISIBLE);
-
- image1741 = create_pixmap (gslapt, "pkg_action_downgrade.png");
- gtk_widget_set_name (image1741, "image1741");
- gtk_widget_show (image1741);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (downgrade1), image1741);
-
- remove1 = gtk_image_menu_item_new_with_mnemonic (_("Remove"));
- gtk_widget_set_name (remove1, "remove1");
- gtk_widget_show (remove1);
- gtk_container_add (GTK_CONTAINER (package1_menu), remove1);
- gtk_widget_set_sensitive (remove1, FALSE);
- gtk_widget_add_accelerator (remove1, "activate", accel_group,
- GDK_r, (GdkModifierType) GDK_CONTROL_MASK,
- GTK_ACCEL_VISIBLE);
-
- image1742 = create_pixmap (gslapt, "pkg_action_remove.png");
- gtk_widget_set_name (image1742, "image1742");
- gtk_widget_show (image1742);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (remove1), image1742);
-
- help3 = gtk_menu_item_new_with_mnemonic (_("_Help"));
- gtk_widget_set_name (help3, "help3");
- gtk_widget_show (help3);
- gtk_container_add (GTK_CONTAINER (top_menubar), help3);
-
- help3_menu = gtk_menu_new ();
- gtk_widget_set_name (help3_menu, "help3_menu");
- gtk_menu_item_set_submenu (GTK_MENU_ITEM (help3), help3_menu);
-
- icon_legend1 = gtk_image_menu_item_new_with_mnemonic (_("Icon Legend"));
- gtk_widget_set_name (icon_legend1, "icon_legend1");
- gtk_widget_show (icon_legend1);
- gtk_container_add (GTK_CONTAINER (help3_menu), icon_legend1);
-
- image1743 = gtk_image_new_from_stock ("gtk-dialog-info", GTK_ICON_SIZE_MENU);
- gtk_widget_set_name (image1743, "image1743");
- gtk_widget_show (image1743);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (icon_legend1), image1743);
-
- changelogs_menu = gtk_image_menu_item_new_with_mnemonic (_("ChangeLogs"));
- gtk_widget_set_name (changelogs_menu, "changelogs_menu");
- gtk_widget_show (changelogs_menu);
- gtk_container_add (GTK_CONTAINER (help3_menu), changelogs_menu);
- gtk_tooltips_set_tip (tooltips, changelogs_menu, _("View ChangeLogs"), NULL);
-
- image1744 = gtk_image_new_from_stock ("gtk-info", GTK_ICON_SIZE_MENU);
- gtk_widget_set_name (image1744, "image1744");
- gtk_widget_show (image1744);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (changelogs_menu), image1744);
-
- 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);
-
- image1745 = gtk_image_new_from_stock ("gtk-about", GTK_ICON_SIZE_MENU);
- gtk_widget_set_name (image1745, "image1745");
- gtk_widget_show (image1745);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (about3), image1745);
-
- action_toolbar = gtk_toolbar_new ();
- gtk_widget_set_name (action_toolbar, "action_toolbar");
- gtk_widget_show (action_toolbar);
- gtk_box_pack_start (GTK_BOX (gslapt_vbox), action_toolbar, FALSE, FALSE, 0);
- gtk_toolbar_set_style (GTK_TOOLBAR (action_toolbar), GTK_TOOLBAR_BOTH);
- tmp_toolbar_icon_size = gtk_toolbar_get_icon_size (GTK_TOOLBAR (action_toolbar));
-
- tmp_image = gtk_image_new_from_stock ("gtk-refresh", tmp_toolbar_icon_size);
- gtk_widget_show (tmp_image);
- action_bar_update_button = (GtkWidget*) gtk_tool_button_new (tmp_image, _("Update"));
- gtk_widget_set_name (action_bar_update_button, "action_bar_update_button");
- gtk_widget_show (action_bar_update_button);
- gtk_container_add (GTK_CONTAINER (action_toolbar), action_bar_update_button);
- gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (action_bar_update_button), tooltips, _("Update local package cache"), NULL);
-
- tmp_image = gtk_image_new_from_stock ("gtk-go-up", tmp_toolbar_icon_size);
- gtk_widget_show (tmp_image);
- action_bar_upgrade_button = (GtkWidget*) gtk_tool_button_new (tmp_image, _("Mark All Upgrades"));
- gtk_widget_set_name (action_bar_upgrade_button, "action_bar_upgrade_button");
- gtk_widget_show (action_bar_upgrade_button);
- gtk_container_add (GTK_CONTAINER (action_toolbar), action_bar_upgrade_button);
- gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (action_bar_upgrade_button), tooltips, _("Mark all possible upgrades"), NULL);
-
- separatortoolitem1 = (GtkWidget*) gtk_separator_tool_item_new ();
- gtk_widget_set_name (separatortoolitem1, "separatortoolitem1");
- gtk_widget_show (separatortoolitem1);
- gtk_container_add (GTK_CONTAINER (action_toolbar), separatortoolitem1);
-
- tmp_image = gtk_image_new_from_stock ("gtk-apply", tmp_toolbar_icon_size);
- gtk_widget_show (tmp_image);
- action_bar_execute_button = (GtkWidget*) gtk_tool_button_new (tmp_image, _("Execute"));
- gtk_widget_set_name (action_bar_execute_button, "action_bar_execute_button");
- gtk_widget_show (action_bar_execute_button);
- gtk_container_add (GTK_CONTAINER (action_toolbar), action_bar_execute_button);
- gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (action_bar_execute_button), tooltips, _("Execute all scheduled actions in current transaction"), NULL);
-
- search_vbox = gtk_vbox_new (FALSE, 6);
- gtk_widget_set_name (search_vbox, "search_vbox");
- gtk_widget_show (search_vbox);
- gtk_box_pack_start (GTK_BOX (gslapt_vbox), search_vbox, FALSE, FALSE, 0);
- gtk_container_set_border_width (GTK_CONTAINER (search_vbox), 6);
-
- search_align = gtk_alignment_new (0.5, 0.5, 1, 1);
- gtk_widget_set_name (search_align, "search_align");
- gtk_widget_show (search_align);
- gtk_box_pack_start (GTK_BOX (search_vbox), search_align, TRUE, TRUE, 0);
- gtk_container_set_border_width (GTK_CONTAINER (search_align), 1);
-
- search_hbox = gtk_hbox_new (FALSE, 0);
- gtk_widget_set_name (search_hbox, "search_hbox");
- gtk_widget_show (search_hbox);
- gtk_container_add (GTK_CONTAINER (search_align), search_hbox);
-
- label292 = gtk_label_new (_("Search"));
- gtk_widget_set_name (label292, "label292");
- gtk_widget_show (label292);
- gtk_box_pack_start (GTK_BOX (search_hbox), label292, FALSE, TRUE, 6);
-
- search_entry = gtk_entry_new ();
- gtk_widget_set_name (search_entry, "search_entry");
- gtk_widget_show (search_entry);
- gtk_box_pack_start (GTK_BOX (search_hbox), search_entry, TRUE, TRUE, 0);
- GTK_WIDGET_SET_FLAGS (search_entry, GTK_CAN_DEFAULT);
- gtk_widget_add_accelerator (search_entry, "grab_focus", accel_group,
- GDK_L, (GdkModifierType) GDK_CONTROL_MASK,
- GTK_ACCEL_VISIBLE);
-
- pkg_vpaned = gtk_vpaned_new ();
- gtk_widget_set_name (pkg_vpaned, "pkg_vpaned");
- gtk_widget_show (pkg_vpaned);
- gtk_box_pack_start (GTK_BOX (gslapt_vbox), pkg_vpaned, TRUE, TRUE, 0);
- gtk_container_set_border_width (GTK_CONTAINER (pkg_vpaned), 6);
-
- pkg_list_scrolled = gtk_scrolled_window_new (NULL, NULL);
- gtk_widget_set_name (pkg_list_scrolled, "pkg_list_scrolled");
- gtk_widget_show (pkg_list_scrolled);
- gtk_paned_pack1 (GTK_PANED (pkg_vpaned), pkg_list_scrolled, TRUE, TRUE);
- gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (pkg_list_scrolled), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
-
- pkg_listing_treeview = gtk_tree_view_new ();
- gtk_widget_set_name (pkg_listing_treeview, "pkg_listing_treeview");
- gtk_widget_show (pkg_listing_treeview);
- gtk_container_add (GTK_CONTAINER (pkg_list_scrolled), pkg_listing_treeview);
- gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (pkg_listing_treeview), TRUE);
-
- pkg_info_notebook = gtk_notebook_new ();
- gtk_widget_set_name (pkg_info_notebook, "pkg_info_notebook");
- gtk_widget_show (pkg_info_notebook);
- gtk_paned_pack2 (GTK_PANED (pkg_vpaned), pkg_info_notebook, TRUE, TRUE);
- gtk_container_set_border_width (GTK_CONTAINER (pkg_info_notebook), 6);
- gtk_notebook_set_show_border (GTK_NOTEBOOK (pkg_info_notebook), FALSE);
- gtk_notebook_set_scrollable (GTK_NOTEBOOK (pkg_info_notebook), TRUE);
-
- scrolledwindow20 = gtk_scrolled_window_new (NULL, NULL);
- gtk_widget_set_name (scrolledwindow20, "scrolledwindow20");
- gtk_widget_show (scrolledwindow20);
- gtk_container_add (GTK_CONTAINER (pkg_info_notebook), scrolledwindow20);
- gtk_container_set_border_width (GTK_CONTAINER (scrolledwindow20), 12);
- gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow20), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
-
- viewport1 = gtk_viewport_new (NULL, NULL);
- gtk_widget_set_name (viewport1, "viewport1");
- gtk_widget_show (viewport1);
- gtk_container_add (GTK_CONTAINER (scrolledwindow20), viewport1);
-
- vbox63 = gtk_vbox_new (FALSE, 18);
- gtk_widget_set_name (vbox63, "vbox63");
- gtk_widget_show (vbox63);
- gtk_container_add (GTK_CONTAINER (viewport1), vbox63);
- gtk_container_set_border_width (GTK_CONTAINER (vbox63), 6);
-
- table2 = gtk_table_new (7, 2, FALSE);
- gtk_widget_set_name (table2, "table2");
- gtk_widget_show (table2);
- gtk_box_pack_start (GTK_BOX (vbox63), table2, FALSE, FALSE, 0);
- gtk_table_set_row_spacings (GTK_TABLE (table2), 6);
- gtk_table_set_col_spacings (GTK_TABLE (table2), 12);
-
- label226 = gtk_label_new (_("<b>Name:</b>"));
- gtk_widget_set_name (label226, "label226");
- gtk_widget_show (label226);
- gtk_table_attach (GTK_TABLE (table2), label226, 0, 1, 0, 1,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_use_markup (GTK_LABEL (label226), TRUE);
- gtk_misc_set_alignment (GTK_MISC (label226), 0, 0.5);
-
- pkg_info_name = gtk_label_new (_("No package is selected."));
- gtk_widget_set_name (pkg_info_name, "pkg_info_name");
- gtk_widget_show (pkg_info_name);
- gtk_table_attach (GTK_TABLE (table2), pkg_info_name, 1, 2, 0, 1,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- GTK_WIDGET_SET_FLAGS (pkg_info_name, GTK_CAN_FOCUS);
- gtk_label_set_use_markup (GTK_LABEL (pkg_info_name), TRUE);
- gtk_label_set_selectable (GTK_LABEL (pkg_info_name), TRUE);
- gtk_misc_set_alignment (GTK_MISC (pkg_info_name), 0, 0.5);
-
- label250 = gtk_label_new (_("<b>Status:</b>"));
- gtk_widget_set_name (label250, "label250");
- gtk_widget_show (label250);
- gtk_table_attach (GTK_TABLE (table2), label250, 0, 1, 2, 3,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_use_markup (GTK_LABEL (label250), TRUE);
- gtk_misc_set_alignment (GTK_MISC (label250), 0, 0.5);
-
- label227 = gtk_label_new (_("<b>Description:</b>"));
- gtk_widget_set_name (label227, "label227");
- gtk_widget_show (label227);
- gtk_table_attach (GTK_TABLE (table2), label227, 0, 1, 1, 2,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_use_markup (GTK_LABEL (label227), TRUE);
- gtk_misc_set_alignment (GTK_MISC (label227), 0, 0.5);
-
- pkg_info_description = gtk_label_new ("");
- gtk_widget_set_name (pkg_info_description, "pkg_info_description");
- gtk_widget_show (pkg_info_description);
- gtk_table_attach (GTK_TABLE (table2), pkg_info_description, 1, 2, 1, 2,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_use_markup (GTK_LABEL (pkg_info_description), TRUE);
- gtk_misc_set_alignment (GTK_MISC (pkg_info_description), 0, 0.5);
-
- label273 = gtk_label_new (_("<b>Version:</b>"));
- gtk_widget_set_name (label273, "label273");
- gtk_widget_show (label273);
- gtk_table_attach (GTK_TABLE (table2), label273, 0, 1, 4, 5,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_use_markup (GTK_LABEL (label273), TRUE);
- gtk_misc_set_alignment (GTK_MISC (label273), 0, 0.5);
-
- pkg_info_version = gtk_label_new ("");
- gtk_widget_set_name (pkg_info_version, "pkg_info_version");
- gtk_widget_show (pkg_info_version);
- gtk_table_attach (GTK_TABLE (table2), pkg_info_version, 1, 2, 4, 5,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- GTK_WIDGET_SET_FLAGS (pkg_info_version, GTK_CAN_FOCUS);
- gtk_label_set_use_markup (GTK_LABEL (pkg_info_version), TRUE);
- gtk_label_set_selectable (GTK_LABEL (pkg_info_version), TRUE);
- gtk_misc_set_alignment (GTK_MISC (pkg_info_version), 0, 0.5);
-
- pkg_info_status = gtk_label_new ("");
- gtk_widget_set_name (pkg_info_status, "pkg_info_status");
- gtk_widget_show (pkg_info_status);
- gtk_table_attach (GTK_TABLE (table2), pkg_info_status, 1, 2, 2, 3,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_use_markup (GTK_LABEL (pkg_info_status), TRUE);
- gtk_misc_set_alignment (GTK_MISC (pkg_info_status), 0, 0.5);
-
- label291 = gtk_label_new (_("<b>Source:</b>"));
- gtk_widget_set_name (label291, "label291");
- gtk_widget_show (label291);
- gtk_table_attach (GTK_TABLE (table2), label291, 0, 1, 5, 6,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_use_markup (GTK_LABEL (label291), TRUE);
- gtk_misc_set_alignment (GTK_MISC (label291), 0, 0.5);
-
- pkg_info_source = gtk_label_new ("");
- gtk_widget_set_name (pkg_info_source, "pkg_info_source");
- gtk_widget_show (pkg_info_source);
- gtk_table_attach (GTK_TABLE (table2), pkg_info_source, 1, 2, 5, 6,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- GTK_WIDGET_SET_FLAGS (pkg_info_source, GTK_CAN_FOCUS);
- gtk_label_set_use_markup (GTK_LABEL (pkg_info_source), TRUE);
- gtk_label_set_selectable (GTK_LABEL (pkg_info_source), TRUE);
- gtk_misc_set_alignment (GTK_MISC (pkg_info_source), 0, 0.5);
-
- label298 = gtk_label_new (_("<b>Priority:</b>"));
- gtk_widget_set_name (label298, "label298");
- gtk_widget_show (label298);
- gtk_table_attach (GTK_TABLE (table2), label298, 0, 1, 6, 7,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_use_markup (GTK_LABEL (label298), TRUE);
- gtk_misc_set_alignment (GTK_MISC (label298), 0, 0.5);
-
- pkg_info_priority = gtk_label_new ("");
- gtk_widget_set_name (pkg_info_priority, "pkg_info_priority");
- gtk_widget_show (pkg_info_priority);
- gtk_table_attach (GTK_TABLE (table2), pkg_info_priority, 1, 2, 6, 7,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_misc_set_alignment (GTK_MISC (pkg_info_priority), 0, 0.5);
-
- label244 = gtk_label_new (_("<b>Location:</b>"));
- gtk_widget_set_name (label244, "label244");
- gtk_widget_show (label244);
- gtk_table_attach (GTK_TABLE (table2), label244, 0, 1, 3, 4,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_use_markup (GTK_LABEL (label244), TRUE);
- gtk_misc_set_alignment (GTK_MISC (label244), 0, 0.5);
-
- pkg_info_location = gtk_label_new ("");
- gtk_widget_set_name (pkg_info_location, "pkg_info_location");
- gtk_widget_show (pkg_info_location);
- gtk_table_attach (GTK_TABLE (table2), pkg_info_location, 1, 2, 3, 4,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- GTK_WIDGET_SET_FLAGS (pkg_info_location, GTK_CAN_FOCUS);
- gtk_label_set_use_markup (GTK_LABEL (pkg_info_location), TRUE);
- gtk_label_set_selectable (GTK_LABEL (pkg_info_location), TRUE);
- gtk_misc_set_alignment (GTK_MISC (pkg_info_location), 0, 0.5);
-
- vbox67 = gtk_vbox_new (FALSE, 0);
- gtk_widget_set_name (vbox67, "vbox67");
- gtk_widget_show (vbox67);
- gtk_box_pack_start (GTK_BOX (vbox63), vbox67, FALSE, FALSE, 0);
-
- label272 = gtk_label_new (_("<b>Installed Version</b>"));
- gtk_widget_set_name (label272, "label272");
- gtk_widget_show (label272);
- gtk_box_pack_start (GTK_BOX (vbox67), label272, FALSE, FALSE, 0);
- gtk_label_set_use_markup (GTK_LABEL (label272), TRUE);
- gtk_misc_set_alignment (GTK_MISC (label272), 0, 0.5);
-
- hbox106 = gtk_hbox_new (FALSE, 0);
- gtk_widget_set_name (hbox106, "hbox106");
- gtk_widget_show (hbox106);
- gtk_box_pack_start (GTK_BOX (vbox67), hbox106, TRUE, TRUE, 0);
-
- label271 = gtk_label_new (" ");
- gtk_widget_set_name (label271, "label271");
- gtk_widget_show (label271);
- gtk_box_pack_start (GTK_BOX (hbox106), label271, FALSE, FALSE, 0);
- gtk_misc_set_alignment (GTK_MISC (label271), 0, 0.5);
-
- table3 = gtk_table_new (2, 2, FALSE);
- gtk_widget_set_name (table3, "table3");
- gtk_widget_show (table3);
- gtk_box_pack_start (GTK_BOX (hbox106), table3, TRUE, TRUE, 0);
- gtk_container_set_border_width (GTK_CONTAINER (table3), 1);
- gtk_table_set_row_spacings (GTK_TABLE (table3), 6);
- gtk_table_set_col_spacings (GTK_TABLE (table3), 12);
-
- label237 = gtk_label_new (_("Version:"));
- gtk_widget_set_name (label237, "label237");
- gtk_widget_show (label237);
- gtk_table_attach (GTK_TABLE (table3), label237, 0, 1, 0, 1,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_use_markup (GTK_LABEL (label237), TRUE);
- gtk_misc_set_alignment (GTK_MISC (label237), 0, 0.5);
-
- pkg_info_installed_version = gtk_label_new ("");
- gtk_widget_set_name (pkg_info_installed_version, "pkg_info_installed_version");
- gtk_widget_show (pkg_info_installed_version);
- gtk_table_attach (GTK_TABLE (table3), pkg_info_installed_version, 1, 2, 0, 1,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- GTK_WIDGET_SET_FLAGS (pkg_info_installed_version, GTK_CAN_FOCUS);
- gtk_label_set_use_markup (GTK_LABEL (pkg_info_installed_version), TRUE);
- gtk_label_set_selectable (GTK_LABEL (pkg_info_installed_version), TRUE);
- gtk_misc_set_alignment (GTK_MISC (pkg_info_installed_version), 0, 0.5);
-
- label239 = gtk_label_new (_("Installed Size:"));
- gtk_widget_set_name (label239, "label239");
- gtk_widget_show (label239);
- gtk_table_attach (GTK_TABLE (table3), label239, 0, 1, 1, 2,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_use_markup (GTK_LABEL (label239), TRUE);
- gtk_misc_set_alignment (GTK_MISC (label239), 0, 0.5);
-
- pkg_info_installed_installed_size = gtk_label_new ("");
- gtk_widget_set_name (pkg_info_installed_installed_size, "pkg_info_installed_installed_size");
- gtk_widget_show (pkg_info_installed_installed_size);
- gtk_table_attach (GTK_TABLE (table3), pkg_info_installed_installed_size, 1, 2, 1, 2,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_use_markup (GTK_LABEL (pkg_info_installed_installed_size), TRUE);
- gtk_misc_set_alignment (GTK_MISC (pkg_info_installed_installed_size), 0, 0.5);
-
- vbox66 = gtk_vbox_new (FALSE, 6);
- gtk_widget_set_name (vbox66, "vbox66");
- gtk_widget_show (vbox66);
- gtk_box_pack_start (GTK_BOX (vbox63), vbox66, TRUE, TRUE, 0);
-
- label261 = gtk_label_new (_("<b>Latest Available Version</b>"));
- gtk_widget_set_name (label261, "label261");
- gtk_widget_show (label261);
- gtk_box_pack_start (GTK_BOX (vbox66), label261, FALSE, FALSE, 0);
- gtk_label_set_use_markup (GTK_LABEL (label261), TRUE);
- gtk_misc_set_alignment (GTK_MISC (label261), 0, 0.5);
-
- hbox105 = gtk_hbox_new (FALSE, 0);
- gtk_widget_set_name (hbox105, "hbox105");
- gtk_widget_show (hbox105);
- gtk_box_pack_start (GTK_BOX (vbox66), hbox105, TRUE, TRUE, 0);
-
- label262 = gtk_label_new (" ");
- gtk_widget_set_name (label262, "label262");
- gtk_widget_show (label262);
- gtk_box_pack_start (GTK_BOX (hbox105), label262, FALSE, TRUE, 0);
-
- table5 = gtk_table_new (4, 2, FALSE);
- gtk_widget_set_name (table5, "table5");
- gtk_widget_show (table5);
- gtk_box_pack_start (GTK_BOX (hbox105), table5, TRUE, TRUE, 0);
- gtk_table_set_row_spacings (GTK_TABLE (table5), 6);
- gtk_table_set_col_spacings (GTK_TABLE (table5), 12);
-
- label263 = gtk_label_new (_("Version:"));
- gtk_widget_set_name (label263, "label263");
- gtk_widget_show (label263);
- gtk_table_attach (GTK_TABLE (table5), label263, 0, 1, 0, 1,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_use_markup (GTK_LABEL (label263), TRUE);
- gtk_misc_set_alignment (GTK_MISC (label263), 0, 0.5);
-
- label264 = gtk_label_new (_("Size:"));
- gtk_widget_set_name (label264, "label264");
- gtk_widget_show (label264);
- gtk_table_attach (GTK_TABLE (table5), label264, 0, 1, 1, 2,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_use_markup (GTK_LABEL (label264), TRUE);
- gtk_misc_set_alignment (GTK_MISC (label264), 0, 0.5);
-
- label265 = gtk_label_new (_("Installed Size:"));
- gtk_widget_set_name (label265, "label265");
- gtk_widget_show (label265);
- gtk_table_attach (GTK_TABLE (table5), label265, 0, 1, 2, 3,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_use_markup (GTK_LABEL (label265), TRUE);
- gtk_misc_set_alignment (GTK_MISC (label265), 0, 0.5);
-
- label266 = gtk_label_new (_("Source:"));
- gtk_widget_set_name (label266, "label266");
- gtk_widget_show (label266);
- gtk_table_attach (GTK_TABLE (table5), label266, 0, 1, 3, 4,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_use_markup (GTK_LABEL (label266), TRUE);
- gtk_misc_set_alignment (GTK_MISC (label266), 0, 0.5);
-
- pkg_info_available_version = gtk_label_new ("");
- gtk_widget_set_name (pkg_info_available_version, "pkg_info_available_version");
- gtk_widget_show (pkg_info_available_version);
- gtk_table_attach (GTK_TABLE (table5), pkg_info_available_version, 1, 2, 0, 1,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- GTK_WIDGET_SET_FLAGS (pkg_info_available_version, GTK_CAN_FOCUS);
- gtk_label_set_use_markup (GTK_LABEL (pkg_info_available_version), TRUE);
- gtk_label_set_selectable (GTK_LABEL (pkg_info_available_version), TRUE);
- gtk_misc_set_alignment (GTK_MISC (pkg_info_available_version), 0, 0.5);
-
- pkg_info_available_size = gtk_label_new ("");
- gtk_widget_set_name (pkg_info_available_size, "pkg_info_available_size");
- gtk_widget_show (pkg_info_available_size);
- gtk_table_attach (GTK_TABLE (table5), pkg_info_available_size, 1, 2, 1, 2,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_use_markup (GTK_LABEL (pkg_info_available_size), TRUE);
- gtk_misc_set_alignment (GTK_MISC (pkg_info_available_size), 0, 0.5);
-
- pkg_info_available_installed_size = gtk_label_new ("");
- gtk_widget_set_name (pkg_info_available_installed_size, "pkg_info_available_installed_size");
- gtk_widget_show (pkg_info_available_installed_size);
- gtk_table_attach (GTK_TABLE (table5), pkg_info_available_installed_size, 1, 2, 2, 3,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_label_set_use_markup (GTK_LABEL (pkg_info_available_installed_size), TRUE);
- gtk_misc_set_alignment (GTK_MISC (pkg_info_available_installed_size), 0, 0.5);
-
- pkg_info_available_source = gtk_label_new ("");
- gtk_widget_set_name (pkg_info_available_source, "pkg_info_available_source");
- gtk_widget_show (pkg_info_available_source);
- gtk_table_attach (GTK_TABLE (table5), pkg_info_available_source, 1, 2, 3, 4,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- GTK_WIDGET_SET_FLAGS (pkg_info_available_source, GTK_CAN_FOCUS);
- gtk_label_set_use_markup (GTK_LABEL (pkg_info_available_source), TRUE);
- gtk_label_set_selectable (GTK_LABEL (pkg_info_available_source), TRUE);
- gtk_misc_set_alignment (GTK_MISC (pkg_info_available_source), 0, 0.5);
-
- pkg_info_common_label = gtk_label_new (_("Common"));
- gtk_widget_set_name (pkg_info_common_label, "pkg_info_common_label");
- gtk_widget_show (pkg_info_common_label);
- gtk_notebook_set_tab_label (GTK_NOTEBOOK (pkg_info_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (pkg_info_notebook), 0), pkg_info_common_label);
-
- vbox64 = gtk_vbox_new (FALSE, 0);
- gtk_widget_set_name (vbox64, "vbox64");
- gtk_widget_show (vbox64);
- gtk_container_add (GTK_CONTAINER (pkg_info_notebook), vbox64);
- gtk_container_set_border_width (GTK_CONTAINER (vbox64), 12);
-
- scrolledwindow19 = gtk_scrolled_window_new (NULL, NULL);
- gtk_widget_set_name (scrolledwindow19, "scrolledwindow19");
- gtk_widget_show (scrolledwindow19);
- gtk_box_pack_start (GTK_BOX (vbox64), scrolledwindow19, TRUE, TRUE, 0);
- gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow19), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
- gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow19), GTK_SHADOW_IN);
-
- pkg_description_textview = gtk_text_view_new ();
- gtk_widget_set_name (pkg_description_textview, "pkg_description_textview");
- gtk_widget_show (pkg_description_textview);
- gtk_container_add (GTK_CONTAINER (scrolledwindow19), pkg_description_textview);
- gtk_text_view_set_editable (GTK_TEXT_VIEW (pkg_description_textview), FALSE);
- gtk_text_view_set_cursor_visible (GTK_TEXT_VIEW (pkg_description_textview), FALSE);
-
- pkg_info_description_label = gtk_label_new (_("Description"));
- gtk_widget_set_name (pkg_info_description_label, "pkg_info_description_label");
- gtk_widget_show (pkg_info_description_label);
- gtk_notebook_set_tab_label (GTK_NOTEBOOK (pkg_info_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (pkg_info_notebook), 1), pkg_info_description_label);
-
- scrolledwindow21 = gtk_scrolled_window_new (NULL, NULL);
- gtk_widget_set_name (scrolledwindow21, "scrolledwindow21");
- gtk_widget_show (scrolledwindow21);
- gtk_container_add (GTK_CONTAINER (pkg_info_notebook), scrolledwindow21);
- gtk_container_set_border_width (GTK_CONTAINER (scrolledwindow21), 12);
- gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow21), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
-
- dep_conf_sug_treeview = gtk_tree_view_new ();
- gtk_widget_set_name (dep_conf_sug_treeview, "dep_conf_sug_treeview");
- gtk_widget_show (dep_conf_sug_treeview);
- gtk_container_add (GTK_CONTAINER (scrolledwindow21), dep_conf_sug_treeview);
- gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (dep_conf_sug_treeview), FALSE);
- gtk_tree_view_set_enable_search (GTK_TREE_VIEW (dep_conf_sug_treeview), FALSE);
-
- pkg_info_dependencies_label = gtk_label_new (_("Dependencies"));
- gtk_widget_set_name (pkg_info_dependencies_label, "pkg_info_dependencies_label");
- gtk_widget_show (pkg_info_dependencies_label);
- gtk_notebook_set_tab_label (GTK_NOTEBOOK (pkg_info_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (pkg_info_notebook), 2), pkg_info_dependencies_label);
-
- scrolledwindow23 = gtk_scrolled_window_new (NULL, NULL);
- gtk_widget_set_name (scrolledwindow23, "scrolledwindow23");
- gtk_widget_show (scrolledwindow23);
- gtk_container_add (GTK_CONTAINER (pkg_info_notebook), scrolledwindow23);
- gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow23), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
- gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow23), GTK_SHADOW_IN);
-
- pkg_changelog_textview = gtk_text_view_new ();
- gtk_widget_set_name (pkg_changelog_textview, "pkg_changelog_textview");
- gtk_widget_show (pkg_changelog_textview);
- gtk_container_add (GTK_CONTAINER (scrolledwindow23), pkg_changelog_textview);
- gtk_text_view_set_editable (GTK_TEXT_VIEW (pkg_changelog_textview), FALSE);
- gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (pkg_changelog_textview), GTK_WRAP_WORD);
- gtk_text_view_set_cursor_visible (GTK_TEXT_VIEW (pkg_changelog_textview), FALSE);
-
- pkg_info_changelog = gtk_label_new (_("Changelog"));
- gtk_widget_set_name (pkg_info_changelog, "pkg_info_changelog");
- gtk_widget_show (pkg_info_changelog);
- gtk_notebook_set_tab_label (GTK_NOTEBOOK (pkg_info_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (pkg_info_notebook), 3), pkg_info_changelog);
-
- scrolledwindow25 = gtk_scrolled_window_new (NULL, NULL);
- gtk_widget_set_name (scrolledwindow25, "scrolledwindow25");
- gtk_widget_show (scrolledwindow25);
- gtk_container_add (GTK_CONTAINER (pkg_info_notebook), scrolledwindow25);
- gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow25), GTK_SHADOW_IN);
-
- pkg_filelist_textview = gtk_text_view_new ();
- gtk_widget_set_name (pkg_filelist_textview, "pkg_filelist_textview");
- gtk_widget_show (pkg_filelist_textview);
- gtk_container_add (GTK_CONTAINER (scrolledwindow25), pkg_filelist_textview);
- gtk_text_view_set_editable (GTK_TEXT_VIEW (pkg_filelist_textview), FALSE);
- gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (pkg_filelist_textview), GTK_WRAP_WORD);
- gtk_text_view_set_cursor_visible (GTK_TEXT_VIEW (pkg_filelist_textview), FALSE);
-
- pkg_info_filelist = gtk_label_new (_("Files"));
- gtk_widget_set_name (pkg_info_filelist, "pkg_info_filelist");
- gtk_widget_show (pkg_info_filelist);
- gtk_notebook_set_tab_label (GTK_NOTEBOOK (pkg_info_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (pkg_info_notebook), 4), pkg_info_filelist);
-
- bottom_statusbar = gtk_statusbar_new ();
- gtk_widget_set_name (bottom_statusbar, "bottom_statusbar");
- gtk_widget_show (bottom_statusbar);
- gtk_box_pack_start (GTK_BOX (gslapt_vbox), bottom_statusbar, FALSE, FALSE, 0);
-
- g_signal_connect ((gpointer) gslapt, "destroy",
- G_CALLBACK (on_gslapt_destroy),
- NULL);
- g_signal_connect ((gpointer) gslapt, "configure-event",
- G_CALLBACK (gslapt_window_resized),
- NULL);
- g_signal_connect ((gpointer) update1, "activate",
- G_CALLBACK (update_activate),
- NULL);
- 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);
- g_signal_connect ((gpointer) quit, "activate",
- G_CALLBACK (on_gslapt_destroy),
- NULL);
- g_signal_connect ((gpointer) unmark_all1, "activate",
- G_CALLBACK (unmark_all_activate),
- NULL);
- g_signal_connect ((gpointer) unmark_all1, "activate",
- G_CALLBACK (unmark_all_activate),
- NULL);
- g_signal_connect ((gpointer) preferences2, "activate",
- G_CALLBACK (open_preferences),
- NULL);
- g_signal_connect ((gpointer) view_all_packages_menu, "activate",
- G_CALLBACK (view_all_packages),
- NULL);
- g_signal_connect ((gpointer) view_available_packages_menu, "activate",
- G_CALLBACK (view_available_packages),
- NULL);
- g_signal_connect ((gpointer) view_installed_packages_menu, "activate",
- G_CALLBACK (view_installed_packages),
- NULL);
- g_signal_connect ((gpointer) view_marked_packages_menu, "activate",
- G_CALLBACK (view_marked_packages),
- NULL);
- g_signal_connect ((gpointer) view_upgradeable_packages_menu, "activate",
- G_CALLBACK (view_upgradeable_packages),
- NULL);
- g_signal_connect ((gpointer) icon_legend1, "activate",
- G_CALLBACK (open_icon_legend),
- NULL);
- g_signal_connect ((gpointer) changelogs_menu, "activate",
- G_CALLBACK (view_changelogs),
- NULL);
- g_signal_connect ((gpointer) about3, "activate",
- G_CALLBACK (open_about),
- NULL);
- g_signal_connect_swapped ((gpointer) action_bar_update_button, "clicked",
- G_CALLBACK (update_callback),
- GTK_OBJECT (gslapt));
- g_signal_connect_swapped ((gpointer) action_bar_upgrade_button, "clicked",
- G_CALLBACK (upgrade_callback),
- GTK_OBJECT (gslapt));
- g_signal_connect_swapped ((gpointer) action_bar_execute_button, "clicked",
- G_CALLBACK (execute_callback),
- GTK_OBJECT (gslapt));
- g_signal_connect_swapped ((gpointer) search_entry, "editing_done",
- G_CALLBACK (search_activated),
- GTK_OBJECT (gslapt));
- g_signal_connect_swapped ((gpointer) search_entry, "activate",
- G_CALLBACK (search_activated),
- GTK_OBJECT (gslapt));
-
- /* Store pointers to all widgets, for use by lookup_widget(). */
- GLADE_HOOKUP_OBJECT_NO_REF (gslapt, gslapt, "gslapt");
- GLADE_HOOKUP_OBJECT (gslapt, gslapt_vbox, "gslapt_vbox");
- GLADE_HOOKUP_OBJECT (gslapt, top_menubar, "top_menubar");
- GLADE_HOOKUP_OBJECT (gslapt, actions2, "actions2");
- GLADE_HOOKUP_OBJECT (gslapt, actions2_menu, "actions2_menu");
- GLADE_HOOKUP_OBJECT (gslapt, update1, "update1");
- GLADE_HOOKUP_OBJECT (gslapt, image1731, "image1731");
- GLADE_HOOKUP_OBJECT (gslapt, mark_all_upgrades2, "mark_all_upgrades2");
- GLADE_HOOKUP_OBJECT (gslapt, image1732, "image1732");
- GLADE_HOOKUP_OBJECT (gslapt, mark_obsolete1, "mark_obsolete1");
- GLADE_HOOKUP_OBJECT (gslapt, image1733, "image1733");
- GLADE_HOOKUP_OBJECT (gslapt, execute1, "execute1");
- GLADE_HOOKUP_OBJECT (gslapt, image1734, "image1734");
- 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, image1735, "image1735");
- GLADE_HOOKUP_OBJECT (gslapt, separator1, "separator1");
- GLADE_HOOKUP_OBJECT (gslapt, preferences2, "preferences2");
- GLADE_HOOKUP_OBJECT (gslapt, image1736, "image1736");
- 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");
- GLADE_HOOKUP_OBJECT (gslapt, view_available_packages_menu, "view_available_packages_menu");
- GLADE_HOOKUP_OBJECT (gslapt, view_installed_packages_menu, "view_installed_packages_menu");
- GLADE_HOOKUP_OBJECT (gslapt, view_marked_packages_menu, "view_marked_packages_menu");
- GLADE_HOOKUP_OBJECT (gslapt, view_upgradeable_packages_menu, "view_upgradeable_packages_menu");
- GLADE_HOOKUP_OBJECT (gslapt, package1, "package1");
- GLADE_HOOKUP_OBJECT (gslapt, package1_menu, "package1_menu");
- GLADE_HOOKUP_OBJECT (gslapt, unmark1, "unmark1");
- GLADE_HOOKUP_OBJECT (gslapt, image1737, "image1737");
- GLADE_HOOKUP_OBJECT (gslapt, install1, "install1");
- GLADE_HOOKUP_OBJECT (gslapt, image1738, "image1738");
- GLADE_HOOKUP_OBJECT (gslapt, re_install1, "re_install1");
- GLADE_HOOKUP_OBJECT (gslapt, image1739, "image1739");
- GLADE_HOOKUP_OBJECT (gslapt, upgrade1, "upgrade1");
- GLADE_HOOKUP_OBJECT (gslapt, image1740, "image1740");
- GLADE_HOOKUP_OBJECT (gslapt, downgrade1, "downgrade1");
- GLADE_HOOKUP_OBJECT (gslapt, image1741, "image1741");
- GLADE_HOOKUP_OBJECT (gslapt, remove1, "remove1");
- GLADE_HOOKUP_OBJECT (gslapt, image1742, "image1742");
- 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, image1743, "image1743");
- GLADE_HOOKUP_OBJECT (gslapt, changelogs_menu, "changelogs_menu");
- GLADE_HOOKUP_OBJECT (gslapt, image1744, "image1744");
- GLADE_HOOKUP_OBJECT (gslapt, about3, "about3");
- GLADE_HOOKUP_OBJECT (gslapt, image1745, "image1745");
- 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");
- GLADE_HOOKUP_OBJECT (gslapt, separatortoolitem1, "separatortoolitem1");
- GLADE_HOOKUP_OBJECT (gslapt, action_bar_execute_button, "action_bar_execute_button");
- GLADE_HOOKUP_OBJECT (gslapt, search_vbox, "search_vbox");
- GLADE_HOOKUP_OBJECT (gslapt, search_align, "search_align");
- GLADE_HOOKUP_OBJECT (gslapt, search_hbox, "search_hbox");
- GLADE_HOOKUP_OBJECT (gslapt, label292, "label292");
- GLADE_HOOKUP_OBJECT (gslapt, search_entry, "search_entry");
- GLADE_HOOKUP_OBJECT (gslapt, pkg_vpaned, "pkg_vpaned");
- GLADE_HOOKUP_OBJECT (gslapt, pkg_list_scrolled, "pkg_list_scrolled");
- GLADE_HOOKUP_OBJECT (gslapt, pkg_listing_treeview, "pkg_listing_treeview");
- GLADE_HOOKUP_OBJECT (gslapt, pkg_info_notebook, "pkg_info_notebook");
- GLADE_HOOKUP_OBJECT (gslapt, scrolledwindow20, "scrolledwindow20");
- GLADE_HOOKUP_OBJECT (gslapt, viewport1, "viewport1");
- GLADE_HOOKUP_OBJECT (gslapt, vbox63, "vbox63");
- GLADE_HOOKUP_OBJECT (gslapt, table2, "table2");
- GLADE_HOOKUP_OBJECT (gslapt, label226, "label226");
- GLADE_HOOKUP_OBJECT (gslapt, pkg_info_name, "pkg_info_name");
- GLADE_HOOKUP_OBJECT (gslapt, label250, "label250");
- GLADE_HOOKUP_OBJECT (gslapt, label227, "label227");
- GLADE_HOOKUP_OBJECT (gslapt, pkg_info_description, "pkg_info_description");
- GLADE_HOOKUP_OBJECT (gslapt, label273, "label273");
- GLADE_HOOKUP_OBJECT (gslapt, pkg_info_version, "pkg_info_version");
- GLADE_HOOKUP_OBJECT (gslapt, pkg_info_status, "pkg_info_status");
- GLADE_HOOKUP_OBJECT (gslapt, label291, "label291");
- GLADE_HOOKUP_OBJECT (gslapt, pkg_info_source, "pkg_info_source");
- GLADE_HOOKUP_OBJECT (gslapt, label298, "label298");
- GLADE_HOOKUP_OBJECT (gslapt, pkg_info_priority, "pkg_info_priority");
- GLADE_HOOKUP_OBJECT (gslapt, label244, "label244");
- GLADE_HOOKUP_OBJECT (gslapt, pkg_info_location, "pkg_info_location");
- GLADE_HOOKUP_OBJECT (gslapt, vbox67, "vbox67");
- GLADE_HOOKUP_OBJECT (gslapt, label272, "label272");
- GLADE_HOOKUP_OBJECT (gslapt, hbox106, "hbox106");
- GLADE_HOOKUP_OBJECT (gslapt, label271, "label271");
- GLADE_HOOKUP_OBJECT (gslapt, table3, "table3");
- GLADE_HOOKUP_OBJECT (gslapt, label237, "label237");
- GLADE_HOOKUP_OBJECT (gslapt, pkg_info_installed_version, "pkg_info_installed_version");
- GLADE_HOOKUP_OBJECT (gslapt, label239, "label239");
- GLADE_HOOKUP_OBJECT (gslapt, pkg_info_installed_installed_size, "pkg_info_installed_installed_size");
- GLADE_HOOKUP_OBJECT (gslapt, vbox66, "vbox66");
- GLADE_HOOKUP_OBJECT (gslapt, label261, "label261");
- GLADE_HOOKUP_OBJECT (gslapt, hbox105, "hbox105");
- GLADE_HOOKUP_OBJECT (gslapt, label262, "label262");
- GLADE_HOOKUP_OBJECT (gslapt, table5, "table5");
- GLADE_HOOKUP_OBJECT (gslapt, label263, "label263");
- GLADE_HOOKUP_OBJECT (gslapt, label264, "label264");
- GLADE_HOOKUP_OBJECT (gslapt, label265, "label265");
- GLADE_HOOKUP_OBJECT (gslapt, label266, "label266");
- GLADE_HOOKUP_OBJECT (gslapt, pkg_info_available_version, "pkg_info_available_version");
- GLADE_HOOKUP_OBJECT (gslapt, pkg_info_available_size, "pkg_info_available_size");
- GLADE_HOOKUP_OBJECT (gslapt, pkg_info_available_installed_size, "pkg_info_available_installed_size");
- GLADE_HOOKUP_OBJECT (gslapt, pkg_info_available_source, "pkg_info_available_source");
- GLADE_HOOKUP_OBJECT (gslapt, pkg_info_common_label, "pkg_info_common_label");
- GLADE_HOOKUP_OBJECT (gslapt, vbox64, "vbox64");
- GLADE_HOOKUP_OBJECT (gslapt, scrolledwindow19, "scrolledwindow19");
- GLADE_HOOKUP_OBJECT (gslapt, pkg_description_textview, "pkg_description_textview");
- GLADE_HOOKUP_OBJECT (gslapt, pkg_info_description_label, "pkg_info_description_label");
- GLADE_HOOKUP_OBJECT (gslapt, scrolledwindow21, "scrolledwindow21");
- GLADE_HOOKUP_OBJECT (gslapt, dep_conf_sug_treeview, "dep_conf_sug_treeview");
- GLADE_HOOKUP_OBJECT (gslapt, pkg_info_dependencies_label, "pkg_info_dependencies_label");
- GLADE_HOOKUP_OBJECT (gslapt, scrolledwindow23, "scrolledwindow23");
- GLADE_HOOKUP_OBJECT (gslapt, pkg_changelog_textview, "pkg_changelog_textview");
- GLADE_HOOKUP_OBJECT (gslapt, pkg_info_changelog, "pkg_info_changelog");
- GLADE_HOOKUP_OBJECT (gslapt, scrolledwindow25, "scrolledwindow25");
- GLADE_HOOKUP_OBJECT (gslapt, pkg_filelist_textview, "pkg_filelist_textview");
- GLADE_HOOKUP_OBJECT (gslapt, pkg_info_filelist, "pkg_info_filelist");
- GLADE_HOOKUP_OBJECT (gslapt, bottom_statusbar, "bottom_statusbar");
- GLADE_HOOKUP_OBJECT_NO_REF (gslapt, tooltips, "tooltips");
-
- gtk_widget_grab_focus (search_entry);
- gtk_widget_grab_default (search_entry);
- gtk_window_add_accel_group (GTK_WINDOW (gslapt), accel_group);
-
- return gslapt;
-}
-
-GtkWidget*
-create_transaction_window (void)
-{
- GtkWidget *transaction_window;
- GdkPixbuf *transaction_window_icon_pixbuf;
- GtkWidget *vbox47;
- GtkWidget *vbox61;
- GtkWidget *hbox97;
- GtkWidget *image852;
- GtkWidget *vbox62;
- GtkWidget *label167;
- GtkWidget *label168;
- GtkWidget *scrolledwindow18;
- GtkWidget *transaction_summary_treeview;
- GtkWidget *summary_breakdown;
- GtkWidget *summary_pkg_numbers;
- GtkWidget *summary_dl_size;
- GtkWidget *summary_free_space;
- GtkWidget *download_only_checkbutton;
- GtkWidget *hbuttonbox1;
- GtkWidget *button2;
- GtkWidget *button3;
-
- transaction_window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
- gtk_widget_set_name (transaction_window, "transaction_window");
- gtk_container_set_border_width (GTK_CONTAINER (transaction_window), 12);
- gtk_window_set_title (GTK_WINDOW (transaction_window), _("Summary"));
- gtk_window_set_position (GTK_WINDOW (transaction_window), GTK_WIN_POS_CENTER);
- gtk_window_set_modal (GTK_WINDOW (transaction_window), TRUE);
- gtk_window_set_default_size (GTK_WINDOW (transaction_window), 200, 400);
- transaction_window_icon_pixbuf = create_pixbuf ("gslapt.png");
- if (transaction_window_icon_pixbuf)
- {
- gtk_window_set_icon (GTK_WINDOW (transaction_window), transaction_window_icon_pixbuf);
- g_object_unref (transaction_window_icon_pixbuf);
- }
- gtk_window_set_gravity (GTK_WINDOW (transaction_window), GDK_GRAVITY_CENTER);
-
- vbox47 = gtk_vbox_new (FALSE, 6);
- gtk_widget_set_name (vbox47, "vbox47");
- gtk_widget_show (vbox47);
- gtk_container_add (GTK_CONTAINER (transaction_window), vbox47);
-
- vbox61 = gtk_vbox_new (FALSE, 2);
- gtk_widget_set_name (vbox61, "vbox61");
- gtk_widget_show (vbox61);
- gtk_box_pack_start (GTK_BOX (vbox47), vbox61, TRUE, TRUE, 2);
- gtk_container_set_border_width (GTK_CONTAINER (vbox61), 6);
-
- hbox97 = gtk_hbox_new (FALSE, 2);
- gtk_widget_set_name (hbox97, "hbox97");
- gtk_widget_show (hbox97);
- gtk_box_pack_start (GTK_BOX (vbox61), hbox97, FALSE, TRUE, 0);
- gtk_container_set_border_width (GTK_CONTAINER (hbox97), 6);
-
- image852 = gtk_image_new_from_stock ("gtk-dialog-question", GTK_ICON_SIZE_DIALOG);
- gtk_widget_set_name (image852, "image852");
- gtk_widget_show (image852);
- gtk_box_pack_start (GTK_BOX (hbox97), image852, TRUE, TRUE, 0);
- gtk_misc_set_alignment (GTK_MISC (image852), 0, 0);
-
- vbox62 = gtk_vbox_new (FALSE, 2);
- gtk_widget_set_name (vbox62, "vbox62");
- gtk_widget_show (vbox62);
- gtk_box_pack_start (GTK_BOX (hbox97), vbox62, TRUE, TRUE, 0);
- gtk_container_set_border_width (GTK_CONTAINER (vbox62), 6);
-
- label167 = gtk_label_new (_("<span weight=\"bold\" size=\"large\">Apply the following changes?</span>"));
- gtk_widget_set_name (label167, "label167");
- gtk_widget_show (label167);
- gtk_box_pack_start (GTK_BOX (vbox62), label167, FALSE, FALSE, 0);
- gtk_label_set_use_markup (GTK_LABEL (label167), TRUE);
- gtk_misc_set_alignment (GTK_MISC (label167), 0, 0);
-
- label168 = gtk_label_new (_("This is a summary of the changes about to be performed."));
- gtk_widget_set_name (label168, "label168");
- gtk_widget_show (label168);
- gtk_box_pack_start (GTK_BOX (vbox62), label168, FALSE, FALSE, 0);
- gtk_label_set_line_wrap (GTK_LABEL (label168), TRUE);
- gtk_misc_set_alignment (GTK_MISC (label168), 0, 0);
- gtk_misc_set_padding (GTK_MISC (label168), 0, 6);
-
- scrolledwindow18 = gtk_scrolled_window_new (NULL, NULL);
- gtk_widget_set_name (scrolledwindow18, "scrolledwindow18");
- gtk_widget_show (scrolledwindow18);
- gtk_box_pack_start (GTK_BOX (vbox61), scrolledwindow18, TRUE, TRUE, 0);
- gtk_container_set_border_width (GTK_CONTAINER (scrolledwindow18), 1);
- gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow18), GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS);
-
- transaction_summary_treeview = gtk_tree_view_new ();
- gtk_widget_set_name (transaction_summary_treeview, "transaction_summary_treeview");
- gtk_widget_show (transaction_summary_treeview);
- gtk_container_add (GTK_CONTAINER (scrolledwindow18), transaction_summary_treeview);
- gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (transaction_summary_treeview), FALSE);
- gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (transaction_summary_treeview), TRUE);
-
- summary_breakdown = gtk_vbox_new (FALSE, 2);
- gtk_widget_set_name (summary_breakdown, "summary_breakdown");
- gtk_widget_show (summary_breakdown);
- gtk_box_pack_start (GTK_BOX (vbox61), summary_breakdown, FALSE, TRUE, 0);
- gtk_container_set_border_width (GTK_CONTAINER (summary_breakdown), 6);
-
- summary_pkg_numbers = gtk_label_new ("");
- gtk_widget_set_name (summary_pkg_numbers, "summary_pkg_numbers");
- gtk_widget_show (summary_pkg_numbers);
- gtk_box_pack_start (GTK_BOX (summary_breakdown), summary_pkg_numbers, FALSE, TRUE, 0);
- gtk_label_set_use_markup (GTK_LABEL (summary_pkg_numbers), TRUE);
- gtk_misc_set_alignment (GTK_MISC (summary_pkg_numbers), 0, 0);
- gtk_misc_set_padding (GTK_MISC (summary_pkg_numbers), 6, 1);
-
- summary_dl_size = gtk_label_new ("");
- gtk_widget_set_name (summary_dl_size, "summary_dl_size");
- gtk_widget_show (summary_dl_size);
- gtk_box_pack_start (GTK_BOX (summary_breakdown), summary_dl_size, FALSE, TRUE, 0);
- gtk_label_set_use_markup (GTK_LABEL (summary_dl_size), TRUE);
- gtk_misc_set_alignment (GTK_MISC (summary_dl_size), 0, 0);
- gtk_misc_set_padding (GTK_MISC (summary_dl_size), 6, 1);
-
- summary_free_space = gtk_label_new ("");
- gtk_widget_set_name (summary_free_space, "summary_free_space");
- gtk_widget_show (summary_free_space);
- gtk_box_pack_start (GTK_BOX (summary_breakdown), summary_free_space, FALSE, TRUE, 0);
- gtk_label_set_use_markup (GTK_LABEL (summary_free_space), TRUE);
- gtk_misc_set_alignment (GTK_MISC (summary_free_space), 0, 0);
- gtk_misc_set_padding (GTK_MISC (summary_free_space), 6, 1);
-
- download_only_checkbutton = gtk_check_button_new_with_mnemonic (_("Download packages only"));
- gtk_widget_set_name (download_only_checkbutton, "download_only_checkbutton");
- gtk_widget_show (download_only_checkbutton);
- gtk_box_pack_start (GTK_BOX (vbox61), download_only_checkbutton, FALSE, TRUE, 0);
-
- hbuttonbox1 = gtk_hbutton_box_new ();
- gtk_widget_set_name (hbuttonbox1, "hbuttonbox1");
- gtk_widget_show (hbuttonbox1);
- gtk_box_pack_start (GTK_BOX (vbox47), hbuttonbox1, FALSE, TRUE, 1);
- gtk_container_set_border_width (GTK_CONTAINER (hbuttonbox1), 2);
- gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox1), GTK_BUTTONBOX_END);
- gtk_box_set_spacing (GTK_BOX (hbuttonbox1), 6);
-
- button2 = gtk_button_new_from_stock ("gtk-cancel");
- gtk_widget_set_name (button2, "button2");
- gtk_widget_show (button2);
- gtk_container_add (GTK_CONTAINER (hbuttonbox1), button2);
- GTK_WIDGET_SET_FLAGS (button2, GTK_CAN_DEFAULT);
-
- button3 = gtk_button_new_from_stock ("gtk-ok");
- gtk_widget_set_name (button3, "button3");
- gtk_widget_show (button3);
- gtk_container_add (GTK_CONTAINER (hbuttonbox1), button3);
- GTK_WIDGET_SET_FLAGS (button3, GTK_CAN_DEFAULT);
-
- g_signal_connect ((gpointer) transaction_window, "destroy_event",
- G_CALLBACK (gtk_widget_destroy),
- NULL);
- g_signal_connect ((gpointer) transaction_window, "configure-event",
- G_CALLBACK (gslapt_window_resized),
- NULL);
- g_signal_connect_swapped ((gpointer) button2, "clicked",
- G_CALLBACK (cancel_transaction),
- GTK_OBJECT (transaction_window));
- g_signal_connect_swapped ((gpointer) button3, "clicked",
- G_CALLBACK (transaction_okbutton_clicked),
- GTK_OBJECT (transaction_window));
-
- /* Store pointers to all widgets, for use by lookup_widget(). */
- GLADE_HOOKUP_OBJECT_NO_REF (transaction_window, transaction_window, "transaction_window");
- GLADE_HOOKUP_OBJECT (transaction_window, vbox47, "vbox47");
- GLADE_HOOKUP_OBJECT (transaction_window, vbox61, "vbox61");
- GLADE_HOOKUP_OBJECT (transaction_window, hbox97, "hbox97");
- GLADE_HOOKUP_OBJECT (transaction_window, image852, "image852");
- GLADE_HOOKUP_OBJECT (transaction_window, vbox62, "vbox62");
- GLADE_HOOKUP_OBJECT (transaction_window, label167, "label167");
- GLADE_HOOKUP_OBJECT (transaction_window, label168, "label168");
- GLADE_HOOKUP_OBJECT (transaction_window, scrolledwindow18, "scrolledwindow18");
- GLADE_HOOKUP_OBJECT (transaction_window, transaction_summary_treeview, "transaction_summary_treeview");
- GLADE_HOOKUP_OBJECT (transaction_window, summary_breakdown, "summary_breakdown");
- GLADE_HOOKUP_OBJECT (transaction_window, summary_pkg_numbers, "summary_pkg_numbers");
- GLADE_HOOKUP_OBJECT (transaction_window, summary_dl_size, "summary_dl_size");
- GLADE_HOOKUP_OBJECT (transaction_window, summary_free_space, "summary_free_space");
- GLADE_HOOKUP_OBJECT (transaction_window, download_only_checkbutton, "download_only_checkbutton");
- GLADE_HOOKUP_OBJECT (transaction_window, hbuttonbox1, "hbuttonbox1");
- GLADE_HOOKUP_OBJECT (transaction_window, button2, "button2");
- GLADE_HOOKUP_OBJECT (transaction_window, button3, "button3");
-
- return transaction_window;
-}
-
-GtkWidget*
-create_dl_progress_window (void)
-{
- GtkWidget *dl_progress_window;
- GdkPixbuf *dl_progress_window_icon_pixbuf;
- GtkWidget *vbox49;
- GtkWidget *progress_progressbar;
- GtkWidget *dl_progress;
- GtkWidget *progress_dl_speed;
- GtkWidget *progress_action;
- GtkWidget *progress_message;
- GtkWidget *progress_package_description;
- GtkWidget *hbuttonbox2;
- GtkWidget *button4;
-
- dl_progress_window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
- gtk_widget_set_name (dl_progress_window, "dl_progress_window");
- gtk_container_set_border_width (GTK_CONTAINER (dl_progress_window), 12);
- gtk_window_set_title (GTK_WINDOW (dl_progress_window), _("working"));
- gtk_window_set_position (GTK_WINDOW (dl_progress_window), GTK_WIN_POS_CENTER);
- gtk_window_set_modal (GTK_WINDOW (dl_progress_window), TRUE);
- dl_progress_window_icon_pixbuf = create_pixbuf ("gslapt.png");
- if (dl_progress_window_icon_pixbuf)
- {
- gtk_window_set_icon (GTK_WINDOW (dl_progress_window), dl_progress_window_icon_pixbuf);
- g_object_unref (dl_progress_window_icon_pixbuf);
- }
- gtk_window_set_gravity (GTK_WINDOW (dl_progress_window), GDK_GRAVITY_CENTER);
-
- vbox49 = gtk_vbox_new (FALSE, 2);
- gtk_widget_set_name (vbox49, "vbox49");
- gtk_widget_show (vbox49);
- gtk_container_add (GTK_CONTAINER (dl_progress_window), vbox49);
- gtk_container_set_border_width (GTK_CONTAINER (vbox49), 6);
-
- progress_progressbar = gtk_progress_bar_new ();
- gtk_widget_set_name (progress_progressbar, "progress_progressbar");
- gtk_widget_show (progress_progressbar);
- gtk_box_pack_start (GTK_BOX (vbox49), progress_progressbar, FALSE, TRUE, 0);
- gtk_progress_bar_set_text (GTK_PROGRESS_BAR (progress_progressbar), _("total progress"));
-
- dl_progress = gtk_progress_bar_new ();
- gtk_widget_set_name (dl_progress, "dl_progress");
- gtk_widget_show (dl_progress);
- gtk_box_pack_start (GTK_BOX (vbox49), dl_progress, FALSE, TRUE, 2);
-
- progress_dl_speed = gtk_label_new ("");
- gtk_widget_set_name (progress_dl_speed, "progress_dl_speed");
- gtk_widget_show (progress_dl_speed);
- gtk_box_pack_start (GTK_BOX (vbox49), progress_dl_speed, FALSE, FALSE, 0);
-
- progress_action = gtk_label_new ("");
- gtk_widget_set_name (progress_action, "progress_action");
- gtk_widget_show (progress_action);
- gtk_box_pack_start (GTK_BOX (vbox49), progress_action, TRUE, TRUE, 6);
-
- progress_message = gtk_label_new ("");
- gtk_widget_set_name (progress_message, "progress_message");
- gtk_widget_show (progress_message);
- gtk_box_pack_start (GTK_BOX (vbox49), progress_message, TRUE, TRUE, 6);
-
- progress_package_description = gtk_label_new ("");
- gtk_widget_set_name (progress_package_description, "progress_package_description");
- gtk_widget_show (progress_package_description);
- gtk_box_pack_start (GTK_BOX (vbox49), progress_package_description, TRUE, TRUE, 6);
- gtk_misc_set_alignment (GTK_MISC (progress_package_description), 0, 0);
-
- hbuttonbox2 = gtk_hbutton_box_new ();
- gtk_widget_set_name (hbuttonbox2, "hbuttonbox2");
- gtk_widget_show (hbuttonbox2);
- gtk_box_pack_start (GTK_BOX (vbox49), hbuttonbox2, FALSE, TRUE, 0);
- gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox2), GTK_BUTTONBOX_END);
-
- button4 = gtk_button_new_from_stock ("gtk-cancel");
- gtk_widget_set_name (button4, "button4");
- gtk_widget_show (button4);
- gtk_container_add (GTK_CONTAINER (hbuttonbox2), button4);
- GTK_WIDGET_SET_FLAGS (button4, GTK_CAN_DEFAULT);
-
- g_signal_connect ((gpointer) dl_progress_window, "delete_event",
- G_CALLBACK (gtk_true),
- NULL);
- g_signal_connect ((gpointer) button4, "clicked",
- G_CALLBACK (on_button_cancel_clicked),
- NULL);
-
- /* Store pointers to all widgets, for use by lookup_widget(). */
- GLADE_HOOKUP_OBJECT_NO_REF (dl_progress_window, dl_progress_window, "dl_progress_window");
- GLADE_HOOKUP_OBJECT (dl_progress_window, vbox49, "vbox49");
- GLADE_HOOKUP_OBJECT (dl_progress_window, progress_progressbar, "progress_progressbar");
- GLADE_HOOKUP_OBJECT (dl_progress_window, dl_progress, "dl_progress");
- GLADE_HOOKUP_OBJECT (dl_progress_window, progress_dl_speed, "progress_dl_speed");
- GLADE_HOOKUP_OBJECT (dl_progress_window, progress_action, "progress_action");
- GLADE_HOOKUP_OBJECT (dl_progress_window, progress_message, "progress_message");
- GLADE_HOOKUP_OBJECT (dl_progress_window, progress_package_description, "progress_package_description");
- GLADE_HOOKUP_OBJECT (dl_progress_window, hbuttonbox2, "hbuttonbox2");
- GLADE_HOOKUP_OBJECT (dl_progress_window, button4, "button4");
-
- return dl_progress_window;
-}
-
-GtkWidget*
-create_about (void)
-{
- GtkWidget *about;
- GdkPixbuf *about_icon_pixbuf;
- GtkWidget *dialog_vbox1;
- GtkWidget *vbox50;
- GtkWidget *image853;
- GtkWidget *label146;
- GtkWidget *label147;
- GtkWidget *label170;
- GtkWidget *label149;
- GtkWidget *dialog_action_area1;
- GtkWidget *closebutton1;
-
- about = gtk_dialog_new ();
- gtk_widget_set_name (about, "about");
- gtk_window_set_title (GTK_WINDOW (about), _("About gslapt"));
- gtk_window_set_position (GTK_WINDOW (about), GTK_WIN_POS_CENTER);
- gtk_window_set_destroy_with_parent (GTK_WINDOW (about), TRUE);
- about_icon_pixbuf = create_pixbuf ("gslapt.png");
- if (about_icon_pixbuf)
- {
- gtk_window_set_icon (GTK_WINDOW (about), about_icon_pixbuf);
- g_object_unref (about_icon_pixbuf);
- }
- gtk_window_set_type_hint (GTK_WINDOW (about), GDK_WINDOW_TYPE_HINT_DIALOG);
- gtk_window_set_gravity (GTK_WINDOW (about), GDK_GRAVITY_CENTER);
-
- dialog_vbox1 = GTK_DIALOG (about)->vbox;
- gtk_widget_set_name (dialog_vbox1, "dialog_vbox1");
- gtk_widget_show (dialog_vbox1);
-
- vbox50 = gtk_vbox_new (TRUE, 0);
- gtk_widget_set_name (vbox50, "vbox50");
- gtk_widget_show (vbox50);
- gtk_box_pack_start (GTK_BOX (dialog_vbox1), vbox50, TRUE, TRUE, 0);
-
- image853 = create_pixmap (about, "gslapt.png");
- gtk_widget_set_name (image853, "image853");
- gtk_widget_show (image853);
- gtk_box_pack_start (GTK_BOX (vbox50), image853, TRUE, TRUE, 0);
-
- label146 = gtk_label_new ("<span weight=\"bold\" size=\"xx-large\"></span>");
- gtk_widget_set_name (label146, "label146");
- gtk_widget_show (label146);
- gtk_box_pack_start (GTK_BOX (vbox50), label146, TRUE, TRUE, 0);
- GTK_WIDGET_SET_FLAGS (label146, GTK_CAN_FOCUS);
- gtk_label_set_use_markup (GTK_LABEL (label146), TRUE);
- gtk_label_set_justify (GTK_LABEL (label146), GTK_JUSTIFY_RIGHT);
- gtk_label_set_selectable (GTK_LABEL (label146), TRUE);
-
- label147 = gtk_label_new (_("gslapt is a GTK+ frontend to slapt-get, an APT like package system for Slackware"));
- gtk_widget_set_name (label147, "label147");
- gtk_widget_show (label147);
- gtk_box_pack_start (GTK_BOX (vbox50), label147, TRUE, TRUE, 0);
- GTK_WIDGET_SET_FLAGS (label147, GTK_CAN_FOCUS);
- gtk_label_set_justify (GTK_LABEL (label147), GTK_JUSTIFY_CENTER);
- gtk_label_set_line_wrap (GTK_LABEL (label147), TRUE);
- gtk_label_set_selectable (GTK_LABEL (label147), TRUE);
-
- label170 = gtk_label_new ("");
- gtk_widget_set_name (label170, "label170");
- gtk_widget_show (label170);
- gtk_box_pack_start (GTK_BOX (vbox50), label170, FALSE, FALSE, 0);
-
- label149 = gtk_label_new ("<span size=\"small\">Copyright (c) 2005-2014 Jason Woodward\nhttp://software.jaos.org/#gslapt</span>");
- gtk_widget_set_name (label149, "label149");
- gtk_widget_show (label149);
- gtk_box_pack_start (GTK_BOX (vbox50), label149, TRUE, TRUE, 0);
- GTK_WIDGET_SET_FLAGS (label149, GTK_CAN_FOCUS);
- gtk_label_set_use_markup (GTK_LABEL (label149), TRUE);
- gtk_label_set_justify (GTK_LABEL (label149), GTK_JUSTIFY_CENTER);
- gtk_label_set_selectable (GTK_LABEL (label149), TRUE);
-
- dialog_action_area1 = GTK_DIALOG (about)->action_area;
- gtk_widget_set_name (dialog_action_area1, "dialog_action_area1");
- gtk_widget_show (dialog_action_area1);
- gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area1), GTK_BUTTONBOX_END);
-
- closebutton1 = gtk_button_new_from_stock ("gtk-close");
- gtk_widget_set_name (closebutton1, "closebutton1");
- gtk_widget_show (closebutton1);
- gtk_dialog_add_action_widget (GTK_DIALOG (about), closebutton1, GTK_RESPONSE_CLOSE);
- GTK_WIDGET_SET_FLAGS (closebutton1, GTK_CAN_DEFAULT);
-
- g_signal_connect_swapped ((gpointer) closebutton1, "clicked",
- G_CALLBACK (gtk_widget_destroy),
- GTK_OBJECT (about));
-
- /* Store pointers to all widgets, for use by lookup_widget(). */
- GLADE_HOOKUP_OBJECT_NO_REF (about, about, "about");
- GLADE_HOOKUP_OBJECT_NO_REF (about, dialog_vbox1, "dialog_vbox1");
- GLADE_HOOKUP_OBJECT (about, vbox50, "vbox50");
- GLADE_HOOKUP_OBJECT (about, image853, "image853");
- GLADE_HOOKUP_OBJECT (about, label146, "label146");
- GLADE_HOOKUP_OBJECT (about, label147, "label147");
- GLADE_HOOKUP_OBJECT (about, label170, "label170");
- GLADE_HOOKUP_OBJECT (about, label149, "label149");
- GLADE_HOOKUP_OBJECT_NO_REF (about, dialog_action_area1, "dialog_action_area1");
- GLADE_HOOKUP_OBJECT (about, closebutton1, "closebutton1");
-
- return about;
-}
-
-GtkWidget*
-create_notification (void)
-{
- GtkWidget *notification;
- GdkPixbuf *notification_icon_pixbuf;
- GtkWidget *dialog_vbox3;
- GtkWidget *hbox112;
- GtkWidget *image1260;
- GtkWidget *notification_label;
- GtkWidget *dialog_action_area3;
- GtkWidget *okbutton2;
-
- notification = gtk_dialog_new ();
- gtk_widget_set_name (notification, "notification");
- gtk_container_set_border_width (GTK_CONTAINER (notification), 2);
- gtk_window_set_position (GTK_WINDOW (notification), GTK_WIN_POS_CENTER);
- gtk_window_set_modal (GTK_WINDOW (notification), TRUE);
- notification_icon_pixbuf = create_pixbuf ("gslapt.png");
- if (notification_icon_pixbuf)
- {
- gtk_window_set_icon (GTK_WINDOW (notification), notification_icon_pixbuf);
- g_object_unref (notification_icon_pixbuf);
- }
- gtk_window_set_type_hint (GTK_WINDOW (notification), GDK_WINDOW_TYPE_HINT_DIALOG);
- gtk_window_set_gravity (GTK_WINDOW (notification), GDK_GRAVITY_CENTER);
-
- dialog_vbox3 = GTK_DIALOG (notification)->vbox;
- gtk_widget_set_name (dialog_vbox3, "dialog_vbox3");
- gtk_widget_show (dialog_vbox3);
-
- hbox112 = gtk_hbox_new (FALSE, 6);
- gtk_widget_set_name (hbox112, "hbox112");
- gtk_widget_show (hbox112);
- gtk_box_pack_start (GTK_BOX (dialog_vbox3), hbox112, TRUE, TRUE, 2);
-
- image1260 = gtk_image_new_from_stock ("gtk-dialog-info", GTK_ICON_SIZE_DIALOG);
- gtk_widget_set_name (image1260, "image1260");
- gtk_widget_show (image1260);
- gtk_box_pack_start (GTK_BOX (hbox112), image1260, FALSE, TRUE, 6);
- gtk_misc_set_alignment (GTK_MISC (image1260), 0.5, 0.2);
-
- notification_label = gtk_label_new ("");
- gtk_widget_set_name (notification_label, "notification_label");
- gtk_widget_show (notification_label);
- gtk_box_pack_start (GTK_BOX (hbox112), notification_label, TRUE, TRUE, 6);
- gtk_label_set_use_markup (GTK_LABEL (notification_label), TRUE);
-
- dialog_action_area3 = GTK_DIALOG (notification)->action_area;
- gtk_widget_set_name (dialog_action_area3, "dialog_action_area3");
- gtk_widget_show (dialog_action_area3);
- gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area3), GTK_BUTTONBOX_END);
-
- okbutton2 = gtk_button_new_from_stock ("gtk-close");
- gtk_widget_set_name (okbutton2, "okbutton2");
- gtk_widget_show (okbutton2);
- gtk_dialog_add_action_widget (GTK_DIALOG (notification), okbutton2, GTK_RESPONSE_CLOSE);
- GTK_WIDGET_SET_FLAGS (okbutton2, GTK_CAN_DEFAULT);
-
- g_signal_connect_swapped ((gpointer) okbutton2, "clicked",
- G_CALLBACK (gtk_widget_destroy),
- GTK_OBJECT (notification));
-
- /* Store pointers to all widgets, for use by lookup_widget(). */
- GLADE_HOOKUP_OBJECT_NO_REF (notification, notification, "notification");
- GLADE_HOOKUP_OBJECT_NO_REF (notification, dialog_vbox3, "dialog_vbox3");
- GLADE_HOOKUP_OBJECT (notification, hbox112, "hbox112");
- GLADE_HOOKUP_OBJECT (notification, image1260, "image1260");
- GLADE_HOOKUP_OBJECT (notification, notification_label, "notification_label");
- GLADE_HOOKUP_OBJECT_NO_REF (notification, dialog_action_area3, "dialog_action_area3");
- GLADE_HOOKUP_OBJECT (notification, okbutton2, "okbutton2");
-
- return notification;
-}
-
-GtkWidget*
-create_icon_legend (void)
-{
- GtkWidget *icon_legend;
- GdkPixbuf *icon_legend_icon_pixbuf;
- GtkWidget *dialog_vbox4;
- GtkWidget *vbox65;
- GtkWidget *label252;
- GtkWidget *label260;
- GtkWidget *hbox98;
- GtkWidget *image865;
- GtkWidget *label253;
- GtkWidget *hbox109;
- GtkWidget *image1257;
- GtkWidget *label277;
- GtkWidget *label280;
- GtkWidget *label281;
- GtkWidget *hbox99;
- GtkWidget *image866;
- GtkWidget *label254;
- GtkWidget *hbox108;
- GtkWidget *image1256;
- GtkWidget *label276;
- GtkWidget *label278;
- GtkWidget *label279;
- GtkWidget *hbox100;
- GtkWidget *image867;
- GtkWidget *label255;
- GtkWidget *hbox101;
- GtkWidget *image868;
- GtkWidget *label256;
- GtkWidget *hbox102;
- GtkWidget *image869;
- GtkWidget *label257;
- GtkWidget *hbox103;
- GtkWidget *image870;
- GtkWidget *label258;
- GtkWidget *hbox104;
- GtkWidget *image871;
- GtkWidget *label259;
- GtkWidget *dialog_action_area4;
- GtkWidget *closebutton2;
-
- icon_legend = gtk_dialog_new ();
- gtk_widget_set_name (icon_legend, "icon_legend");
- gtk_container_set_border_width (GTK_CONTAINER (icon_legend), 2);
- gtk_window_set_title (GTK_WINDOW (icon_legend), _("Icon Legend"));
- gtk_window_set_position (GTK_WINDOW (icon_legend), GTK_WIN_POS_CENTER);
- icon_legend_icon_pixbuf = create_pixbuf ("gslapt.png");
- if (icon_legend_icon_pixbuf)
- {
- gtk_window_set_icon (GTK_WINDOW (icon_legend), icon_legend_icon_pixbuf);
- g_object_unref (icon_legend_icon_pixbuf);
- }
- gtk_window_set_type_hint (GTK_WINDOW (icon_legend), GDK_WINDOW_TYPE_HINT_DIALOG);
- gtk_window_set_gravity (GTK_WINDOW (icon_legend), GDK_GRAVITY_CENTER);
-
- dialog_vbox4 = GTK_DIALOG (icon_legend)->vbox;
- gtk_widget_set_name (dialog_vbox4, "dialog_vbox4");
- gtk_widget_show (dialog_vbox4);
-
- vbox65 = gtk_vbox_new (FALSE, 6);
- gtk_widget_set_name (vbox65, "vbox65");
- gtk_widget_show (vbox65);
- gtk_box_pack_start (GTK_BOX (dialog_vbox4), vbox65, TRUE, TRUE, 0);
- gtk_container_set_border_width (GTK_CONTAINER (vbox65), 6);
-
- label252 = gtk_label_new (_("<b>The following icons are used to indicate the current status of a package:</b>"));
- gtk_widget_set_name (label252, "label252");
- gtk_widget_show (label252);
- gtk_box_pack_start (GTK_BOX (vbox65), label252, FALSE, FALSE, 0);
- gtk_label_set_use_markup (GTK_LABEL (label252), TRUE);
- gtk_label_set_line_wrap (GTK_LABEL (label252), TRUE);
-
- label260 = gtk_label_new ("");
- gtk_widget_set_name (label260, "label260");
- gtk_widget_show (label260);
- gtk_box_pack_start (GTK_BOX (vbox65), label260, FALSE, FALSE, 0);
-
- hbox98 = gtk_hbox_new (FALSE, 0);
- gtk_widget_set_name (hbox98, "hbox98");
- gtk_widget_show (hbox98);
- gtk_box_pack_start (GTK_BOX (vbox65), hbox98, TRUE, TRUE, 0);
-
- image865 = create_pixmap (icon_legend, "pkg_action_available.png");
- gtk_widget_set_name (image865, "image865");
- gtk_widget_show (image865);
- gtk_box_pack_start (GTK_BOX (hbox98), image865, FALSE, TRUE, 6);
-
- label253 = gtk_label_new (_("Not Installed"));
- gtk_widget_set_name (label253, "label253");
- gtk_widget_show (label253);
- gtk_box_pack_start (GTK_BOX (hbox98), label253, FALSE, TRUE, 6);
-
- hbox109 = gtk_hbox_new (FALSE, 0);
- gtk_widget_set_name (hbox109, "hbox109");
- gtk_widget_show (hbox109);
- gtk_box_pack_start (GTK_BOX (vbox65), hbox109, TRUE, TRUE, 0);
-
- image1257 = create_pixmap (icon_legend, "pkg_action_available_excluded.png");
- gtk_widget_set_name (image1257, "image1257");
- gtk_widget_show (image1257);
- gtk_box_pack_start (GTK_BOX (hbox109), image1257, FALSE, TRUE, 6);
-
- label277 = gtk_label_new (_("Not Installed"));
- gtk_widget_set_name (label277, "label277");
- gtk_widget_show (label277);
- gtk_box_pack_start (GTK_BOX (hbox109), label277, FALSE, TRUE, 6);
-
- label280 = gtk_label_new ("/");
- gtk_widget_set_name (label280, "label280");
- gtk_widget_show (label280);
- gtk_box_pack_start (GTK_BOX (hbox109), label280, FALSE, FALSE, 0);
-
- label281 = gtk_label_new (_("Excluded"));
- gtk_widget_set_name (label281, "label281");
- gtk_widget_show (label281);
- gtk_box_pack_start (GTK_BOX (hbox109), label281, FALSE, FALSE, 6);
-
- hbox99 = gtk_hbox_new (FALSE, 0);
- gtk_widget_set_name (hbox99, "hbox99");
- gtk_widget_show (hbox99);
- gtk_box_pack_start (GTK_BOX (vbox65), hbox99, TRUE, TRUE, 0);
-
- image866 = create_pixmap (icon_legend, "pkg_action_installed.png");
- gtk_widget_set_name (image866, "image866");
- gtk_widget_show (image866);
- gtk_box_pack_start (GTK_BOX (hbox99), image866, FALSE, TRUE, 6);
-
- label254 = gtk_label_new (_("Installed"));
- gtk_widget_set_name (label254, "label254");
- gtk_widget_show (label254);
- gtk_box_pack_start (GTK_BOX (hbox99), label254, FALSE, TRUE, 6);
-
- hbox108 = gtk_hbox_new (FALSE, 0);
- gtk_widget_set_name (hbox108, "hbox108");
- gtk_widget_show (hbox108);
- gtk_box_pack_start (GTK_BOX (vbox65), hbox108, TRUE, TRUE, 0);
-
- image1256 = create_pixmap (icon_legend, "pkg_action_installed_excluded.png");
- gtk_widget_set_name (image1256, "image1256");
- gtk_widget_show (image1256);
- gtk_box_pack_start (GTK_BOX (hbox108), image1256, FALSE, TRUE, 6);
-
- label276 = gtk_label_new (_("Installed"));
- gtk_widget_set_name (label276, "label276");
- gtk_widget_show (label276);
- gtk_box_pack_start (GTK_BOX (hbox108), label276, FALSE, TRUE, 6);
-
- label278 = gtk_label_new ("/");
- gtk_widget_set_name (label278, "label278");
- gtk_widget_show (label278);
- gtk_box_pack_start (GTK_BOX (hbox108), label278, FALSE, TRUE, 0);
-
- label279 = gtk_label_new (_("Excluded"));
- gtk_widget_set_name (label279, "label279");
- gtk_widget_show (label279);
- gtk_box_pack_start (GTK_BOX (hbox108), label279, FALSE, TRUE, 6);
-
- hbox100 = gtk_hbox_new (FALSE, 0);
- gtk_widget_set_name (hbox100, "hbox100");
- gtk_widget_show (hbox100);
- gtk_box_pack_start (GTK_BOX (vbox65), hbox100, TRUE, TRUE, 0);
-
- image867 = create_pixmap (icon_legend, "pkg_action_install.png");
- gtk_widget_set_name (image867, "image867");
- gtk_widget_show (image867);
- gtk_box_pack_start (GTK_BOX (hbox100), image867, FALSE, TRUE, 6);
-
- label255 = gtk_label_new (_("To be Installed"));
- gtk_widget_set_name (label255, "label255");
- gtk_widget_show (label255);
- gtk_box_pack_start (GTK_BOX (hbox100), label255, FALSE, TRUE, 6);
-
- hbox101 = gtk_hbox_new (FALSE, 0);
- gtk_widget_set_name (hbox101, "hbox101");
- gtk_widget_show (hbox101);
- gtk_box_pack_start (GTK_BOX (vbox65), hbox101, TRUE, TRUE, 0);
-
- image868 = create_pixmap (icon_legend, "pkg_action_reinstall.png");
- gtk_widget_set_name (image868, "image868");
- gtk_widget_show (image868);
- gtk_box_pack_start (GTK_BOX (hbox101), image868, FALSE, TRUE, 6);
-
- label256 = gtk_label_new (_("To be Re-Installed"));
- gtk_widget_set_name (label256, "label256");
- gtk_widget_show (label256);
- gtk_box_pack_start (GTK_BOX (hbox101), label256, FALSE, TRUE, 6);
-
- hbox102 = gtk_hbox_new (FALSE, 0);
- gtk_widget_set_name (hbox102, "hbox102");
- gtk_widget_show (hbox102);
- gtk_box_pack_start (GTK_BOX (vbox65), hbox102, TRUE, TRUE, 0);
-
- image869 = create_pixmap (icon_legend, "pkg_action_upgrade.png");
- gtk_widget_set_name (image869, "image869");
- gtk_widget_show (image869);
- gtk_box_pack_start (GTK_BOX (hbox102), image869, FALSE, TRUE, 6);
-
- label257 = gtk_label_new (_("To be Upgraded"));
- gtk_widget_set_name (label257, "label257");
- gtk_widget_show (label257);
- gtk_box_pack_start (GTK_BOX (hbox102), label257, FALSE, TRUE, 6);
-
- hbox103 = gtk_hbox_new (FALSE, 0);
- gtk_widget_set_name (hbox103, "hbox103");
- gtk_widget_show (hbox103);
- gtk_box_pack_start (GTK_BOX (vbox65), hbox103, TRUE, TRUE, 0);
-
- image870 = create_pixmap (icon_legend, "pkg_action_remove.png");
- gtk_widget_set_name (image870, "image870");
- gtk_widget_show (image870);
- gtk_box_pack_start (GTK_BOX (hbox103), image870, FALSE, TRUE, 6);
-
- label258 = gtk_label_new (_("To be Removed"));
- gtk_widget_set_name (label258, "label258");
- gtk_widget_show (label258);
- gtk_box_pack_start (GTK_BOX (hbox103), label258, FALSE, TRUE, 6);
-
- hbox104 = gtk_hbox_new (FALSE, 0);
- gtk_widget_set_name (hbox104, "hbox104");
- gtk_widget_show (hbox104);
- gtk_box_pack_start (GTK_BOX (vbox65), hbox104, TRUE, TRUE, 0);
-
- image871 = create_pixmap (icon_legend, "pkg_action_downgrade.png");
- gtk_widget_set_name (image871, "image871");
- gtk_widget_show (image871);
- gtk_box_pack_start (GTK_BOX (hbox104), image871, FALSE, TRUE, 6);
-
- label259 = gtk_label_new (_("To be Downgraded"));
- gtk_widget_set_name (label259, "label259");
- gtk_widget_show (label259);
- gtk_box_pack_start (GTK_BOX (hbox104), label259, FALSE, TRUE, 6);
-
- dialog_action_area4 = GTK_DIALOG (icon_legend)->action_area;
- gtk_widget_set_name (dialog_action_area4, "dialog_action_area4");
- gtk_widget_show (dialog_action_area4);
- gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area4), GTK_BUTTONBOX_END);
-
- closebutton2 = gtk_button_new_from_stock ("gtk-close");
- gtk_widget_set_name (closebutton2, "closebutton2");
- gtk_widget_show (closebutton2);
- gtk_dialog_add_action_widget (GTK_DIALOG (icon_legend), closebutton2, GTK_RESPONSE_CLOSE);
- GTK_WIDGET_SET_FLAGS (closebutton2, GTK_CAN_DEFAULT);
-
- g_signal_connect_swapped ((gpointer) closebutton2, "clicked",
- G_CALLBACK (gtk_widget_destroy),
- GTK_OBJECT (icon_legend));
-
- /* Store pointers to all widgets, for use by lookup_widget(). */
- GLADE_HOOKUP_OBJECT_NO_REF (icon_legend, icon_legend, "icon_legend");
- GLADE_HOOKUP_OBJECT_NO_REF (icon_legend, dialog_vbox4, "dialog_vbox4");
- GLADE_HOOKUP_OBJECT (icon_legend, vbox65, "vbox65");
- GLADE_HOOKUP_OBJECT (icon_legend, label252, "label252");
- GLADE_HOOKUP_OBJECT (icon_legend, label260, "label260");
- GLADE_HOOKUP_OBJECT (icon_legend, hbox98, "hbox98");
- GLADE_HOOKUP_OBJECT (icon_legend, image865, "image865");
- GLADE_HOOKUP_OBJECT (icon_legend, label253, "label253");
- GLADE_HOOKUP_OBJECT (icon_legend, hbox109, "hbox109");
- GLADE_HOOKUP_OBJECT (icon_legend, image1257, "image1257");
- GLADE_HOOKUP_OBJECT (icon_legend, label277, "label277");
- GLADE_HOOKUP_OBJECT (icon_legend, label280, "label280");
- GLADE_HOOKUP_OBJECT (icon_legend, label281, "label281");
- GLADE_HOOKUP_OBJECT (icon_legend, hbox99, "hbox99");
- GLADE_HOOKUP_OBJECT (icon_legend, image866, "image866");
- GLADE_HOOKUP_OBJECT (icon_legend, label254, "label254");
- GLADE_HOOKUP_OBJECT (icon_legend, hbox108, "hbox108");
- GLADE_HOOKUP_OBJECT (icon_legend, image1256, "image1256");
- GLADE_HOOKUP_OBJECT (icon_legend, label276, "label276");
- GLADE_HOOKUP_OBJECT (icon_legend, label278, "label278");
- GLADE_HOOKUP_OBJECT (icon_legend, label279, "label279");
- GLADE_HOOKUP_OBJECT (icon_legend, hbox100, "hbox100");
- GLADE_HOOKUP_OBJECT (icon_legend, image867, "image867");
- GLADE_HOOKUP_OBJECT (icon_legend, label255, "label255");
- GLADE_HOOKUP_OBJECT (icon_legend, hbox101, "hbox101");
- GLADE_HOOKUP_OBJECT (icon_legend, image868, "image868");
- GLADE_HOOKUP_OBJECT (icon_legend, label256, "label256");
- GLADE_HOOKUP_OBJECT (icon_legend, hbox102, "hbox102");
- GLADE_HOOKUP_OBJECT (icon_legend, image869, "image869");
- GLADE_HOOKUP_OBJECT (icon_legend, label257, "label257");
- GLADE_HOOKUP_OBJECT (icon_legend, hbox103, "hbox103");
- GLADE_HOOKUP_OBJECT (icon_legend, image870, "image870");
- GLADE_HOOKUP_OBJECT (icon_legend, label258, "label258");
- GLADE_HOOKUP_OBJECT (icon_legend, hbox104, "hbox104");
- GLADE_HOOKUP_OBJECT (icon_legend, image871, "image871");
- GLADE_HOOKUP_OBJECT (icon_legend, label259, "label259");
- GLADE_HOOKUP_OBJECT_NO_REF (icon_legend, dialog_action_area4, "dialog_action_area4");
- GLADE_HOOKUP_OBJECT (icon_legend, closebutton2, "closebutton2");
-
- return icon_legend;
-}
-
-GtkWidget*
-create_pkgtools_progress_window (void)
-{
- GtkWidget *pkgtools_progress_window;
- GdkPixbuf *pkgtools_progress_window_icon_pixbuf;
- GtkWidget *vbox68;
- GtkWidget *progress_progressbar;
- GtkWidget *progress_action;
- GtkWidget *progress_message;
- GtkWidget *progress_package_description;
-
- pkgtools_progress_window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
- gtk_widget_set_name (pkgtools_progress_window, "pkgtools_progress_window");
- gtk_container_set_border_width (GTK_CONTAINER (pkgtools_progress_window), 12);
- gtk_window_set_title (GTK_WINDOW (pkgtools_progress_window), _("working"));
- gtk_window_set_position (GTK_WINDOW (pkgtools_progress_window), GTK_WIN_POS_CENTER);
- gtk_window_set_modal (GTK_WINDOW (pkgtools_progress_window), TRUE);
- pkgtools_progress_window_icon_pixbuf = create_pixbuf ("gslapt.png");
- if (pkgtools_progress_window_icon_pixbuf)
- {
- gtk_window_set_icon (GTK_WINDOW (pkgtools_progress_window), pkgtools_progress_window_icon_pixbuf);
- g_object_unref (pkgtools_progress_window_icon_pixbuf);
- }
- gtk_window_set_gravity (GTK_WINDOW (pkgtools_progress_window), GDK_GRAVITY_CENTER);
-
- vbox68 = gtk_vbox_new (FALSE, 2);
- gtk_widget_set_name (vbox68, "vbox68");
- gtk_widget_show (vbox68);
- gtk_container_add (GTK_CONTAINER (pkgtools_progress_window), vbox68);
- gtk_container_set_border_width (GTK_CONTAINER (vbox68), 6);
-
- progress_progressbar = gtk_progress_bar_new ();
- gtk_widget_set_name (progress_progressbar, "progress_progressbar");
- gtk_widget_show (progress_progressbar);
- gtk_box_pack_start (GTK_BOX (vbox68), progress_progressbar, FALSE, TRUE, 0);
- gtk_progress_bar_set_text (GTK_PROGRESS_BAR (progress_progressbar), _("total progress"));
-
- progress_action = gtk_label_new ("");
- gtk_widget_set_name (progress_action, "progress_action");
- gtk_widget_show (progress_action);
- gtk_box_pack_start (GTK_BOX (vbox68), progress_action, FALSE, FALSE, 2);
-
- progress_message = gtk_label_new ("");
- gtk_widget_set_name (progress_message, "progress_message");
- gtk_widget_show (progress_message);
- gtk_box_pack_start (GTK_BOX (vbox68), progress_message, FALSE, FALSE, 6);
-
- progress_package_description = gtk_label_new ("");
- gtk_widget_set_name (progress_package_description, "progress_package_description");
- gtk_widget_show (progress_package_description);
- gtk_box_pack_start (GTK_BOX (vbox68), progress_package_description, FALSE, FALSE, 6);
- gtk_misc_set_alignment (GTK_MISC (progress_package_description), 0, 0);
-
- g_signal_connect ((gpointer) pkgtools_progress_window, "delete_event",
- G_CALLBACK (gtk_true),
- NULL);
-
- /* Store pointers to all widgets, for use by lookup_widget(). */
- GLADE_HOOKUP_OBJECT_NO_REF (pkgtools_progress_window, pkgtools_progress_window, "pkgtools_progress_window");
- GLADE_HOOKUP_OBJECT (pkgtools_progress_window, vbox68, "vbox68");
- GLADE_HOOKUP_OBJECT (pkgtools_progress_window, progress_progressbar, "progress_progressbar");
- GLADE_HOOKUP_OBJECT (pkgtools_progress_window, progress_action, "progress_action");
- GLADE_HOOKUP_OBJECT (pkgtools_progress_window, progress_message, "progress_message");
- GLADE_HOOKUP_OBJECT (pkgtools_progress_window, progress_package_description, "progress_package_description");
-
- return pkgtools_progress_window;
-}
-
-GtkWidget*
-create_repositories_changed (void)
-{
- GtkWidget *repositories_changed;
- GdkPixbuf *repositories_changed_icon_pixbuf;
- GtkWidget *dialog_vbox5;
- GtkWidget *hbox114;
- GtkWidget *image1299;
- GtkWidget *vbox73;
- GtkWidget *label287;
- GtkWidget *label288;
- GtkWidget *dialog_action_area5;
- GtkWidget *button5;
- GtkWidget *button6;
-
- repositories_changed = gtk_dialog_new ();
- gtk_widget_set_name (repositories_changed, "repositories_changed");
- gtk_window_set_title (GTK_WINDOW (repositories_changed), _("Repositories changed"));
- gtk_window_set_modal (GTK_WINDOW (repositories_changed), TRUE);
- repositories_changed_icon_pixbuf = create_pixbuf ("gslapt.png");
- if (repositories_changed_icon_pixbuf)
- {
- gtk_window_set_icon (GTK_WINDOW (repositories_changed), repositories_changed_icon_pixbuf);
- g_object_unref (repositories_changed_icon_pixbuf);
- }
- gtk_window_set_type_hint (GTK_WINDOW (repositories_changed), GDK_WINDOW_TYPE_HINT_DIALOG);
-
- dialog_vbox5 = GTK_DIALOG (repositories_changed)->vbox;
- gtk_widget_set_name (dialog_vbox5, "dialog_vbox5");
- gtk_widget_show (dialog_vbox5);
-
- hbox114 = gtk_hbox_new (FALSE, 6);
- gtk_widget_set_name (hbox114, "hbox114");
- gtk_widget_show (hbox114);
- gtk_box_pack_start (GTK_BOX (dialog_vbox5), hbox114, TRUE, TRUE, 6);
- gtk_container_set_border_width (GTK_CONTAINER (hbox114), 2);
-
- image1299 = gtk_image_new_from_stock ("gtk-dialog-info", GTK_ICON_SIZE_DIALOG);
- gtk_widget_set_name (image1299, "image1299");
- gtk_widget_show (image1299);
- gtk_box_pack_start (GTK_BOX (hbox114), image1299, TRUE, TRUE, 6);
- gtk_misc_set_alignment (GTK_MISC (image1299), 0.5, 0.2);
-
- vbox73 = gtk_vbox_new (FALSE, 6);
- gtk_widget_set_name (vbox73, "vbox73");
- gtk_widget_show (vbox73);
- gtk_box_pack_start (GTK_BOX (hbox114), vbox73, TRUE, TRUE, 0);
- gtk_container_set_border_width (GTK_CONTAINER (vbox73), 6);
-
- label287 = gtk_label_new (_("<span size=\"large\" weight=\"bold\">Repositories changed</span>"));
- gtk_widget_set_name (label287, "label287");
- gtk_widget_show (label287);
- gtk_box_pack_start (GTK_BOX (vbox73), label287, FALSE, FALSE, 6);
- gtk_label_set_use_markup (GTK_LABEL (label287), TRUE);
- gtk_misc_set_alignment (GTK_MISC (label287), 0, 0.5);
-
- label288 = gtk_label_new (_("You need to reload the package list from the sources you have listed. Do you want to do this now?"));
- gtk_widget_set_name (label288, "label288");
- gtk_widget_show (label288);
- gtk_box_pack_start (GTK_BOX (vbox73), label288, TRUE, TRUE, 6);
- gtk_label_set_use_markup (GTK_LABEL (label288), TRUE);
- gtk_label_set_line_wrap (GTK_LABEL (label288), TRUE);
- gtk_misc_set_alignment (GTK_MISC (label288), 0, 0);
-
- dialog_action_area5 = GTK_DIALOG (repositories_changed)->action_area;
- gtk_widget_set_name (dialog_action_area5, "dialog_action_area5");
- gtk_widget_show (dialog_action_area5);
- gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area5), GTK_BUTTONBOX_END);
-
- button5 = gtk_button_new_from_stock ("gtk-no");
- gtk_widget_set_name (button5, "button5");
- gtk_widget_show (button5);
- gtk_dialog_add_action_widget (GTK_DIALOG (repositories_changed), button5, GTK_RESPONSE_NO);
- GTK_WIDGET_SET_FLAGS (button5, GTK_CAN_DEFAULT);
-
- button6 = gtk_button_new_from_stock ("gtk-yes");
- gtk_widget_set_name (button6, "button6");
- gtk_widget_show (button6);
- gtk_dialog_add_action_widget (GTK_DIALOG (repositories_changed), button6, GTK_RESPONSE_YES);
- GTK_WIDGET_SET_FLAGS (button6, GTK_CAN_DEFAULT);
-
- g_signal_connect_swapped ((gpointer) button5, "clicked",
- G_CALLBACK (gtk_widget_destroy),
- GTK_OBJECT (repositories_changed));
- g_signal_connect_swapped ((gpointer) button6, "clicked",
- G_CALLBACK (repositories_changed_callback),
- GTK_OBJECT (repositories_changed));
-
- /* Store pointers to all widgets, for use by lookup_widget(). */
- GLADE_HOOKUP_OBJECT_NO_REF (repositories_changed, repositories_changed, "repositories_changed");
- GLADE_HOOKUP_OBJECT_NO_REF (repositories_changed, dialog_vbox5, "dialog_vbox5");
- GLADE_HOOKUP_OBJECT (repositories_changed, hbox114, "hbox114");
- GLADE_HOOKUP_OBJECT (repositories_changed, image1299, "image1299");
- GLADE_HOOKUP_OBJECT (repositories_changed, vbox73, "vbox73");
- GLADE_HOOKUP_OBJECT (repositories_changed, label287, "label287");
- GLADE_HOOKUP_OBJECT (repositories_changed, label288, "label288");
- GLADE_HOOKUP_OBJECT_NO_REF (repositories_changed, dialog_action_area5, "dialog_action_area5");
- GLADE_HOOKUP_OBJECT (repositories_changed, button5, "button5");
- GLADE_HOOKUP_OBJECT (repositories_changed, button6, "button6");
-
- return repositories_changed;
-}
-
-GtkWidget*
-create_dep_error_dialog (void)
-{
- GtkWidget *dep_error_dialog;
- GdkPixbuf *dep_error_dialog_icon_pixbuf;
- GtkWidget *dialog_vbox6;
- GtkWidget *hbox113;
- GtkWidget *image1261;
- GtkWidget *vbox72;
- GtkWidget *label285;
- GtkWidget *dep_error_label;
- GtkWidget *scrolledwindow22;
- GtkWidget *dep_error_text;
- GtkWidget *label286;
- GtkWidget *dep_error_install_anyway_warning_label;
- GtkWidget *label284;
- GtkWidget *dialog_action_area6;
- GtkWidget *dep_error_cancel_button;
- GtkWidget *dep_error_install_button;
-
- dep_error_dialog = gtk_dialog_new ();
- gtk_widget_set_name (dep_error_dialog, "dep_error_dialog");
- gtk_container_set_border_width (GTK_CONTAINER (dep_error_dialog), 2);
- gtk_window_set_position (GTK_WINDOW (dep_error_dialog), GTK_WIN_POS_CENTER);
- gtk_window_set_modal (GTK_WINDOW (dep_error_dialog), TRUE);
- dep_error_dialog_icon_pixbuf = create_pixbuf ("gslapt.png");
- if (dep_error_dialog_icon_pixbuf)
- {
- gtk_window_set_icon (GTK_WINDOW (dep_error_dialog), dep_error_dialog_icon_pixbuf);
- g_object_unref (dep_error_dialog_icon_pixbuf);
- }
- gtk_window_set_type_hint (GTK_WINDOW (dep_error_dialog), GDK_WINDOW_TYPE_HINT_DIALOG);
- gtk_window_set_gravity (GTK_WINDOW (dep_error_dialog), GDK_GRAVITY_CENTER);
-
- dialog_vbox6 = GTK_DIALOG (dep_error_dialog)->vbox;
- gtk_widget_set_name (dialog_vbox6, "dialog_vbox6");
- gtk_widget_show (dialog_vbox6);
-
- hbox113 = gtk_hbox_new (FALSE, 6);
- gtk_widget_set_name (hbox113, "hbox113");
- gtk_widget_show (hbox113);
- gtk_box_pack_start (GTK_BOX (dialog_vbox6), hbox113, TRUE, TRUE, 0);
-
- image1261 = gtk_image_new_from_stock ("gtk-dialog-error", GTK_ICON_SIZE_DIALOG);
- gtk_widget_set_name (image1261, "image1261");
- gtk_widget_show (image1261);
- gtk_box_pack_start (GTK_BOX (hbox113), image1261, TRUE, TRUE, 6);
- gtk_misc_set_alignment (GTK_MISC (image1261), 0.5, 0.2);
-
- vbox72 = gtk_vbox_new (FALSE, 0);
- gtk_widget_set_name (vbox72, "vbox72");
- gtk_widget_show (vbox72);
- gtk_box_pack_start (GTK_BOX (hbox113), vbox72, TRUE, TRUE, 0);
-
- label285 = gtk_label_new ("");
- gtk_widget_set_name (label285, "label285");
- gtk_widget_show (label285);
- gtk_box_pack_start (GTK_BOX (vbox72), label285, FALSE, FALSE, 0);
-
- dep_error_label = gtk_label_new ("");
- gtk_widget_set_name (dep_error_label, "dep_error_label");
- gtk_widget_show (dep_error_label);
- gtk_box_pack_start (GTK_BOX (vbox72), dep_error_label, FALSE, TRUE, 0);
- gtk_label_set_use_markup (GTK_LABEL (dep_error_label), TRUE);
- gtk_label_set_line_wrap (GTK_LABEL (dep_error_label), TRUE);
- gtk_misc_set_alignment (GTK_MISC (dep_error_label), 0, 0);
-
- scrolledwindow22 = gtk_scrolled_window_new (NULL, NULL);
- gtk_widget_set_name (scrolledwindow22, "scrolledwindow22");
- gtk_widget_show (scrolledwindow22);
- gtk_box_pack_start (GTK_BOX (vbox72), scrolledwindow22, TRUE, TRUE, 0);
- gtk_container_set_border_width (GTK_CONTAINER (scrolledwindow22), 2);
- gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow22), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
-
- dep_error_text = gtk_text_view_new ();
- gtk_widget_set_name (dep_error_text, "dep_error_text");
- gtk_widget_show (dep_error_text);
- gtk_container_add (GTK_CONTAINER (scrolledwindow22), dep_error_text);
- gtk_container_set_border_width (GTK_CONTAINER (dep_error_text), 2);
- gtk_text_view_set_accepts_tab (GTK_TEXT_VIEW (dep_error_text), FALSE);
- gtk_text_view_set_cursor_visible (GTK_TEXT_VIEW (dep_error_text), FALSE);
-
- label286 = gtk_label_new ("");
- gtk_widget_set_name (label286, "label286");
- gtk_widget_show (label286);
- gtk_box_pack_start (GTK_BOX (vbox72), label286, FALSE, FALSE, 0);
-
- dep_error_install_anyway_warning_label = gtk_label_new ("");
- gtk_widget_set_name (dep_error_install_anyway_warning_label, "dep_error_install_anyway_warning_label");
- gtk_widget_show (dep_error_install_anyway_warning_label);
- gtk_box_pack_start (GTK_BOX (vbox72), dep_error_install_anyway_warning_label, FALSE, TRUE, 0);
- gtk_label_set_use_markup (GTK_LABEL (dep_error_install_anyway_warning_label), TRUE);
- gtk_label_set_line_wrap (GTK_LABEL (dep_error_install_anyway_warning_label), TRUE);
- gtk_misc_set_alignment (GTK_MISC (dep_error_install_anyway_warning_label), 0, 0);
-
- label284 = gtk_label_new ("");
- gtk_widget_set_name (label284, "label284");
- gtk_widget_show (label284);
- gtk_box_pack_start (GTK_BOX (vbox72), label284, FALSE, FALSE, 0);
- gtk_misc_set_alignment (GTK_MISC (label284), 0, 0);
-
- dialog_action_area6 = GTK_DIALOG (dep_error_dialog)->action_area;
- gtk_widget_set_name (dialog_action_area6, "dialog_action_area6");
- gtk_widget_show (dialog_action_area6);
- gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area6), GTK_BUTTONBOX_END);
-
- dep_error_cancel_button = gtk_button_new_from_stock ("gtk-cancel");
- gtk_widget_set_name (dep_error_cancel_button, "dep_error_cancel_button");
- gtk_widget_show (dep_error_cancel_button);
- gtk_dialog_add_action_widget (GTK_DIALOG (dep_error_dialog), dep_error_cancel_button, GTK_RESPONSE_CANCEL);
- GTK_WIDGET_SET_FLAGS (dep_error_cancel_button, GTK_CAN_DEFAULT);
-
- dep_error_install_button = gtk_button_new_from_stock ("gtk-ok");
- gtk_widget_set_name (dep_error_install_button, "dep_error_install_button");
- gtk_widget_show (dep_error_install_button);
- gtk_dialog_add_action_widget (GTK_DIALOG (dep_error_dialog), dep_error_install_button, GTK_RESPONSE_OK);
- GTK_WIDGET_SET_FLAGS (dep_error_install_button, GTK_CAN_DEFAULT);
-
- /* Store pointers to all widgets, for use by lookup_widget(). */
- GLADE_HOOKUP_OBJECT_NO_REF (dep_error_dialog, dep_error_dialog, "dep_error_dialog");
- GLADE_HOOKUP_OBJECT_NO_REF (dep_error_dialog, dialog_vbox6, "dialog_vbox6");
- GLADE_HOOKUP_OBJECT (dep_error_dialog, hbox113, "hbox113");
- GLADE_HOOKUP_OBJECT (dep_error_dialog, image1261, "image1261");
- GLADE_HOOKUP_OBJECT (dep_error_dialog, vbox72, "vbox72");
- GLADE_HOOKUP_OBJECT (dep_error_dialog, label285, "label285");
- GLADE_HOOKUP_OBJECT (dep_error_dialog, dep_error_label, "dep_error_label");
- GLADE_HOOKUP_OBJECT (dep_error_dialog, scrolledwindow22, "scrolledwindow22");
- GLADE_HOOKUP_OBJECT (dep_error_dialog, dep_error_text, "dep_error_text");
- GLADE_HOOKUP_OBJECT (dep_error_dialog, label286, "label286");
- GLADE_HOOKUP_OBJECT (dep_error_dialog, dep_error_install_anyway_warning_label, "dep_error_install_anyway_warning_label");
- GLADE_HOOKUP_OBJECT (dep_error_dialog, label284, "label284");
- GLADE_HOOKUP_OBJECT_NO_REF (dep_error_dialog, dialog_action_area6, "dialog_action_area6");
- GLADE_HOOKUP_OBJECT (dep_error_dialog, dep_error_cancel_button, "dep_error_cancel_button");
- GLADE_HOOKUP_OBJECT (dep_error_dialog, dep_error_install_button, "dep_error_install_button");
-
- gtk_widget_grab_focus (dep_error_cancel_button);
- gtk_widget_grab_default (dep_error_cancel_button);
- return dep_error_dialog;
-}
-
-GtkWidget*
-create_source_failed_dialog (void)
-{
- GtkWidget *source_failed_dialog;
- GdkPixbuf *source_failed_dialog_icon_pixbuf;
- GtkWidget *dialog_vbox7;
- GtkWidget *hbox115;
- GtkWidget *image1300;
- GtkWidget *vbox74;
- GtkWidget *failed_source_label;
- GtkWidget *label290;
- GtkWidget *dialog_action_area7;
- GtkWidget *cancelbutton1;
- GtkWidget *okbutton3;
-
- source_failed_dialog = gtk_dialog_new ();
- gtk_widget_set_name (source_failed_dialog, "source_failed_dialog");
- gtk_window_set_title (GTK_WINDOW (source_failed_dialog), _("Source failed"));
- source_failed_dialog_icon_pixbuf = create_pixbuf ("gslapt.png");
- if (source_failed_dialog_icon_pixbuf)
- {
- gtk_window_set_icon (GTK_WINDOW (source_failed_dialog), source_failed_dialog_icon_pixbuf);
- g_object_unref (source_failed_dialog_icon_pixbuf);
- }
- gtk_window_set_type_hint (GTK_WINDOW (source_failed_dialog), GDK_WINDOW_TYPE_HINT_DIALOG);
-
- dialog_vbox7 = GTK_DIALOG (source_failed_dialog)->vbox;
- gtk_widget_set_name (dialog_vbox7, "dialog_vbox7");
- gtk_widget_show (dialog_vbox7);
-
- hbox115 = gtk_hbox_new (FALSE, 6);
- gtk_widget_set_name (hbox115, "hbox115");
- gtk_widget_show (hbox115);
- gtk_box_pack_start (GTK_BOX (dialog_vbox7), hbox115, TRUE, TRUE, 0);
- gtk_container_set_border_width (GTK_CONTAINER (hbox115), 2);
-
- image1300 = gtk_image_new_from_stock ("gtk-dialog-error", GTK_ICON_SIZE_DIALOG);
- gtk_widget_set_name (image1300, "image1300");
- gtk_widget_show (image1300);
- gtk_box_pack_start (GTK_BOX (hbox115), image1300, TRUE, TRUE, 6);
- gtk_misc_set_alignment (GTK_MISC (image1300), 0.5, 0.2);
-
- vbox74 = gtk_vbox_new (FALSE, 6);
- gtk_widget_set_name (vbox74, "vbox74");
- gtk_widget_show (vbox74);
- gtk_box_pack_start (GTK_BOX (hbox115), vbox74, TRUE, TRUE, 0);
- gtk_container_set_border_width (GTK_CONTAINER (vbox74), 6);
-
- failed_source_label = gtk_label_new ("");
- gtk_widget_set_name (failed_source_label, "failed_source_label");
- gtk_widget_show (failed_source_label);
- gtk_box_pack_start (GTK_BOX (vbox74), failed_source_label, FALSE, FALSE, 6);
- gtk_label_set_use_markup (GTK_LABEL (failed_source_label), TRUE);
- gtk_misc_set_alignment (GTK_MISC (failed_source_label), 0, 0.5);
-
- label290 = gtk_label_new (_("This package source failed or is not available. Do you want to disable this source and continue anyway?"));
- gtk_widget_set_name (label290, "label290");
- gtk_widget_show (label290);
- gtk_box_pack_start (GTK_BOX (vbox74), label290, TRUE, TRUE, 6);
- gtk_label_set_use_markup (GTK_LABEL (label290), TRUE);
- gtk_label_set_line_wrap (GTK_LABEL (label290), TRUE);
- gtk_misc_set_alignment (GTK_MISC (label290), 0, 0);
-
- dialog_action_area7 = GTK_DIALOG (source_failed_dialog)->action_area;
- gtk_widget_set_name (dialog_action_area7, "dialog_action_area7");
- gtk_widget_show (dialog_action_area7);
- gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area7), GTK_BUTTONBOX_END);
-
- cancelbutton1 = gtk_button_new_from_stock ("gtk-no");
- gtk_widget_set_name (cancelbutton1, "cancelbutton1");
- gtk_widget_show (cancelbutton1);
- gtk_dialog_add_action_widget (GTK_DIALOG (source_failed_dialog), cancelbutton1, GTK_RESPONSE_NO);
- GTK_WIDGET_SET_FLAGS (cancelbutton1, GTK_CAN_DEFAULT);
-
- okbutton3 = gtk_button_new_from_stock ("gtk-yes");
- gtk_widget_set_name (okbutton3, "okbutton3");
- gtk_widget_show (okbutton3);
- gtk_dialog_add_action_widget (GTK_DIALOG (source_failed_dialog), okbutton3, GTK_RESPONSE_YES);
- GTK_WIDGET_SET_FLAGS (okbutton3, GTK_CAN_DEFAULT);
-
- /* Store pointers to all widgets, for use by lookup_widget(). */
- GLADE_HOOKUP_OBJECT_NO_REF (source_failed_dialog, source_failed_dialog, "source_failed_dialog");
- GLADE_HOOKUP_OBJECT_NO_REF (source_failed_dialog, dialog_vbox7, "dialog_vbox7");
- GLADE_HOOKUP_OBJECT (source_failed_dialog, hbox115, "hbox115");
- GLADE_HOOKUP_OBJECT (source_failed_dialog, image1300, "image1300");
- GLADE_HOOKUP_OBJECT (source_failed_dialog, vbox74, "vbox74");
- GLADE_HOOKUP_OBJECT (source_failed_dialog, failed_source_label, "failed_source_label");
- GLADE_HOOKUP_OBJECT (source_failed_dialog, label290, "label290");
- GLADE_HOOKUP_OBJECT_NO_REF (source_failed_dialog, dialog_action_area7, "dialog_action_area7");
- GLADE_HOOKUP_OBJECT (source_failed_dialog, cancelbutton1, "cancelbutton1");
- GLADE_HOOKUP_OBJECT (source_failed_dialog, okbutton3, "okbutton3");
-
- return source_failed_dialog;
-}
-
-GtkWidget*
-create_changelog_window (void)
-{
- GtkWidget *changelog_window;
- GdkPixbuf *changelog_window_icon_pixbuf;
- GtkWidget *vbox78;
- GtkWidget *changelog_notebook;
- GtkWidget *hbuttonbox3;
- GtkWidget *button12;
-
- changelog_window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
- gtk_widget_set_name (changelog_window, "changelog_window");
- gtk_window_set_title (GTK_WINDOW (changelog_window), _("ChangeLogs"));
- gtk_window_set_default_size (GTK_WINDOW (changelog_window), 640, 480);
- changelog_window_icon_pixbuf = create_pixbuf ("gslapt.png");
- if (changelog_window_icon_pixbuf)
- {
- gtk_window_set_icon (GTK_WINDOW (changelog_window), changelog_window_icon_pixbuf);
- g_object_unref (changelog_window_icon_pixbuf);
- }
-
- vbox78 = gtk_vbox_new (FALSE, 0);
- gtk_widget_set_name (vbox78, "vbox78");
- gtk_widget_show (vbox78);
- gtk_container_add (GTK_CONTAINER (changelog_window), vbox78);
-
- changelog_notebook = gtk_notebook_new ();
- gtk_widget_set_name (changelog_notebook, "changelog_notebook");
- gtk_widget_show (changelog_notebook);
- gtk_box_pack_start (GTK_BOX (vbox78), changelog_notebook, TRUE, TRUE, 6);
-
- hbuttonbox3 = gtk_hbutton_box_new ();
- gtk_widget_set_name (hbuttonbox3, "hbuttonbox3");
- gtk_widget_show (hbuttonbox3);
- gtk_box_pack_start (GTK_BOX (vbox78), hbuttonbox3, FALSE, TRUE, 6);
- gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox3), GTK_BUTTONBOX_END);
-
- button12 = gtk_button_new_from_stock ("gtk-close");
- gtk_widget_set_name (button12, "button12");
- gtk_widget_show (button12);
- gtk_container_add (GTK_CONTAINER (hbuttonbox3), button12);
- GTK_WIDGET_SET_FLAGS (button12, GTK_CAN_DEFAULT);
-
- g_signal_connect ((gpointer) changelog_window, "destroy_event",
- G_CALLBACK (gtk_widget_destroy),
- NULL);
- g_signal_connect ((gpointer) changelog_window, "configure-event",
- G_CALLBACK (gslapt_window_resized),
- NULL);
- g_signal_connect_swapped ((gpointer) button12, "clicked",
- G_CALLBACK (gtk_widget_destroy),
- GTK_OBJECT (changelog_window));
-
- /* Store pointers to all widgets, for use by lookup_widget(). */
- GLADE_HOOKUP_OBJECT_NO_REF (changelog_window, changelog_window, "changelog_window");
- GLADE_HOOKUP_OBJECT (changelog_window, vbox78, "vbox78");
- GLADE_HOOKUP_OBJECT (changelog_window, changelog_notebook, "changelog_notebook");
- GLADE_HOOKUP_OBJECT (changelog_window, hbuttonbox3, "hbuttonbox3");
- GLADE_HOOKUP_OBJECT (changelog_window, button12, "button12");
-
- return changelog_window;
-}
-
-GtkWidget*
-create_source_window (void)
-{
- GtkWidget *source_window;
- GdkPixbuf *source_window_icon_pixbuf;
- GtkWidget *vbox79;
- GtkWidget *table6;
- GtkWidget *priority_label;
- GtkWidget *source_label;
- GtkWidget *source_entry;
- GtkWidget *source_priority;
- GtkWidget *hbuttonbox4;
- GtkWidget *button13;
- GtkWidget *button14;
-
- source_window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
- gtk_widget_set_name (source_window, "source_window");
- gtk_container_set_border_width (GTK_CONTAINER (source_window), 6);
- gtk_window_set_title (GTK_WINDOW (source_window), _("Package Source"));
- gtk_window_set_position (GTK_WINDOW (source_window), GTK_WIN_POS_CENTER);
- gtk_window_set_modal (GTK_WINDOW (source_window), TRUE);
- source_window_icon_pixbuf = create_pixbuf ("gslapt.png");
- if (source_window_icon_pixbuf)
- {
- gtk_window_set_icon (GTK_WINDOW (source_window), source_window_icon_pixbuf);
- g_object_unref (source_window_icon_pixbuf);
- }
-
- vbox79 = gtk_vbox_new (FALSE, 0);
- gtk_widget_set_name (vbox79, "vbox79");
- gtk_widget_show (vbox79);
- gtk_container_add (GTK_CONTAINER (source_window), vbox79);
- gtk_container_set_border_width (GTK_CONTAINER (vbox79), 6);
-
- table6 = gtk_table_new (2, 2, FALSE);
- gtk_widget_set_name (table6, "table6");
- gtk_widget_show (table6);
- gtk_box_pack_start (GTK_BOX (vbox79), table6, TRUE, TRUE, 6);
- gtk_container_set_border_width (GTK_CONTAINER (table6), 6);
- gtk_table_set_row_spacings (GTK_TABLE (table6), 6);
- gtk_table_set_col_spacings (GTK_TABLE (table6), 6);
-
- priority_label = gtk_label_new (_("<b>Priority:</b>"));
- gtk_widget_set_name (priority_label, "priority_label");
- gtk_widget_show (priority_label);
- gtk_table_attach (GTK_TABLE (table6), priority_label, 0, 1, 1, 2,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (GTK_FILL), 6, 0);
- gtk_label_set_use_markup (GTK_LABEL (priority_label), TRUE);
- gtk_misc_set_alignment (GTK_MISC (priority_label), 0, 0.5);
-
- source_label = gtk_label_new (_("<b>Source:</b>"));
- gtk_widget_set_name (source_label, "source_label");
- gtk_widget_show (source_label);
- gtk_table_attach (GTK_TABLE (table6), source_label, 0, 1, 0, 1,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (GTK_FILL), 6, 0);
- gtk_label_set_use_markup (GTK_LABEL (source_label), TRUE);
- gtk_misc_set_alignment (GTK_MISC (source_label), 0, 0.5);
-
- source_entry = gtk_entry_new ();
- gtk_widget_set_name (source_entry, "source_entry");
- gtk_widget_show (source_entry);
- gtk_table_attach (GTK_TABLE (table6), source_entry, 1, 2, 0, 1,
- (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
- (GtkAttachOptions) (GTK_EXPAND), 0, 0);
- gtk_entry_set_invisible_char (GTK_ENTRY (source_entry), 9679);
- gtk_entry_set_width_chars (GTK_ENTRY (source_entry), 60);
-
- source_priority = gtk_combo_box_entry_new_text ();
- gtk_widget_set_name (source_priority, "source_priority");
- gtk_widget_show (source_priority);
- gtk_table_attach (GTK_TABLE (table6), source_priority, 1, 2, 1, 2,
- (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
- (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
- gtk_container_set_border_width (GTK_CONTAINER (source_priority), 6);
- gtk_combo_box_append_text (GTK_COMBO_BOX (source_priority), _("Default"));
- gtk_combo_box_append_text (GTK_COMBO_BOX (source_priority), _("Official"));
- gtk_combo_box_append_text (GTK_COMBO_BOX (source_priority), _("Preferred"));
- gtk_combo_box_append_text (GTK_COMBO_BOX (source_priority), _("Custom"));
-
- hbuttonbox4 = gtk_hbutton_box_new ();
- gtk_widget_set_name (hbuttonbox4, "hbuttonbox4");
- gtk_widget_show (hbuttonbox4);
- gtk_box_pack_start (GTK_BOX (vbox79), hbuttonbox4, FALSE, TRUE, 0);
- gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox4), GTK_BUTTONBOX_END);
-
- button13 = gtk_button_new_from_stock ("gtk-cancel");
- gtk_widget_set_name (button13, "button13");
- gtk_widget_show (button13);
- gtk_container_add (GTK_CONTAINER (hbuttonbox4), button13);
- GTK_WIDGET_SET_FLAGS (button13, GTK_CAN_DEFAULT);
-
- button14 = gtk_button_new_from_stock ("gtk-ok");
- gtk_widget_set_name (button14, "button14");
- gtk_widget_show (button14);
- gtk_container_add (GTK_CONTAINER (hbuttonbox4), button14);
- GTK_WIDGET_SET_FLAGS (button14, GTK_CAN_DEFAULT);
-
- g_signal_connect_swapped ((gpointer) button13, "clicked",
- G_CALLBACK (cancel_source_edit),
- GTK_OBJECT (source_window));
- g_signal_connect_swapped ((gpointer) button14, "clicked",
- G_CALLBACK (source_edit_ok),
- GTK_OBJECT (source_window));
-
- /* Store pointers to all widgets, for use by lookup_widget(). */
- GLADE_HOOKUP_OBJECT_NO_REF (source_window, source_window, "source_window");
- GLADE_HOOKUP_OBJECT (source_window, vbox79, "vbox79");
- GLADE_HOOKUP_OBJECT (source_window, table6, "table6");
- GLADE_HOOKUP_OBJECT (source_window, priority_label, "priority_label");
- GLADE_HOOKUP_OBJECT (source_window, source_label, "source_label");
- GLADE_HOOKUP_OBJECT (source_window, source_entry, "source_entry");
- GLADE_HOOKUP_OBJECT (source_window, source_priority, "source_priority");
- GLADE_HOOKUP_OBJECT (source_window, hbuttonbox4, "hbuttonbox4");
- GLADE_HOOKUP_OBJECT (source_window, button13, "button13");
- GLADE_HOOKUP_OBJECT (source_window, button14, "button14");
-
- return source_window;
-}
-
diff --git a/src/interface.h b/src/interface.h
deleted file mode 100644
index 973e397..0000000
--- a/src/interface.h
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
- * DO NOT EDIT THIS FILE - it is generated by Glade.
- */
-
-GtkWidget* create_window_preferences (void);
-GtkWidget* create_gslapt (void);
-GtkWidget* create_transaction_window (void);
-GtkWidget* create_dl_progress_window (void);
-GtkWidget* create_about (void);
-GtkWidget* create_notification (void);
-GtkWidget* create_icon_legend (void);
-GtkWidget* create_pkgtools_progress_window (void);
-GtkWidget* create_repositories_changed (void);
-GtkWidget* create_dep_error_dialog (void);
-GtkWidget* create_source_failed_dialog (void);
-GtkWidget* create_changelog_window (void);
-GtkWidget* create_source_window (void);
diff --git a/src/main.c b/src/main.c
index 9a942ff..bcd8bd5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -22,8 +22,6 @@
#include <gtk/gtk.h>
#include "callbacks.h"
-#include "interface.h"
-#include "support.h"
#include "settings.h"
#include "series.h"
@@ -31,6 +29,7 @@ slapt_rc_config *global_config; /* our config struct */
slapt_pkg_list_t *installed;
slapt_pkg_list_t *all;
GtkWidget *gslapt;
+GtkBuilder *gslapt_builder;
slapt_transaction_t *trans = NULL;
char rc_location[1024];
GslaptSettings *gslapt_settings = NULL;
@@ -71,8 +70,6 @@ int main (int argc, char *argv[]) {
gslapt_series_map = gslapt_series_map_init();
gslapt_series_map_fill(gslapt_series_map);
- add_pixmap_directory (PACKAGE_DATA_DIR "/" PACKAGE "/pixmaps");
-
for (option_index = 1; option_index < argc; ++option_index) {
if (strcmp(argv[option_index],"--upgrade") == 0) {
@@ -165,28 +162,34 @@ int main (int argc, char *argv[]) {
installed = slapt_get_installed_pkgs();
all = slapt_get_available_pkgs();
- gslapt = (GtkWidget *)create_gslapt();
+ gslapt_builder = gtk_builder_new ();
+ gtk_builder_set_translation_domain (gslapt_builder, GETTEXT_PACKAGE);
+ gslapt_load_ui (gslapt_builder, "gslapt.ui");
+
+ gslapt = GTK_WIDGET (gtk_builder_get_object (gslapt_builder, "gslapt"));
+ gtk_builder_connect_signals (gslapt_builder, NULL);
+ // g_object_unref (G_OBJECT (gslapt_builder));
completions = build_search_completions();
- gtk_entry_set_completion(GTK_ENTRY(lookup_widget(gslapt,"search_entry")),completions);
+ gtk_entry_set_completion(GTK_ENTRY(gtk_builder_get_object (gslapt_builder,"search_entry")),completions);
build_treeview_columns(
- (GtkWidget *)lookup_widget(gslapt,"pkg_listing_treeview"));
+ GTK_WIDGET(gtk_builder_get_object (gslapt_builder,"pkg_listing_treeview")));
/*
this sometimes screws up resizing of the window (why?)
g_thread_create((GThreadFunc)build_package_treeviewlist,
- (GtkWidget *)lookup_widget(gslapt,"pkg_listing_treeview"),FALSE,NULL);
+ GTK_WIDGET(gtk_builder_get_object (gslapt_builder,"pkg_listing_treeview")),FALSE,NULL);
*/
- build_package_treeviewlist((GtkWidget *)lookup_widget(gslapt,"pkg_listing_treeview"));
+ build_package_treeviewlist(GTK_WIDGET(gtk_builder_get_object (gslapt_builder,"pkg_listing_treeview")));
- bar = GTK_STATUSBAR(lookup_widget(gslapt,"bottom_statusbar"));
+ bar = GTK_STATUSBAR(gtk_builder_get_object (gslapt_builder,"bottom_statusbar"));
default_context_id = gtk_statusbar_get_context_id(bar,"default");
gtk_statusbar_push(bar,default_context_id,(gchar *)_("Ready"));
- gtk_widget_set_sensitive(lookup_widget(gslapt,
- "action_bar_execute_button"),FALSE);
- gtk_widget_set_sensitive(lookup_widget(gslapt,"execute1"),FALSE);
- gtk_widget_set_sensitive(lookup_widget(gslapt,"unmark_all1"),FALSE);
+ gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object (gslapt_builder,
+ "action_bar_execute_button")),FALSE);
+ gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object (gslapt_builder,"execute1")),FALSE);
+ gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object (gslapt_builder,"unmark_all1")),FALSE);
/* restore previous rc settings */
gslapt_settings = gslapt_read_rc();
@@ -200,10 +203,10 @@ int main (int argc, char *argv[]) {
gslapt_settings->x, gslapt_settings->y);
}
- gtk_widget_show (gslapt);
+ gtk_widget_show_all (gslapt);
if (do_upgrade == 1) {
- g_signal_emit_by_name(lookup_widget(gslapt,"action_bar_upgrade_button"),"clicked");
+ g_signal_emit_by_name(gtk_builder_get_object (gslapt_builder,"action_bar_upgrade_button"),"clicked");
} else {
if (pkg_inst_args_count > 0){
int i;
@@ -260,7 +263,7 @@ int main (int argc, char *argv[]) {
g_free(pkg_rem_args);
if ( trans->remove_pkgs->pkg_count > 0 || trans->install_pkgs->pkg_count > 0 || trans->upgrade_pkgs->pkg_count > 0) {
- g_signal_emit_by_name(lookup_widget(gslapt,"action_bar_execute_button"),"clicked");
+ g_signal_emit_by_name(gtk_builder_get_object (gslapt_builder,"action_bar_execute_button"),"clicked");
}
gdk_threads_enter();
diff --git a/src/support.c b/src/support.c
deleted file mode 100644
index f2e61b8..0000000
--- a/src/support.c
+++ /dev/null
@@ -1,144 +0,0 @@
-/*
- * DO NOT EDIT THIS FILE - it is generated by Glade.
- */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <unistd.h>
-#include <string.h>
-#include <stdio.h>
-
-#include <gtk/gtk.h>
-
-#include "support.h"
-
-GtkWidget*
-lookup_widget (GtkWidget *widget,
- const gchar *widget_name)
-{
- GtkWidget *parent, *found_widget;
-
- for (;;)
- {
- if (GTK_IS_MENU (widget))
- parent = gtk_menu_get_attach_widget (GTK_MENU (widget));
- else
- parent = gtk_widget_get_parent(widget);
- if (!parent)
- parent = (GtkWidget*) g_object_get_data (G_OBJECT (widget), "GladeParentKey");
- if (parent == NULL)
- break;
- widget = parent;
- }
-
- found_widget = (GtkWidget*) g_object_get_data (G_OBJECT (widget),
- widget_name);
- if (!found_widget)
- g_warning ("Widget not found: %s", widget_name);
- return found_widget;
-}
-
-static GList *pixmaps_directories = NULL;
-
-/* Use this function to set the directory containing installed pixmaps. */
-void
-add_pixmap_directory (const gchar *directory)
-{
- pixmaps_directories = g_list_prepend (pixmaps_directories,
- g_strdup (directory));
-}
-
-/* This is an internally used function to find pixmap files. */
-static gchar*
-find_pixmap_file (const gchar *filename)
-{
- GList *elem;
-
- /* We step through each of the pixmaps directory to find it. */
- elem = pixmaps_directories;
- while (elem)
- {
- gchar *pathname = g_strdup_printf ("%s%s%s", (gchar*)elem->data,
- G_DIR_SEPARATOR_S, filename);
- if (g_file_test (pathname, G_FILE_TEST_EXISTS))
- return pathname;
- g_free (pathname);
- elem = elem->next;
- }
- return NULL;
-}
-
-/* This is an internally used function to create pixmaps. */
-GtkWidget*
-create_pixmap (GtkWidget *widget,
- const gchar *filename)
-{
- gchar *pathname = NULL;
- GtkWidget *pixmap;
-
- if (!filename || !filename[0])
- return gtk_image_new ();
-
- pathname = find_pixmap_file (filename);
-
- if (!pathname)
- {
- g_warning (_("Couldn't find pixmap file: %s"), filename);
- return gtk_image_new ();
- }
-
- pixmap = gtk_image_new_from_file (pathname);
- g_free (pathname);
- return pixmap;
-}
-
-/* This is an internally used function to create pixmaps. */
-GdkPixbuf*
-create_pixbuf (const gchar *filename)
-{
- gchar *pathname = NULL;
- GdkPixbuf *pixbuf;
- GError *error = NULL;
-
- if (!filename || !filename[0])
- return NULL;
-
- pathname = find_pixmap_file (filename);
-
- if (!pathname)
- {
- g_warning (_("Couldn't find pixmap file: %s"), filename);
- return NULL;
- }
-
- pixbuf = gdk_pixbuf_new_from_file (pathname, &error);
- if (!pixbuf)
- {
- fprintf (stderr, "Failed to load pixbuf file: %s: %s\n",
- pathname, error->message);
- g_error_free (error);
- }
- g_free (pathname);
- return pixbuf;
-}
-
-/* This is used to set ATK action descriptions. */
-void
-glade_set_atk_action_description (AtkAction *action,
- const gchar *action_name,
- const gchar *description)
-{
- gint n_actions, i;
-
- n_actions = atk_action_get_n_actions (action);
- for (i = 0; i < n_actions; i++)
- {
- if (!strcmp (atk_action_get_name (action, i), action_name))
- atk_action_set_description (action, i, description);
- }
-}
-
diff --git a/src/support.h b/src/support.h
deleted file mode 100644
index 2a25cfe..0000000
--- a/src/support.h
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * DO NOT EDIT THIS FILE - it is generated by Glade.
- */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <gtk/gtk.h>
-
-/*
- * Standard gettext macros.
- */
-#ifdef ENABLE_NLS
-# include <libintl.h>
-# undef _
-# define _(String) dgettext (PACKAGE, String)
-# define P_(String, String_p, n) ngettext(String, String_p, n)
-# ifdef gettext_noop
-# define N_(String) gettext_noop (String)
-# else
-# define N_(String) (String)
-# endif
-#else
-# define textdomain(String) (String)
-# define gettext(String) (String)
-# define dgettext(Domain,Message) (Message)
-# define dcgettext(Domain,Message,Type) (Message)
-# define bindtextdomain(Domain,Directory) (Domain)
-# define _(String) (String)
-# define P_(String, String_p, n) (String_p)
-# define N_(String) (String)
-#endif
-
-
-/*
- * Public Functions.
- */
-
-/*
- * This function returns a widget in a component created by Glade.
- * Call it with the toplevel widget in the component (i.e. a window/dialog),
- * or alternatively any widget in the component, and the name of the widget
- * you want returned.
- */
-GtkWidget* lookup_widget (GtkWidget *widget,
- const gchar *widget_name);
-
-
-/* Use this function to set the directory containing installed pixmaps. */
-void add_pixmap_directory (const gchar *directory);
-
-
-/*
- * Private Functions.
- */
-
-/* This is used to create the pixmaps used in the interface. */
-GtkWidget* create_pixmap (GtkWidget *widget,
- const gchar *filename);
-
-/* This is used to create the pixbufs used in the interface. */
-GdkPixbuf* create_pixbuf (const gchar *filename);
-
-/* This is used to set ATK action descriptions. */
-void glade_set_atk_action_description (AtkAction *action,
- const gchar *action_name,
- const gchar *description);
-
diff --git a/ui/Makefile.am b/ui/Makefile.am
new file mode 100644
index 0000000..bdbf4a3
--- /dev/null
+++ b/ui/Makefile.am
@@ -0,0 +1,31 @@
+gslapt_ui_FILES = \
+ about.ui \
+ changelog_window.ui \
+ dep_error_dialog.ui \
+ dl_progress_window.ui \
+ gslapt.ui \
+ icon_legend.ui \
+ notification.ui \
+ pkgtools_progress_window.ui \
+ repositories_changed.ui \
+ source_failed_dialog.ui \
+ source_window.ui \
+ transaction_window.ui \
+ window_preferences.ui
+
+gslapt_image_FILES = \
+ gslapt.png \
+ pkg_action_available_excluded.png \
+ pkg_action_available.png \
+ pkg_action_downgrade.png \
+ pkg_action_installed_excluded.png \
+ pkg_action_installed.png \
+ pkg_action_install.png \
+ pkg_action_reinstall.png \
+ pkg_action_remove.png \
+ pkg_action_upgrade.png
+
+EXTRA_DIST = $(gslapt_ui_FILES) $(gslapt_image_FILES)
+
+gslapt_uidir = $(pkgdatadir)/ui
+gslapt_ui_DATA = $(gslapt_ui_FILES) $(gslapt_image_FILES)
diff --git a/ui/about.ui b/ui/about.ui
new file mode 100644
index 0000000..f2b2400
--- /dev/null
+++ b/ui/about.ui
@@ -0,0 +1,125 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <requires lib="gtk+" version="2.24"/>
+ <!-- interface-naming-policy toplevel-contextual -->
+ <object class="GtkDialog" id="about">
+ <property name="can_focus">False</property>
+ <property name="title" translatable="yes">About gslapt</property>
+ <property name="window_position">center</property>
+ <property name="destroy_with_parent">True</property>
+ <property name="icon">gslapt.png</property>
+ <property name="type_hint">dialog</property>
+ <property name="gravity">center</property>
+ <property name="has_separator">True</property>
+ <child internal-child="vbox">
+ <object class="GtkVBox" id="dialog-vbox1">
+ <property name="can_focus">False</property>
+ <child internal-child="action_area">
+ <object class="GtkHButtonBox" id="dialog-action_area1">
+ <property name="can_focus">False</property>
+ <property name="layout_style">end</property>
+ <child>
+ <object class="GtkButton" id="closebutton1">
+ <property name="label">gtk-close</property>
+ <property name="can_focus">True</property>
+ <property name="can_default">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_stock">True</property>
+ <signal name="clicked" handler="gtk_widget_destroy" object="about" swapped="yes"/>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="pack_type">end</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkVBox" id="vbox50">
+ <property name="can_focus">False</property>
+ <property name="homogeneous">True</property>
+ <child>
+ <object class="GtkImage" id="image853">
+ <property name="can_focus">False</property>
+ <property name="pixbuf">gslapt.png</property>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label146">
+ <property name="can_focus">True</property>
+ <property name="label">&lt;span weight="bold" size="xx-large"&gt;&lt;/span&gt;</property>
+ <property name="use_markup">True</property>
+ <property name="justify">right</property>
+ <property name="selectable">True</property>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label147">
+ <property name="can_focus">True</property>
+ <property name="label" translatable="yes">gslapt is a GTK+ frontend to slapt-get, an APT like package system for Slackware</property>
+ <property name="justify">center</property>
+ <property name="wrap">True</property>
+ <property name="selectable">True</property>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label170">
+ <property name="can_focus">False</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">3</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label149">
+ <property name="can_focus">True</property>
+ <property name="label">&lt;span size="small"&gt;Copyright (c) 2005-2014 Jason Woodward
+http://software.jaos.org/#gslapt&lt;/span&gt;</property>
+ <property name="use_markup">True</property>
+ <property name="justify">center</property>
+ <property name="selectable">True</property>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">4</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ <action-widgets>
+ <action-widget response="-7">closebutton1</action-widget>
+ </action-widgets>
+ </object>
+</interface>
diff --git a/ui/changelog_window.ui b/ui/changelog_window.ui
new file mode 100644
index 0000000..8437ee9
--- /dev/null
+++ b/ui/changelog_window.ui
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <requires lib="gtk+" version="2.24"/>
+ <!-- interface-naming-policy toplevel-contextual -->
+ <object class="GtkWindow" id="changelog_window">
+ <property name="can_focus">False</property>
+ <property name="title" translatable="yes">ChangeLogs</property>
+ <property name="default_width">640</property>
+ <property name="default_height">480</property>
+ <property name="icon">gslapt.png</property>
+ <signal name="destroy-event" handler="gtk_widget_destroy" swapped="no"/>
+ <signal name="configure-event" handler="gslapt_window_resized" swapped="no"/>
+ <child>
+ <object class="GtkVBox" id="vbox78">
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkNotebook" id="changelog_notebook">
+ <property name="can_focus">True</property>
+ <property name="scrollable">True</property>
+ <child>
+ <placeholder/>
+ </child>
+ <child type="tab">
+ <placeholder/>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="padding">6</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkHButtonBox" id="hbuttonbox3">
+ <property name="can_focus">False</property>
+ <property name="layout_style">end</property>
+ <child>
+ <object class="GtkButton" id="button12">
+ <property name="label">gtk-close</property>
+ <property name="can_focus">True</property>
+ <property name="can_default">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_stock">True</property>
+ <signal name="clicked" handler="gtk_widget_destroy" object="changelog_window" swapped="yes"/>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="padding">6</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ </object>
+</interface>
diff --git a/ui/dep_error_dialog.ui b/ui/dep_error_dialog.ui
new file mode 100644
index 0000000..f1b5134
--- /dev/null
+++ b/ui/dep_error_dialog.ui
@@ -0,0 +1,183 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <requires lib="gtk+" version="2.24"/>
+ <!-- interface-naming-policy toplevel-contextual -->
+ <object class="GtkDialog" id="dep_error_dialog">
+ <property name="can_focus">False</property>
+ <property name="border_width">2</property>
+ <property name="modal">True</property>
+ <property name="window_position">center</property>
+ <property name="icon">gslapt.png</property>
+ <property name="type_hint">dialog</property>
+ <property name="gravity">center</property>
+ <property name="has_separator">True</property>
+ <child internal-child="vbox">
+ <object class="GtkVBox" id="dialog-vbox6">
+ <property name="can_focus">False</property>
+ <property name="spacing">6</property>
+ <child internal-child="action_area">
+ <object class="GtkHButtonBox" id="dialog-action_area6">
+ <property name="can_focus">False</property>
+ <property name="layout_style">end</property>
+ <child>
+ <object class="GtkButton" id="dep_error_cancel_button">
+ <property name="label">gtk-cancel</property>
+ <property name="can_focus">True</property>
+ <property name="has_focus">True</property>
+ <property name="can_default">True</property>
+ <property name="has_default">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_stock">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkButton" id="dep_error_install_button">
+ <property name="label">gtk-ok</property>
+ <property name="can_focus">True</property>
+ <property name="can_default">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_stock">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="pack_type">end</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkHBox" id="hbox113">
+ <property name="can_focus">False</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkImage" id="image1261">
+ <property name="can_focus">False</property>
+ <property name="yalign">0.20000000298023224</property>
+ <property name="stock">gtk-dialog-error</property>
+ <property name="icon-size">6</property>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="padding">6</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkVBox" id="vbox72">
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkLabel" id="label285">
+ <property name="can_focus">False</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="dep_error_label">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="yalign">0</property>
+ <property name="use_markup">True</property>
+ <property name="wrap">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkScrolledWindow" id="scrolledwindow22">
+ <property name="can_focus">True</property>
+ <property name="border_width">2</property>
+ <property name="hscrollbar_policy">automatic</property>
+ <property name="vscrollbar_policy">automatic</property>
+ <child>
+ <object class="GtkTextView" id="dep_error_text">
+ <property name="can_focus">True</property>
+ <property name="border_width">2</property>
+ <property name="cursor_visible">False</property>
+ <property name="accepts_tab">False</property>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label286">
+ <property name="can_focus">False</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">3</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="dep_error_install_anyway_warning_label">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="yalign">0</property>
+ <property name="use_markup">True</property>
+ <property name="wrap">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">4</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label284">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="yalign">0</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">5</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ <action-widgets>
+ <action-widget response="-6">dep_error_cancel_button</action-widget>
+ <action-widget response="-5">dep_error_install_button</action-widget>
+ </action-widgets>
+ </object>
+</interface>
diff --git a/ui/dl_progress_window.ui b/ui/dl_progress_window.ui
new file mode 100644
index 0000000..8df4711
--- /dev/null
+++ b/ui/dl_progress_window.ui
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <requires lib="gtk+" version="2.24"/>
+ <!-- interface-naming-policy toplevel-contextual -->
+ <object class="GtkWindow" id="dl_progress_window">
+ <property name="can_focus">False</property>
+ <property name="border_width">12</property>
+ <property name="title" translatable="yes">working</property>
+ <property name="modal">True</property>
+ <property name="window_position">center</property>
+ <property name="icon">gslapt.png</property>
+ <property name="gravity">center</property>
+ <signal name="delete-event" handler="gtk_true" swapped="no"/>
+ <child>
+ <object class="GtkVBox" id="vbox49">
+ <property name="can_focus">False</property>
+ <property name="border_width">6</property>
+ <property name="spacing">2</property>
+ <child>
+ <object class="GtkProgressBar" id="dl_progress_progressbar">
+ <property name="can_focus">False</property>
+ <property name="pulse_step">0.10000000149</property>
+ <property name="text" translatable="yes">total progress</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkProgressBar" id="dl_progress">
+ <property name="can_focus">False</property>
+ <property name="pulse_step">0.10000000149</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="padding">2</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="progress_dl_speed">
+ <property name="can_focus">False</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="dl_progress_action">
+ <property name="can_focus">False</property>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="padding">6</property>
+ <property name="position">3</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="dl_progress_message">
+ <property name="can_focus">False</property>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="padding">6</property>
+ <property name="position">4</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="dl_progress_package_description">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="yalign">0</property>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="padding">6</property>
+ <property name="position">5</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkHButtonBox" id="hbuttonbox2">
+ <property name="can_focus">False</property>
+ <property name="layout_style">end</property>
+ <child>
+ <object class="GtkButton" id="button4">
+ <property name="label">gtk-cancel</property>
+ <property name="can_focus">True</property>
+ <property name="can_default">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_stock">True</property>
+ <signal name="clicked" handler="on_button_cancel_clicked" swapped="no"/>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">6</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ </object>
+</interface>
diff --git a/pixmaps/gslapt.png b/ui/gslapt.png
index bbdacbb..bbdacbb 100644
--- a/pixmaps/gslapt.png
+++ b/ui/gslapt.png
Binary files differ
diff --git a/ui/gslapt.ui b/ui/gslapt.ui
new file mode 100644
index 0000000..f98338f
--- /dev/null
+++ b/ui/gslapt.ui
@@ -0,0 +1,1178 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <requires lib="gtk+" version="2.12"/>
+ <!-- interface-naming-policy toplevel-contextual -->
+ <object class="GtkWindow" id="gslapt">
+ <property name="can_focus">False</property>
+ <property name="title" translatable="yes">Gslapt</property>
+ <property name="icon">gslapt.png</property>
+ <property name="gravity">center</property>
+ <signal name="destroy" handler="on_gslapt_destroy" swapped="no"/>
+ <signal name="configure-event" handler="gslapt_window_resized" swapped="no"/>
+ <child>
+ <object class="GtkVBox" id="gslapt_vbox">
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkMenuBar" id="top_menubar">
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkMenuItem" id="actions2">
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">_File</property>
+ <property name="use_underline">True</property>
+ <child type="submenu">
+ <object class="GtkMenu" id="actions2_menu">
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkImageMenuItem" id="update1">
+ <property name="label" translatable="yes">Update</property>
+ <property name="can_focus">False</property>
+ <property name="use_underline">True</property>
+ <property name="use_stock">False</property>
+ <accelerator key="y" signal="activate" modifiers="GDK_CONTROL_MASK"/>
+ <signal name="activate" handler="update_activate" swapped="no"/>
+ </object>
+ </child>
+ <child>
+ <object class="GtkImageMenuItem" id="mark_all_upgrades2">
+ <property name="label" translatable="yes">Mark All Upgrades</property>
+ <property name="can_focus">False</property>
+ <property name="use_underline">True</property>
+ <property name="use_stock">False</property>
+ <accelerator key="a" signal="activate" modifiers="GDK_CONTROL_MASK"/>
+ <signal name="activate" handler="mark_all_upgrades_activate" swapped="no"/>
+ </object>
+ </child>
+ <child>
+ <object class="GtkImageMenuItem" id="mark_obsolete1">
+ <property name="label" translatable="yes">Mark Obsolete</property>
+ <property name="can_focus">False</property>
+ <property name="use_underline">True</property>
+ <property name="use_stock">False</property>
+ <accelerator key="o" signal="activate" modifiers="GDK_CONTROL_MASK"/>
+ <signal name="activate" handler="mark_obsolete_packages" swapped="no"/>
+ </object>
+ </child>
+ <child>
+ <object class="GtkImageMenuItem" id="execute1">
+ <property name="label" translatable="yes">Execute</property>
+ <property name="can_focus">False</property>
+ <property name="use_underline">True</property>
+ <property name="use_stock">False</property>
+ <accelerator key="Return" signal="activate" modifiers="GDK_CONTROL_MASK"/>
+ <signal name="activate" handler="execute_activate" swapped="no"/>
+ </object>
+ </child>
+ <child>
+ <object class="GtkSeparatorMenuItem" id="separator2">
+ <property name="can_focus">False</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkImageMenuItem" id="quit">
+ <property name="label">gtk-quit</property>
+ <property name="can_focus">False</property>
+ <property name="use_underline">True</property>
+ <property name="use_stock">True</property>
+ <signal name="activate" handler="on_gslapt_destroy" swapped="no"/>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkMenuItem" id="edit1">
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">_Edit</property>
+ <property name="use_underline">True</property>
+ <child type="submenu">
+ <object class="GtkMenu" id="edit1_menu">
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkImageMenuItem" id="unmark_all1">
+ <property name="label" translatable="yes">Unmark All</property>
+ <property name="can_focus">False</property>
+ <property name="use_underline">True</property>
+ <property name="use_stock">False</property>
+ <accelerator key="z" signal="activate" modifiers="GDK_CONTROL_MASK"/>
+ <signal name="activate" handler="unmark_all_activate" swapped="no"/>
+ <signal name="activate" handler="unmark_all_activate" swapped="no"/>
+ </object>
+ </child>
+ <child>
+ <object class="GtkSeparatorMenuItem" id="separator1">
+ <property name="can_focus">False</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkImageMenuItem" id="preferences2">
+ <property name="label" translatable="yes">Preferences</property>
+ <property name="can_focus">False</property>
+ <property name="use_underline">True</property>
+ <property name="use_stock">False</property>
+ <accelerator key="p" signal="activate" modifiers="GDK_CONTROL_MASK"/>
+ <signal name="activate" handler="open_preferences" swapped="no"/>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkMenuItem" id="view1">
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">_View</property>
+ <property name="use_underline">True</property>
+ <child type="submenu">
+ <object class="GtkMenu" id="view1_menu">
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkRadioMenuItem" id="view_all_packages_menu">
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">All</property>
+ <property name="use_underline">True</property>
+ <property name="active">True</property>
+ <accelerator key="F1" signal="activate"/>
+ <signal name="activate" handler="view_all_packages" swapped="no"/>
+ </object>
+ </child>
+ <child>
+ <object class="GtkRadioMenuItem" id="view_available_packages_menu">
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Available</property>
+ <property name="use_underline">True</property>
+ <property name="group">view_all_packages_menu</property>
+ <accelerator key="F2" signal="activate"/>
+ <signal name="activate" handler="view_available_packages" swapped="no"/>
+ </object>
+ </child>
+ <child>
+ <object class="GtkRadioMenuItem" id="view_installed_packages_menu">
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Installed</property>
+ <property name="use_underline">True</property>
+ <property name="group">view_all_packages_menu</property>
+ <accelerator key="F3" signal="activate"/>
+ <signal name="activate" handler="view_installed_packages" swapped="no"/>
+ </object>
+ </child>
+ <child>
+ <object class="GtkRadioMenuItem" id="view_marked_packages_menu">
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Marked</property>
+ <property name="use_underline">True</property>
+ <property name="group">view_all_packages_menu</property>
+ <accelerator key="F4" signal="activate"/>
+ <signal name="activate" handler="view_marked_packages" swapped="no"/>
+ </object>
+ </child>
+ <child>
+ <object class="GtkRadioMenuItem" id="view_upgradeable_packages_menu">
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Upgradeable</property>
+ <property name="use_underline">True</property>
+ <property name="group">view_all_packages_menu</property>
+ <accelerator key="F5" signal="activate"/>
+ <signal name="activate" handler="view_upgradeable_packages" swapped="no"/>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkMenuItem" id="package1">
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">P_ackage</property>
+ <property name="use_underline">True</property>
+ <child type="submenu">
+ <object class="GtkMenu" id="package1_menu">
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkImageMenuItem" id="unmark1">
+ <property name="label" translatable="yes">Unmark</property>
+ <property name="sensitive">False</property>
+ <property name="can_focus">False</property>
+ <property name="use_underline">True</property>
+ <property name="use_stock">False</property>
+ <property name="always_show_image">True</property>
+ <property name="image">image865</property>
+ <accelerator key="n" signal="activate" modifiers="GDK_CONTROL_MASK"/>
+ </object>
+ </child>
+ <child>
+ <object class="GtkImageMenuItem" id="install1">
+ <property name="label" translatable="yes">Install</property>
+ <property name="sensitive">False</property>
+ <property name="can_focus">False</property>
+ <property name="use_underline">True</property>
+ <property name="use_stock">False</property>
+ <property name="always_show_image">True</property>
+ <property name="image">image867</property>
+ <accelerator key="i" signal="activate" modifiers="GDK_CONTROL_MASK"/>
+ </object>
+ </child>
+ <child>
+ <object class="GtkImageMenuItem" id="re-install1">
+ <property name="label" translatable="yes">Re-Install</property>
+ <property name="sensitive">False</property>
+ <property name="can_focus">False</property>
+ <property name="use_underline">True</property>
+ <property name="use_stock">False</property>
+ <property name="always_show_image">True</property>
+ <property name="image">image868</property>
+ <accelerator key="e" signal="activate" modifiers="GDK_CONTROL_MASK"/>
+ </object>
+ </child>
+ <child>
+ <object class="GtkImageMenuItem" id="upgrade1">
+ <property name="label" translatable="yes">Upgrade</property>
+ <property name="sensitive">False</property>
+ <property name="can_focus">False</property>
+ <property name="use_underline">True</property>
+ <property name="use_stock">False</property>
+ <property name="always_show_image">True</property>
+ <property name="image">image869</property>
+ <accelerator key="u" signal="activate" modifiers="GDK_CONTROL_MASK"/>
+ </object>
+ </child>
+ <child>
+ <object class="GtkImageMenuItem" id="downgrade1">
+ <property name="label" translatable="yes">Downgrade</property>
+ <property name="sensitive">False</property>
+ <property name="can_focus">False</property>
+ <property name="use_underline">True</property>
+ <property name="use_stock">False</property>
+ <property name="always_show_image">True</property>
+ <property name="image">image871</property>
+ <accelerator key="d" signal="activate" modifiers="GDK_CONTROL_MASK"/>
+ </object>
+ </child>
+ <child>
+ <object class="GtkImageMenuItem" id="remove1">
+ <property name="label" translatable="yes">Remove</property>
+ <property name="sensitive">False</property>
+ <property name="can_focus">False</property>
+ <property name="use_underline">True</property>
+ <property name="use_stock">False</property>
+ <property name="always_show_image">True</property>
+ <property name="image">image870</property>
+ <accelerator key="r" signal="activate" modifiers="GDK_CONTROL_MASK"/>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkMenuItem" id="help3">
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">_Help</property>
+ <property name="use_underline">True</property>
+ <child type="submenu">
+ <object class="GtkMenu" id="help3_menu">
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkImageMenuItem" id="icon_legend1">
+ <property name="label" translatable="yes">Icon Legend</property>
+ <property name="can_focus">False</property>
+ <property name="use_underline">True</property>
+ <property name="use_stock">False</property>
+ <signal name="activate" handler="open_icon_legend" swapped="no"/>
+ </object>
+ </child>
+ <child>
+ <object class="GtkImageMenuItem" id="changelogs_menu">
+ <property name="label" translatable="yes">ChangeLogs</property>
+ <property name="can_focus">False</property>
+ <property name="use_underline">True</property>
+ <property name="use_stock">False</property>
+ <signal name="activate" handler="view_changelogs" swapped="no"/>
+ </object>
+ </child>
+ <child>
+ <object class="GtkImageMenuItem" id="about3">
+ <property name="label" translatable="yes">About</property>
+ <property name="can_focus">False</property>
+ <property name="use_underline">True</property>
+ <property name="use_stock">False</property>
+ <signal name="activate" handler="open_about" swapped="no"/>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkToolbar" id="action_toolbar">
+ <property name="can_focus">False</property>
+ <property name="toolbar_style">both</property>
+ <child>
+ <object class="GtkToolButton" id="action_bar_update_button">
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Update</property>
+ <property name="use_underline">True</property>
+ <property name="stock_id">gtk-refresh</property>
+ <signal name="clicked" handler="update_callback" object="gslapt" swapped="yes"/>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="homogeneous">True</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkToolButton" id="action_bar_upgrade_button">
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Mark All Upgrades</property>
+ <property name="use_underline">True</property>
+ <property name="stock_id">gtk-go-up</property>
+ <signal name="clicked" handler="upgrade_callback" object="gslapt" swapped="yes"/>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="homogeneous">True</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkSeparatorToolItem" id="separatortoolitem1">
+ <property name="can_focus">False</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkToolButton" id="action_bar_execute_button">
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Execute</property>
+ <property name="use_underline">True</property>
+ <property name="stock_id">gtk-apply</property>
+ <signal name="clicked" handler="execute_callback" object="gslapt" swapped="yes"/>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="homogeneous">True</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkVBox" id="search_vbox">
+ <property name="can_focus">False</property>
+ <property name="border_width">6</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkAlignment" id="search_align">
+ <property name="can_focus">False</property>
+ <property name="border_width">1</property>
+ <child>
+ <object class="GtkHBox" id="search_hbox">
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkLabel" id="label292">
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Search</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="padding">6</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkEntry" id="search_entry">
+ <property name="can_focus">True</property>
+ <property name="has_focus">True</property>
+ <property name="can_default">True</property>
+ <property name="has_default">True</property>
+ <property name="primary_icon_activatable">False</property>
+ <property name="secondary_icon_activatable">False</property>
+ <property name="primary_icon_sensitive">True</property>
+ <property name="secondary_icon_sensitive">True</property>
+ <accelerator key="L" signal="grab_focus" modifiers="GDK_CONTROL_MASK"/>
+ <signal name="activate" handler="search_activated" object="gslapt" swapped="yes"/>
+ <signal name="editing-done" handler="search_activated" object="gslapt" swapped="yes"/>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkVPaned" id="pkg_vpaned">
+ <property name="can_focus">True</property>
+ <property name="border_width">6</property>
+ <child>
+ <object class="GtkScrolledWindow" id="pkg_list_scrolled">
+ <property name="can_focus">True</property>
+ <property name="hscrollbar_policy">automatic</property>
+ <property name="vscrollbar_policy">automatic</property>
+ <child>
+ <object class="GtkTreeView" id="pkg_listing_treeview">
+ <property name="can_focus">True</property>
+ <property name="rules_hint">True</property>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="resize">True</property>
+ <property name="shrink">True</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkNotebook" id="pkg_info_notebook">
+ <property name="can_focus">True</property>
+ <property name="border_width">6</property>
+ <property name="show_border">False</property>
+ <property name="scrollable">True</property>
+ <child>
+ <object class="GtkScrolledWindow" id="scrolledwindow20">
+ <property name="can_focus">True</property>
+ <property name="border_width">12</property>
+ <property name="hscrollbar_policy">automatic</property>
+ <property name="vscrollbar_policy">automatic</property>
+ <child>
+ <object class="GtkViewport" id="viewport1">
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkVBox" id="vbox63">
+ <property name="can_focus">False</property>
+ <property name="border_width">6</property>
+ <property name="spacing">18</property>
+ <child>
+ <object class="GtkTable" id="table2">
+ <property name="can_focus">False</property>
+ <property name="n_rows">7</property>
+ <property name="n_columns">2</property>
+ <property name="column_spacing">12</property>
+ <property name="row_spacing">6</property>
+ <child>
+ <object class="GtkLabel" id="label226">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">&lt;b&gt;Name:&lt;/b&gt;</property>
+ <property name="use_markup">True</property>
+ </object>
+ <packing>
+ <property name="x_options">GTK_FILL</property>
+ <property name="y_options"/>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="pkg_info_name">
+ <property name="can_focus">True</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">No package is selected.</property>
+ <property name="use_markup">True</property>
+ <property name="selectable">True</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
+ <property name="x_options">GTK_FILL</property>
+ <property name="y_options"/>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label250">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">&lt;b&gt;Status:&lt;/b&gt;</property>
+ <property name="use_markup">True</property>
+ </object>
+ <packing>
+ <property name="top_attach">2</property>
+ <property name="bottom_attach">3</property>
+ <property name="x_options">GTK_FILL</property>
+ <property name="y_options"/>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label227">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">&lt;b&gt;Description:&lt;/b&gt;</property>
+ <property name="use_markup">True</property>
+ </object>
+ <packing>
+ <property name="top_attach">1</property>
+ <property name="bottom_attach">2</property>
+ <property name="x_options">GTK_FILL</property>
+ <property name="y_options"/>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="pkg_info_description">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="use_markup">True</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
+ <property name="top_attach">1</property>
+ <property name="bottom_attach">2</property>
+ <property name="x_options">GTK_FILL</property>
+ <property name="y_options"/>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label273">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">&lt;b&gt;Version:&lt;/b&gt;</property>
+ <property name="use_markup">True</property>
+ </object>
+ <packing>
+ <property name="top_attach">4</property>
+ <property name="bottom_attach">5</property>
+ <property name="x_options">GTK_FILL</property>
+ <property name="y_options"/>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="pkg_info_version">
+ <property name="can_focus">True</property>
+ <property name="xalign">0</property>
+ <property name="use_markup">True</property>
+ <property name="selectable">True</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
+ <property name="top_attach">4</property>
+ <property name="bottom_attach">5</property>
+ <property name="x_options">GTK_FILL</property>
+ <property name="y_options"/>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="pkg_info_status">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="use_markup">True</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
+ <property name="top_attach">2</property>
+ <property name="bottom_attach">3</property>
+ <property name="x_options">GTK_FILL</property>
+ <property name="y_options"/>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label291">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">&lt;b&gt;Source:&lt;/b&gt;</property>
+ <property name="use_markup">True</property>
+ </object>
+ <packing>
+ <property name="top_attach">5</property>
+ <property name="bottom_attach">6</property>
+ <property name="x_options">GTK_FILL</property>
+ <property name="y_options"/>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="pkg_info_source">
+ <property name="can_focus">True</property>
+ <property name="xalign">0</property>
+ <property name="use_markup">True</property>
+ <property name="selectable">True</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
+ <property name="top_attach">5</property>
+ <property name="bottom_attach">6</property>
+ <property name="x_options">GTK_FILL</property>
+ <property name="y_options"/>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label298">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">&lt;b&gt;Priority:&lt;/b&gt;</property>
+ <property name="use_markup">True</property>
+ </object>
+ <packing>
+ <property name="top_attach">6</property>
+ <property name="bottom_attach">7</property>
+ <property name="x_options">GTK_FILL</property>
+ <property name="y_options"/>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="pkg_info_priority">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
+ <property name="top_attach">6</property>
+ <property name="bottom_attach">7</property>
+ <property name="x_options">GTK_FILL</property>
+ <property name="y_options"/>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label244">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">&lt;b&gt;Location:&lt;/b&gt;</property>
+ <property name="use_markup">True</property>
+ </object>
+ <packing>
+ <property name="top_attach">3</property>
+ <property name="bottom_attach">4</property>
+ <property name="x_options">GTK_FILL</property>
+ <property name="y_options"/>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="pkg_info_location">
+ <property name="can_focus">True</property>
+ <property name="xalign">0</property>
+ <property name="use_markup">True</property>
+ <property name="selectable">True</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
+ <property name="top_attach">3</property>
+ <property name="bottom_attach">4</property>
+ <property name="x_options">GTK_FILL</property>
+ <property name="y_options"/>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkVBox" id="vbox67">
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkLabel" id="label272">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">&lt;b&gt;Installed Version&lt;/b&gt;</property>
+ <property name="use_markup">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkHBox" id="hbox106">
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkLabel" id="label271">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="label"> </property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkTable" id="table3">
+ <property name="can_focus">False</property>
+ <property name="border_width">1</property>
+ <property name="n_rows">2</property>
+ <property name="n_columns">2</property>
+ <property name="column_spacing">12</property>
+ <property name="row_spacing">6</property>
+ <child>
+ <object class="GtkLabel" id="label237">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">Version:</property>
+ <property name="use_markup">True</property>
+ </object>
+ <packing>
+ <property name="x_options">GTK_FILL</property>
+ <property name="y_options"/>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="pkg_info_installed_version">
+ <property name="can_focus">True</property>
+ <property name="xalign">0</property>
+ <property name="use_markup">True</property>
+ <property name="selectable">True</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
+ <property name="x_options">GTK_FILL</property>
+ <property name="y_options"/>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label239">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">Installed Size:</property>
+ <property name="use_markup">True</property>
+ </object>
+ <packing>
+ <property name="top_attach">1</property>
+ <property name="bottom_attach">2</property>
+ <property name="x_options">GTK_FILL</property>
+ <property name="y_options"/>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="pkg_info_installed_installed_size">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="use_markup">True</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
+ <property name="top_attach">1</property>
+ <property name="bottom_attach">2</property>
+ <property name="x_options">GTK_FILL</property>
+ <property name="y_options"/>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkVBox" id="vbox66">
+ <property name="can_focus">False</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkLabel" id="label261">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">&lt;b&gt;Latest Available Version&lt;/b&gt;</property>
+ <property name="use_markup">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkHBox" id="hbox105">
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkLabel" id="label262">
+ <property name="can_focus">False</property>
+ <property name="label"> </property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkTable" id="table5">
+ <property name="can_focus">False</property>
+ <property name="n_rows">4</property>
+ <property name="n_columns">2</property>
+ <property name="column_spacing">12</property>
+ <property name="row_spacing">6</property>
+ <child>
+ <object class="GtkLabel" id="label263">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">Version:</property>
+ <property name="use_markup">True</property>
+ </object>
+ <packing>
+ <property name="x_options">GTK_FILL</property>
+ <property name="y_options"/>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label264">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">Size:</property>
+ <property name="use_markup">True</property>
+ </object>
+ <packing>
+ <property name="top_attach">1</property>
+ <property name="bottom_attach">2</property>
+ <property name="x_options">GTK_FILL</property>
+ <property name="y_options"/>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label265">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">Installed Size:</property>
+ <property name="use_markup">True</property>
+ </object>
+ <packing>
+ <property name="top_attach">2</property>
+ <property name="bottom_attach">3</property>
+ <property name="x_options">GTK_FILL</property>
+ <property name="y_options"/>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label266">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">Source:</property>
+ <property name="use_markup">True</property>
+ </object>
+ <packing>
+ <property name="top_attach">3</property>
+ <property name="bottom_attach">4</property>
+ <property name="x_options">GTK_FILL</property>
+ <property name="y_options"/>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="pkg_info_available_version">
+ <property name="can_focus">True</property>
+ <property name="xalign">0</property>
+ <property name="use_markup">True</property>
+ <property name="selectable">True</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
+ <property name="x_options">GTK_FILL</property>
+ <property name="y_options"/>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="pkg_info_available_size">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="use_markup">True</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
+ <property name="top_attach">1</property>
+ <property name="bottom_attach">2</property>
+ <property name="x_options">GTK_FILL</property>
+ <property name="y_options"/>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="pkg_info_available_installed_size">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="use_markup">True</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
+ <property name="top_attach">2</property>
+ <property name="bottom_attach">3</property>
+ <property name="x_options">GTK_FILL</property>
+ <property name="y_options"/>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="pkg_info_available_source">
+ <property name="can_focus">True</property>
+ <property name="xalign">0</property>
+ <property name="use_markup">True</property>
+ <property name="selectable">True</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
+ <property name="top_attach">3</property>
+ <property name="bottom_attach">4</property>
+ <property name="x_options">GTK_FILL</property>
+ <property name="y_options"/>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child type="tab">
+ <object class="GtkLabel" id="pkg_info_common_label">
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Common</property>
+ </object>
+ <packing>
+ <property name="tab_fill">False</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkVBox" id="vbox64">
+ <property name="can_focus">False</property>
+ <property name="border_width">12</property>
+ <child>
+ <object class="GtkScrolledWindow" id="scrolledwindow19">
+ <property name="can_focus">True</property>
+ <property name="hscrollbar_policy">automatic</property>
+ <property name="vscrollbar_policy">automatic</property>
+ <property name="shadow_type">in</property>
+ <child>
+ <object class="GtkTextView" id="pkg_description_textview">
+ <property name="can_focus">True</property>
+ <property name="editable">False</property>
+ <property name="cursor_visible">False</property>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child type="tab">
+ <object class="GtkLabel" id="pkg_info_description_label">
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Description</property>
+ </object>
+ <packing>
+ <property name="position">1</property>
+ <property name="tab_fill">False</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkScrolledWindow" id="scrolledwindow21">
+ <property name="can_focus">True</property>
+ <property name="border_width">12</property>
+ <property name="hscrollbar_policy">automatic</property>
+ <property name="vscrollbar_policy">automatic</property>
+ <child>
+ <object class="GtkTreeView" id="dep_conf_sug_treeview">
+ <property name="can_focus">True</property>
+ <property name="headers_visible">False</property>
+ <property name="enable_search">False</property>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ <child type="tab">
+ <object class="GtkLabel" id="pkg_info_dependencies_label">
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Dependencies</property>
+ </object>
+ <packing>
+ <property name="position">2</property>
+ <property name="tab_fill">False</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkScrolledWindow" id="scrolledwindow23">
+ <property name="can_focus">True</property>
+ <property name="hscrollbar_policy">automatic</property>
+ <property name="vscrollbar_policy">automatic</property>
+ <property name="shadow_type">in</property>
+ <child>
+ <object class="GtkTextView" id="pkg_changelog_textview">
+ <property name="can_focus">True</property>
+ <property name="editable">False</property>
+ <property name="wrap_mode">word</property>
+ <property name="cursor_visible">False</property>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="position">3</property>
+ </packing>
+ </child>
+ <child type="tab">
+ <object class="GtkLabel" id="pkg_info_changelog">
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Changelog</property>
+ </object>
+ <packing>
+ <property name="position">3</property>
+ <property name="tab_fill">False</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkScrolledWindow" id="scrolledwindow25">
+ <property name="can_focus">True</property>
+ <property name="shadow_type">in</property>
+ <child>
+ <object class="GtkTextView" id="pkg_filelist_textview">
+ <property name="can_focus">True</property>
+ <property name="editable">False</property>
+ <property name="wrap_mode">word</property>
+ <property name="cursor_visible">False</property>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="position">4</property>
+ </packing>
+ </child>
+ <child type="tab">
+ <object class="GtkLabel" id="pkg_info_filelist">
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Files</property>
+ </object>
+ <packing>
+ <property name="position">4</property>
+ <property name="tab_fill">False</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="resize">True</property>
+ <property name="shrink">True</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">3</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkStatusbar" id="bottom_statusbar">
+ <property name="can_focus">False</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">4</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ </object>
+ <object class="GtkImage" id="image865">
+ <property name="can_focus">False</property>
+ <property name="pixbuf">pkg_action_available.png</property>
+ </object>
+ <object class="GtkImage" id="image1257">
+ <property name="can_focus">False</property>
+ <property name="pixbuf">pkg_action_available_excluded.png</property>
+ </object>
+ <object class="GtkImage" id="image866">
+ <property name="can_focus">False</property>
+ <property name="pixbuf">pkg_action_installed.png</property>
+ </object>
+ <object class="GtkImage" id="image1256">
+ <property name="can_focus">False</property>
+ <property name="pixbuf">pkg_action_installed_excluded.png</property>
+ </object>
+ <object class="GtkImage" id="image867">
+ <property name="can_focus">False</property>
+ <property name="pixbuf">pkg_action_install.png</property>
+ </object>
+ <object class="GtkImage" id="image868">
+ <property name="can_focus">False</property>
+ <property name="pixbuf">pkg_action_reinstall.png</property>
+ </object>
+ <object class="GtkImage" id="image869">
+ <property name="can_focus">False</property>
+ <property name="pixbuf">pkg_action_upgrade.png</property>
+ </object>
+ <object class="GtkImage" id="image870">
+ <property name="can_focus">False</property>
+ <property name="pixbuf">pkg_action_remove.png</property>
+ </object>
+ <object class="GtkImage" id="image871">
+ <property name="can_focus">False</property>
+ <property name="pixbuf">pkg_action_downgrade.png</property>
+ </object>
+</interface>
diff --git a/ui/icon_legend.ui b/ui/icon_legend.ui
new file mode 100644
index 0000000..fb209d0
--- /dev/null
+++ b/ui/icon_legend.ui
@@ -0,0 +1,437 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <requires lib="gtk+" version="2.24"/>
+ <!-- interface-naming-policy toplevel-contextual -->
+ <object class="GtkDialog" id="icon_legend">
+ <property name="can_focus">False</property>
+ <property name="border_width">2</property>
+ <property name="title" translatable="yes">Icon Legend</property>
+ <property name="window_position">center</property>
+ <property name="icon">gslapt.png</property>
+ <property name="type_hint">dialog</property>
+ <property name="gravity">center</property>
+ <property name="has_separator">True</property>
+ <child internal-child="vbox">
+ <object class="GtkVBox" id="dialog-vbox4">
+ <property name="can_focus">False</property>
+ <child internal-child="action_area">
+ <object class="GtkHButtonBox" id="dialog-action_area4">
+ <property name="can_focus">False</property>
+ <property name="layout_style">end</property>
+ <child>
+ <object class="GtkButton" id="closebutton2">
+ <property name="label">gtk-close</property>
+ <property name="can_focus">True</property>
+ <property name="can_default">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_stock">True</property>
+ <signal name="clicked" handler="gtk_widget_destroy" object="icon_legend" swapped="yes"/>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="pack_type">end</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkVBox" id="vbox65">
+ <property name="can_focus">False</property>
+ <property name="border_width">6</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkLabel" id="label252">
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">&lt;b&gt;The following icons are used to indicate the current status of a package:&lt;/b&gt;</property>
+ <property name="use_markup">True</property>
+ <property name="wrap">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label260">
+ <property name="can_focus">False</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkHBox" id="hbox98">
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkImage" id="image865">
+ <property name="can_focus">False</property>
+ <property name="pixbuf">pkg_action_available.png</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="padding">6</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label253">
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Not Installed</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="padding">6</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkHBox" id="hbox109">
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkImage" id="image1257">
+ <property name="can_focus">False</property>
+ <property name="pixbuf">pkg_action_available_excluded.png</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="padding">6</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label277">
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Not Installed</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="padding">6</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label280">
+ <property name="can_focus">False</property>
+ <property name="label">/</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label281">
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Excluded</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="padding">6</property>
+ <property name="position">3</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">3</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkHBox" id="hbox99">
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkImage" id="image866">
+ <property name="can_focus">False</property>
+ <property name="pixbuf">pkg_action_installed.png</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="padding">6</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label254">
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Installed</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="padding">6</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">4</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkHBox" id="hbox108">
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkImage" id="image1256">
+ <property name="can_focus">False</property>
+ <property name="pixbuf">pkg_action_installed_excluded.png</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="padding">6</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label276">
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Installed</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="padding">6</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label278">
+ <property name="can_focus">False</property>
+ <property name="label">/</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label279">
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Excluded</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="padding">6</property>
+ <property name="position">3</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">5</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkHBox" id="hbox100">
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkImage" id="image867">
+ <property name="can_focus">False</property>
+ <property name="pixbuf">pkg_action_install.png</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="padding">6</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label255">
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">To be Installed</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="padding">6</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">6</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkHBox" id="hbox101">
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkImage" id="image868">
+ <property name="can_focus">False</property>
+ <property name="pixbuf">pkg_action_reinstall.png</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="padding">6</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label256">
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">To be Re-Installed</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="padding">6</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">7</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkHBox" id="hbox102">
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkImage" id="image869">
+ <property name="can_focus">False</property>
+ <property name="pixbuf">pkg_action_upgrade.png</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="padding">6</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label257">
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">To be Upgraded</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="padding">6</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">8</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkHBox" id="hbox103">
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkImage" id="image870">
+ <property name="can_focus">False</property>
+ <property name="pixbuf">pkg_action_remove.png</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="padding">6</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label258">
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">To be Removed</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="padding">6</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">9</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkHBox" id="hbox104">
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkImage" id="image871">
+ <property name="can_focus">False</property>
+ <property name="pixbuf">pkg_action_downgrade.png</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="padding">6</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label259">
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">To be Downgraded</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="padding">6</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">10</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ <action-widgets>
+ <action-widget response="-7">closebutton2</action-widget>
+ </action-widgets>
+ </object>
+</interface>
diff --git a/ui/notification.ui b/ui/notification.ui
new file mode 100644
index 0000000..c0089bf
--- /dev/null
+++ b/ui/notification.ui
@@ -0,0 +1,88 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <requires lib="gtk+" version="2.24"/>
+ <!-- interface-naming-policy toplevel-contextual -->
+ <object class="GtkDialog" id="notification">
+ <property name="can_focus">False</property>
+ <property name="border_width">2</property>
+ <property name="modal">True</property>
+ <property name="window_position">center</property>
+ <property name="icon">gslapt.png</property>
+ <property name="type_hint">dialog</property>
+ <property name="gravity">center</property>
+ <property name="has_separator">True</property>
+ <child internal-child="vbox">
+ <object class="GtkVBox" id="dialog-vbox3">
+ <property name="can_focus">False</property>
+ <child internal-child="action_area">
+ <object class="GtkHButtonBox" id="dialog-action_area3">
+ <property name="can_focus">False</property>
+ <property name="layout_style">end</property>
+ <child>
+ <object class="GtkButton" id="okbutton2">
+ <property name="label">gtk-close</property>
+ <property name="can_focus">True</property>
+ <property name="can_default">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_stock">True</property>
+ <signal name="clicked" handler="gtk_widget_destroy" object="notification" swapped="yes"/>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="pack_type">end</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkHBox" id="hbox112">
+ <property name="can_focus">False</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkImage" id="image1260">
+ <property name="can_focus">False</property>
+ <property name="yalign">0.20000000298023224</property>
+ <property name="stock">gtk-dialog-info</property>
+ <property name="icon-size">6</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="padding">6</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="notification_label">
+ <property name="can_focus">False</property>
+ <property name="use_markup">True</property>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="padding">6</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="padding">2</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ <action-widgets>
+ <action-widget response="-7">okbutton2</action-widget>
+ </action-widgets>
+ </object>
+</interface>
diff --git a/pixmaps/pkg_action_available.png b/ui/pkg_action_available.png
index 14f6dc9..14f6dc9 100644
--- a/pixmaps/pkg_action_available.png
+++ b/ui/pkg_action_available.png
Binary files differ
diff --git a/pixmaps/pkg_action_available_excluded.png b/ui/pkg_action_available_excluded.png
index 7f3fbe4..7f3fbe4 100644
--- a/pixmaps/pkg_action_available_excluded.png
+++ b/ui/pkg_action_available_excluded.png
Binary files differ
diff --git a/pixmaps/pkg_action_downgrade.png b/ui/pkg_action_downgrade.png
index 5205757..5205757 100644
--- a/pixmaps/pkg_action_downgrade.png
+++ b/ui/pkg_action_downgrade.png
Binary files differ
diff --git a/pixmaps/pkg_action_install.png b/ui/pkg_action_install.png
index ae24fef..ae24fef 100644
--- a/pixmaps/pkg_action_install.png
+++ b/ui/pkg_action_install.png
Binary files differ
diff --git a/pixmaps/pkg_action_installed.png b/ui/pkg_action_installed.png
index e2df192..e2df192 100644
--- a/pixmaps/pkg_action_installed.png
+++ b/ui/pkg_action_installed.png
Binary files differ
diff --git a/pixmaps/pkg_action_installed_excluded.png b/ui/pkg_action_installed_excluded.png
index 9083501..9083501 100644
--- a/pixmaps/pkg_action_installed_excluded.png
+++ b/ui/pkg_action_installed_excluded.png
Binary files differ
diff --git a/pixmaps/pkg_action_reinstall.png b/ui/pkg_action_reinstall.png
index 94419aa..94419aa 100644
--- a/pixmaps/pkg_action_reinstall.png
+++ b/ui/pkg_action_reinstall.png
Binary files differ
diff --git a/pixmaps/pkg_action_remove.png b/ui/pkg_action_remove.png
index 97e7a06..97e7a06 100644
--- a/pixmaps/pkg_action_remove.png
+++ b/ui/pkg_action_remove.png
Binary files differ
diff --git a/pixmaps/pkg_action_upgrade.png b/ui/pkg_action_upgrade.png
index 6612776..6612776 100644
--- a/pixmaps/pkg_action_upgrade.png
+++ b/ui/pkg_action_upgrade.png
Binary files differ
diff --git a/ui/pkgtools_progress_window.ui b/ui/pkgtools_progress_window.ui
new file mode 100644
index 0000000..d9d6b95
--- /dev/null
+++ b/ui/pkgtools_progress_window.ui
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <requires lib="gtk+" version="2.24"/>
+ <!-- interface-naming-policy toplevel-contextual -->
+ <object class="GtkWindow" id="pkgtools_progress_window">
+ <property name="can_focus">False</property>
+ <property name="border_width">12</property>
+ <property name="title" translatable="yes">working</property>
+ <property name="modal">True</property>
+ <property name="window_position">center</property>
+ <property name="icon">gslapt.png</property>
+ <property name="gravity">center</property>
+ <signal name="delete-event" handler="gtk_true" swapped="no"/>
+ <child>
+ <object class="GtkVBox" id="vbox68">
+ <property name="can_focus">False</property>
+ <property name="border_width">6</property>
+ <property name="spacing">2</property>
+ <child>
+ <object class="GtkProgressBar" id="progress_progressbar">
+ <property name="can_focus">False</property>
+ <property name="pulse_step">0.10000000149</property>
+ <property name="text" translatable="yes">total progress</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="progress_action">
+ <property name="can_focus">False</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="padding">2</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="progress_message">
+ <property name="can_focus">False</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="padding">6</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="progress_package_description">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="yalign">0</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="padding">6</property>
+ <property name="position">3</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ </object>
+</interface>
diff --git a/ui/repositories_changed.ui b/ui/repositories_changed.ui
new file mode 100644
index 0000000..7b3e8b7
--- /dev/null
+++ b/ui/repositories_changed.ui
@@ -0,0 +1,134 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <requires lib="gtk+" version="2.24"/>
+ <!-- interface-naming-policy toplevel-contextual -->
+ <object class="GtkDialog" id="repositories_changed">
+ <property name="can_focus">False</property>
+ <property name="title" translatable="yes">Repositories changed</property>
+ <property name="modal">True</property>
+ <property name="icon">gslapt.png</property>
+ <property name="type_hint">dialog</property>
+ <property name="has_separator">True</property>
+ <child internal-child="vbox">
+ <object class="GtkVBox" id="dialog-vbox5">
+ <property name="can_focus">False</property>
+ <property name="spacing">6</property>
+ <child internal-child="action_area">
+ <object class="GtkHButtonBox" id="dialog-action_area5">
+ <property name="can_focus">False</property>
+ <property name="layout_style">end</property>
+ <child>
+ <object class="GtkButton" id="button5">
+ <property name="label">gtk-no</property>
+ <property name="can_focus">True</property>
+ <property name="can_default">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_stock">True</property>
+ <signal name="clicked" handler="gtk_widget_destroy" object="repositories_changed" swapped="yes"/>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkButton" id="button6">
+ <property name="label">gtk-yes</property>
+ <property name="can_focus">True</property>
+ <property name="can_default">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_stock">True</property>
+ <signal name="clicked" handler="repositories_changed_callback" object="repositories_changed" swapped="yes"/>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="pack_type">end</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkHBox" id="hbox114">
+ <property name="can_focus">False</property>
+ <property name="border_width">2</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkImage" id="image1299">
+ <property name="can_focus">False</property>
+ <property name="yalign">0.20000000298023224</property>
+ <property name="stock">gtk-dialog-info</property>
+ <property name="icon-size">6</property>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="padding">6</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkVBox" id="vbox73">
+ <property name="can_focus">False</property>
+ <property name="border_width">6</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkLabel" id="label287">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">&lt;span size="large" weight="bold"&gt;Repositories changed&lt;/span&gt;</property>
+ <property name="use_markup">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="padding">6</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label288">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="yalign">0</property>
+ <property name="label" translatable="yes">You need to reload the package list from the sources you have listed. Do you want to do this now?</property>
+ <property name="use_markup">True</property>
+ <property name="wrap">True</property>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="padding">6</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="padding">6</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ <action-widgets>
+ <action-widget response="-9">button5</action-widget>
+ <action-widget response="-8">button6</action-widget>
+ </action-widgets>
+ </object>
+</interface>
diff --git a/ui/source_failed_dialog.ui b/ui/source_failed_dialog.ui
new file mode 100644
index 0000000..29925e8
--- /dev/null
+++ b/ui/source_failed_dialog.ui
@@ -0,0 +1,128 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <requires lib="gtk+" version="2.24"/>
+ <!-- interface-naming-policy toplevel-contextual -->
+ <object class="GtkDialog" id="source_failed_dialog">
+ <property name="can_focus">False</property>
+ <property name="title" translatable="yes">Source failed</property>
+ <property name="icon">gslapt.png</property>
+ <property name="type_hint">dialog</property>
+ <property name="has_separator">True</property>
+ <child internal-child="vbox">
+ <object class="GtkVBox" id="dialog-vbox7">
+ <property name="can_focus">False</property>
+ <child internal-child="action_area">
+ <object class="GtkHButtonBox" id="dialog-action_area7">
+ <property name="can_focus">False</property>
+ <property name="layout_style">end</property>
+ <child>
+ <object class="GtkButton" id="cancelbutton1">
+ <property name="label">gtk-no</property>
+ <property name="can_focus">True</property>
+ <property name="can_default">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_stock">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkButton" id="okbutton3">
+ <property name="label">gtk-yes</property>
+ <property name="can_focus">True</property>
+ <property name="can_default">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_stock">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="pack_type">end</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkHBox" id="hbox115">
+ <property name="can_focus">False</property>
+ <property name="border_width">2</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkImage" id="image1300">
+ <property name="can_focus">False</property>
+ <property name="yalign">0.20000000298023224</property>
+ <property name="stock">gtk-dialog-error</property>
+ <property name="icon-size">6</property>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="padding">6</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkVBox" id="vbox74">
+ <property name="can_focus">False</property>
+ <property name="border_width">6</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkLabel" id="failed_source_label">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="use_markup">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="padding">6</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label290">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="yalign">0</property>
+ <property name="label" translatable="yes">This package source failed or is not available. Do you want to disable this source and continue anyway?</property>
+ <property name="use_markup">True</property>
+ <property name="wrap">True</property>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="padding">6</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ <action-widgets>
+ <action-widget response="-9">cancelbutton1</action-widget>
+ <action-widget response="-8">okbutton3</action-widget>
+ </action-widgets>
+ </object>
+</interface>
diff --git a/ui/source_window.ui b/ui/source_window.ui
new file mode 100644
index 0000000..02936ba
--- /dev/null
+++ b/ui/source_window.ui
@@ -0,0 +1,159 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <requires lib="gtk+" version="2.24"/>
+ <!-- interface-naming-policy toplevel-contextual -->
+ <object class="GtkListStore" id="source_priorities">
+ <columns>
+ <!-- column-name priority -->
+ <column type="gchararray"/>
+ </columns>
+ <data>
+ <row>
+ <col id="0" translatable="yes">Default</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">Official</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">Preferred</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">Custom</col>
+ </row>
+ </data>
+ </object>
+ <object class="GtkWindow" id="source_window">
+ <property name="can_focus">False</property>
+ <property name="border_width">6</property>
+ <property name="title" translatable="yes">Package Source</property>
+ <property name="modal">True</property>
+ <property name="window_position">center</property>
+ <property name="icon">gslapt.png</property>
+ <child>
+ <object class="GtkVBox" id="vbox79">
+ <property name="can_focus">False</property>
+ <property name="border_width">6</property>
+ <child>
+ <object class="GtkTable" id="table6">
+ <property name="can_focus">False</property>
+ <property name="border_width">6</property>
+ <property name="n_rows">2</property>
+ <property name="n_columns">2</property>
+ <property name="column_spacing">6</property>
+ <property name="row_spacing">6</property>
+ <child>
+ <object class="GtkLabel" id="priority_label">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">&lt;b&gt;Priority:&lt;/b&gt;</property>
+ <property name="use_markup">True</property>
+ </object>
+ <packing>
+ <property name="top_attach">1</property>
+ <property name="bottom_attach">2</property>
+ <property name="x_options">GTK_FILL</property>
+ <property name="y_options">GTK_FILL</property>
+ <property name="x_padding">6</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="source_label">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">&lt;b&gt;Source:&lt;/b&gt;</property>
+ <property name="use_markup">True</property>
+ </object>
+ <packing>
+ <property name="x_options">GTK_FILL</property>
+ <property name="y_options">GTK_FILL</property>
+ <property name="x_padding">6</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkEntry" id="source_entry">
+ <property name="can_focus">True</property>
+ <property name="invisible_char">●</property>
+ <property name="width_chars">60</property>
+ <property name="primary_icon_activatable">False</property>
+ <property name="secondary_icon_activatable">False</property>
+ <property name="primary_icon_sensitive">True</property>
+ <property name="secondary_icon_sensitive">True</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
+ <property name="y_options">GTK_EXPAND</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkComboBox" id="source_priority">
+ <property name="can_focus">False</property>
+ <property name="model">source_priorities</property>
+ <property name="active">0</property>
+ <child>
+ <object class="GtkCellRendererText" id="cellrenderertext1"/>
+ <attributes>
+ <attribute name="text">0</attribute>
+ </attributes>
+ </child>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
+ <property name="top_attach">1</property>
+ <property name="bottom_attach">2</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="padding">6</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkHButtonBox" id="hbuttonbox4">
+ <property name="can_focus">False</property>
+ <property name="layout_style">end</property>
+ <child>
+ <object class="GtkButton" id="button13">
+ <property name="label">gtk-cancel</property>
+ <property name="can_focus">True</property>
+ <property name="can_default">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_stock">True</property>
+ <signal name="clicked" handler="cancel_source_edit" swapped="no"/>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkButton" id="button14">
+ <property name="label">gtk-ok</property>
+ <property name="can_focus">True</property>
+ <property name="can_default">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_stock">True</property>
+ <signal name="clicked" handler="source_edit_ok" swapped="no"/>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ </object>
+</interface>
diff --git a/ui/transaction_window.ui b/ui/transaction_window.ui
new file mode 100644
index 0000000..4833d01
--- /dev/null
+++ b/ui/transaction_window.ui
@@ -0,0 +1,238 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <requires lib="gtk+" version="2.24"/>
+ <!-- interface-naming-policy toplevel-contextual -->
+ <object class="GtkWindow" id="transaction_window">
+ <property name="can_focus">False</property>
+ <property name="border_width">12</property>
+ <property name="title" translatable="yes">Summary</property>
+ <property name="modal">True</property>
+ <property name="window_position">center</property>
+ <property name="default_width">200</property>
+ <property name="default_height">400</property>
+ <property name="icon">gslapt.png</property>
+ <property name="gravity">center</property>
+ <signal name="destroy-event" handler="gtk_widget_destroy" swapped="no"/>
+ <signal name="configure-event" handler="gslapt_window_resized" swapped="no"/>
+ <child>
+ <object class="GtkVBox" id="vbox47">
+ <property name="can_focus">False</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkVBox" id="vbox61">
+ <property name="can_focus">False</property>
+ <property name="border_width">6</property>
+ <property name="spacing">2</property>
+ <child>
+ <object class="GtkHBox" id="hbox97">
+ <property name="can_focus">False</property>
+ <property name="border_width">6</property>
+ <property name="spacing">2</property>
+ <child>
+ <object class="GtkImage" id="image852">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="yalign">0</property>
+ <property name="stock">gtk-dialog-question</property>
+ <property name="icon-size">6</property>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkVBox" id="vbox62">
+ <property name="can_focus">False</property>
+ <property name="border_width">6</property>
+ <property name="spacing">2</property>
+ <child>
+ <object class="GtkLabel" id="label167">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="yalign">0</property>
+ <property name="label" translatable="yes">&lt;span weight="bold" size="large"&gt;Apply the following changes?&lt;/span&gt;</property>
+ <property name="use_markup">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label168">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="yalign">0</property>
+ <property name="ypad">6</property>
+ <property name="label" translatable="yes">This is a summary of the changes about to be performed.</property>
+ <property name="wrap">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkScrolledWindow" id="scrolledwindow18">
+ <property name="can_focus">True</property>
+ <property name="border_width">1</property>
+ <property name="hscrollbar_policy">automatic</property>
+ <child>
+ <object class="GtkTreeView" id="transaction_summary_treeview">
+ <property name="can_focus">True</property>
+ <property name="headers_visible">False</property>
+ <property name="rules_hint">True</property>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkVBox" id="summary_breakdown">
+ <property name="can_focus">False</property>
+ <property name="border_width">6</property>
+ <property name="spacing">2</property>
+ <child>
+ <object class="GtkLabel" id="summary_pkg_numbers">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="yalign">0</property>
+ <property name="xpad">6</property>
+ <property name="ypad">1</property>
+ <property name="use_markup">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="summary_dl_size">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="yalign">0</property>
+ <property name="xpad">6</property>
+ <property name="ypad">1</property>
+ <property name="use_markup">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="summary_free_space">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="yalign">0</property>
+ <property name="xpad">6</property>
+ <property name="ypad">1</property>
+ <property name="use_markup">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkCheckButton" id="download_only_checkbutton">
+ <property name="label" translatable="yes">Download packages only</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_underline">True</property>
+ <property name="draw_indicator">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">3</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="padding">2</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkHButtonBox" id="hbuttonbox1">
+ <property name="can_focus">False</property>
+ <property name="border_width">2</property>
+ <property name="spacing">6</property>
+ <property name="layout_style">end</property>
+ <child>
+ <object class="GtkButton" id="button2">
+ <property name="label">gtk-cancel</property>
+ <property name="can_focus">True</property>
+ <property name="can_default">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_stock">True</property>
+ <signal name="clicked" handler="cancel_transaction" swapped="no"/>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkButton" id="button3">
+ <property name="label">gtk-ok</property>
+ <property name="can_focus">True</property>
+ <property name="can_default">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_stock">True</property>
+ <signal name="clicked" handler="transaction_okbutton_clicked" swapped="no"/>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="padding">1</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ </object>
+</interface>
diff --git a/ui/window_preferences.ui b/ui/window_preferences.ui
new file mode 100644
index 0000000..50ab080
--- /dev/null
+++ b/ui/window_preferences.ui
@@ -0,0 +1,636 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <requires lib="gtk+" version="2.24"/>
+ <!-- interface-naming-policy toplevel-contextual -->
+ <object class="GtkWindow" id="window_preferences">
+ <property name="can_focus">False</property>
+ <property name="title" translatable="yes">Preferences</property>
+ <property name="modal">True</property>
+ <property name="window_position">center</property>
+ <property name="default_width">400</property>
+ <property name="default_height">300</property>
+ <property name="icon">gslapt.png</property>
+ <property name="gravity">center</property>
+ <signal name="destroy-event" handler="gtk_widget_destroy" swapped="no"/>
+ <signal name="configure-event" handler="gslapt_window_resized" swapped="no"/>
+ <child>
+ <object class="GtkVBox" id="preferences_vbox">
+ <property name="can_focus">False</property>
+ <property name="border_width">6</property>
+ <child>
+ <object class="GtkNotebook" id="preferences_notebook">
+ <property name="can_focus">True</property>
+ <property name="border_width">6</property>
+ <child>
+ <object class="GtkVBox" id="preferences_working_dir_vbox">
+ <property name="can_focus">False</property>
+ <property name="border_width">12</property>
+ <property name="spacing">18</property>
+ <child>
+ <object class="GtkVBox" id="preferences_working_dir_vbox_vbox">
+ <property name="can_focus">False</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkLabel" id="preferences_working_dir_label">
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">&lt;b&gt;Package and data storage&lt;/b&gt;</property>
+ <property name="use_markup">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkHBox" id="hbox3">
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkLabel" id="label72">
+ <property name="can_focus">False</property>
+ <property name="label"> </property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkVBox" id="vbox12">
+ <property name="can_focus">False</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkEntry" id="preferences_working_dir_entry">
+ <property name="can_focus">True</property>
+ <property name="primary_icon_activatable">False</property>
+ <property name="secondary_icon_activatable">False</property>
+ <property name="primary_icon_sensitive">True</property>
+ <property name="secondary_icon_sensitive">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkButton" id="button7">
+ <property name="label" translatable="yes">_Delete Cached Package Files</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_underline">True</property>
+ <signal name="clicked" handler="clean_callback" swapped="no"/>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ </object>
+ </child>