Merge lp:~evfool/synaptic/ancientfixes into lp:synaptic

Proposed by Robert Roth
Status: Merged
Merged at revision: 2102
Proposed branch: lp:~evfool/synaptic/ancientfixes
Merge into: lp:synaptic
Diff against target: 1282 lines (+274/-201)
49 files modified
common/rpackage.cc (+13/-0)
common/rpackage.h (+1/-0)
debian/control (+1/-1)
gtk/gsynaptic.cc (+3/-3)
gtk/gtkbuilder/dialog_change_version.ui (+0/-1)
gtk/gtkbuilder/dialog_columns.ui (+0/-1)
gtk/gtkbuilder/dialog_conffile.ui (+0/-1)
gtk/gtkbuilder/dialog_disc_label.ui (+0/-1)
gtk/gtkbuilder/dialog_download_error.ui (+0/-1)
gtk/gtkbuilder/dialog_example.ui (+0/-1)
gtk/gtkbuilder/dialog_new_repositroy.ui (+0/-1)
gtk/gtkbuilder/dialog_quit.ui (+0/-1)
gtk/gtkbuilder/dialog_task_descr.ui (+0/-1)
gtk/gtkbuilder/dialog_unmet.ui (+0/-1)
gtk/gtkbuilder/dialog_update_failed.ui (+0/-1)
gtk/gtkbuilder/dialog_update_outdated.ui (+0/-1)
gtk/gtkbuilder/dialog_upgrade.ui (+0/-1)
gtk/gtkbuilder/dialog_welcome.ui (+0/-1)
gtk/gtkbuilder/window_about.ui (+0/-2)
gtk/gtkbuilder/window_changes.ui (+0/-1)
gtk/gtkbuilder/window_details.ui (+6/-0)
gtk/gtkbuilder/window_disc_name.ui (+0/-1)
gtk/gtkbuilder/window_fetch.ui (+1/-2)
gtk/gtkbuilder/window_filters.ui (+3/-6)
gtk/gtkbuilder/window_find.ui (+0/-1)
gtk/gtkbuilder/window_iconlegend.ui (+0/-1)
gtk/gtkbuilder/window_logview.ui (+0/-1)
gtk/gtkbuilder/window_main.ui (+1/-1)
gtk/gtkbuilder/window_preferences.ui (+23/-75)
gtk/gtkbuilder/window_rgdebinstall_progress.ui (+0/-1)
gtk/gtkbuilder/window_rginstall_progress.ui (+0/-1)
gtk/gtkbuilder/window_setopt.ui (+0/-1)
gtk/gtkbuilder/window_summary.ui (+2/-2)
gtk/gtkbuilder/window_tasks.ui (+0/-1)
gtk/gtkbuilder/window_zvtinstallprogress.ui (+0/-1)
gtk/rgdebinstallprogress.cc (+3/-3)
gtk/rgfiltermanager.cc (+1/-1)
gtk/rggtkbuilderwindow.cc (+18/-0)
gtk/rggtkbuilderwindow.h (+1/-0)
gtk/rgmainwindow.cc (+42/-47)
gtk/rgpackagestatus.cc (+0/-27)
gtk/rgpkgdetails.cc (+38/-1)
gtk/rgpkgdetails.h (+1/-0)
gtk/rgpreferenceswindow.cc (+4/-4)
gtk/rgsummarywindow.cc (+1/-0)
gtk/rguserdialog.cc (+8/-1)
gtk/rgutils.cc (+97/-0)
gtk/rgutils.h (+3/-0)
gtk/rgwindow.cc (+3/-1)
To merge this branch: bzr merge lp:~evfool/synaptic/ancientfixes
Reviewer Review Type Date Requested Status
Ubuntu Sponsors Pending
synaptic-developers Pending
Review via email: mp+93134@code.launchpad.net

Description of the change

This branch fixes some minor issues (One commit/issue):
* Disables typeahead in summary dialog, as it doesn't do anything, so it's unnecesary (LP: #24319)
* Move up and Move down buttons in columns preferences changed to respect buttons_have_icons preference (LP: #66574)
* Set the title of the package properties dialog opened for the first time (it has not been set before, so it was synaptic the first time the dialog has been opened) (LP: #932495)
* Added a reload button to the repositories changed dialog (LP: #78987)
* Updated the wording of the expander on the download progress dialog to Show individual files" instead of "Show for individual files" (LP: #301428)
* Fixed inconsistencies between column namings in column headers and column visibility preferences (LP: #335723)
* Linkified maintainer label in the package properties dialog (LP: #321380)
* Added package name in the warning scaring you about breaking your system (LP: #63974)
* Added name of the application (Synaptic Package Manager) in the titleless dialog shown when starting without administrative privilegess (LP: #510261)
* Improved filter editing checkbox tooltips (LP: #790420)
* Made all the property values from the package properties dialog selectable (LP: #173464)
* Changed Package Properties accelerator from Ctrl+O to widely used (nautilus, eog, evince etc) Alt+Enter (LP: #933554)
* Hide the only download packages checkbox if there are no files to download (LP: #413453)
* Use the synaptic icon from the user's icon theme, or fall back to the old one if the current theme does not provide a synaptic icon (LP: #153755)
* Focus the Apply button by default. (LP: #488718)
* Removed log message from automatically installed item click (LP: #883984)
* Fixed delete filter button not working caused by a typo in the name of the button when getting it from the GtkBuilder object (LP: #779756)
* Added suggests tasksel as with tasksel installed synaptic provides additional functionality (LP: #605186)
* Fixes incorrect radiobutton handling in the proxy preferences (LP: #706262)

To post a comment you must log in.
Revision history for this message
Michael Vogt (mvo) wrote :

Thanks! Most of this is great, there is one small wishlist item I have:

The link buttons should point to a custom invoke browser method. The rational
is that we don't want to open browser windows as root. So the custom code need
to run something like "sudo -u $PKEXEC_UID xdg-open $link" (or if PKEXEC_UID is
not in the environment $SUDO_USER). There is code in rgmainwindow.cc that does
something like this currently (without the PKEXEC_UID bit). That should probably
move to rutils.{cc,h} and re-used for the link buttons as well. What do you think :) ?

Revision history for this message
Michael Vogt (mvo) wrote :

While doing the review I noticed another small issue:

The fix for bug #755548 is not ideal as the code supports multiple selection and its actually a quite
useful feature IMO. It does not work with the "space" key very well, so we would either need to find
a way to make "space" on multiple selections clear the selection and do nothing else (so that the second
space triggers the action). Or make the space trigger the best possible action on all selection.

Revision history for this message
Robert Roth (evfool) wrote :

I have reverted that change, set back the selection type to multiple, to have at least the rest of the fixes merged, if they seem OK. Maybe I'll try to implement the feature you've suggested (space on multiple selections do something useful) later, or maybe someone else will pick up. Actually I was the one who reported the bug in question, and I was not aware that it does something useful :)

Revision history for this message
Sebastien Bacher (seb128) wrote :

@mvo: should we merge that in or do you still have issues with the current version?

Revision history for this message
Adolfo Jayme Barrientos (fitojb) wrote :

*fitoschido has poked you.* ;-)

Revision history for this message
Daniel Hartwig (wigs) wrote :

Please reconsider this change:

  * Hide the only download packages checkbox if there are no files
    to download (LP: #413453)

because it may still be enabled from a previous run (see ::showAndConfirm). The check for “download size is nil” is too simple. You also do *not* want to automagically unset this some times and not others, this is very disruptive behaviour.

To keep things simple, I suggest to revert this change and close the associated bug.

=== modified file 'gtk/rgsummarywindow.cc'
--- gtk/rgsummarywindow.cc 2010-10-07 19:51:48 +0000
+++ gtk/rgsummarywindow.cc 2012-04-10 17:44:21 +0000
@@ -393,6 +393,7 @@
         toDowngrade, unAuthenticated,sizeChange);
    lister->getDownloadSummary(dlCount, dlSize);

+ gtk_widget_set_visible(_dlonlyB, (dlSize > 0));
 #if 0
    if (held) {
       char *str = ngettext("%d package is locked\n",

Revision history for this message
Daniel Hartwig (wigs) wrote :

Overall I think your work on these usability issues is great.

Revision history for this message
Michael Vogt (mvo) wrote :

On Sun, Nov 11, 2012 at 02:57:19PM -0000, Daniel Hartwig wrote:
> Please reconsider this change:
>
> * Hide the only download packages checkbox if there are no files
> to download (LP: #413453)
>
> because it may still be enabled from a previous run (see ::showAndConfirm). The check for “download size is nil” is too simple. You also do *not* want to automagically unset this some times and not others, this is very disruptive behaviour.
>
> To keep things simple, I suggest to revert this change and close the associated bug.

Thanks Daniel, I think this is a valid concern, I reverted this for
now. I hope that is ok with you Robert, please let me know if you have
any alternative ideas, but it seems like its a relatively small change.

Cheers,
 Michael

Revision history for this message
Robert Roth (evfool) wrote :

Of course it's OK reverting, I have been thinking what I can do about that, that's why I haven't replied yet. But until we find a better solution, let's leave it as is. I haven't even found the bug report related to that change, although as far as I remember I have only committed bug-related changes there.

Revision history for this message
Daniel Hartwig (wigs) wrote :

On 14 November 2012 20:12, Robert Roth <email address hidden> wrote:
> Of course it's OK reverting, I have been thinking what I can do
> about that, that's why I haven't replied yet. But until we find a
> better solution, let's leave it as is.

The current code in trunk does not work so well. See my previous
comment. It really should not be left as is.

The better solution here is one of:
- always keep the previous choice for download-only; or
- always unset download-only.

Package management is rather complex, it is not likely that there is
a good metric to decide when to unset this selection and when not—in a
way that a user can accurately anticipate.

Someone has reported that the availability of the option was
unexpected for them, in one situation. Does not mean that anything
more sensible can realisticly be done.

> I haven't even found the bug
> report related to that change, although as far as I remember I have
> only committed bug-related changes there.

http://bugs.launchpad.net/bugs/413453

Revision history for this message
Daniel Hartwig (wigs) wrote :

On 17 November 2012 21:27, Daniel Hartwig <email address hidden> wrote:
> Package management is rather complex, it is not likely that there is
> a good metric to decide when to unset this selection and when not—in a
> way that a user can accurately anticipate.

For what its worth, we have had one or two similar reports against
aptitude, but what can you be expected to do when a user types:

$ aptitude install --download-only some-package

and some-package is already downloaded? Ignore --download-only?

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'common/rpackage.cc'
--- common/rpackage.cc 2012-03-20 15:43:53 +0000
+++ common/rpackage.cc 2012-04-10 17:44:21 +0000
@@ -154,6 +154,19 @@
154 return "";154 return "";
155}155}
156156
157const char *RPackage::homepage()
158{
159 static string _homepage;
160 pkgCache::VerIterator ver = (*_depcache)[*_package].CandidateVerIter(*_depcache);
161 if (!ver.end()) {
162 pkgRecords::Parser & parser = _records->Lookup(ver.FileList());
163 _homepage = parser.Homepage();
164 return _homepage .c_str();
165 }
166 return "";
167}
168
169
157string RPackage::arch()170string RPackage::arch()
158{171{
159 pkgCache::VerIterator ver;172 pkgCache::VerIterator ver;
160173
=== modified file 'common/rpackage.h'
--- common/rpackage.h 2012-01-31 22:11:17 +0000
+++ common/rpackage.h 2012-04-10 17:44:21 +0000
@@ -185,6 +185,7 @@
185 string origin();185 string origin();
186 186
187 const char *maintainer();187 const char *maintainer();
188 const char *homepage();
188 const char *vendor();189 const char *vendor();
189190
190 const char *installedVersion();191 const char *installedVersion();
191192
=== modified file 'debian/control'
--- debian/control 2012-04-02 08:59:42 +0000
+++ debian/control 2012-04-10 17:44:21 +0000
@@ -13,7 +13,7 @@
13Depends: ${shlibs:Depends}, ${misc:Depends}, hicolor-icon-theme13Depends: ${shlibs:Depends}, ${misc:Depends}, hicolor-icon-theme
14Conflicts: menu (<< 2.1.11)14Conflicts: menu (<< 2.1.11)
15Recommends: gksu|kdebase-bin|policykit-1, libgtk2-perl (>= 1:1.130), rarian-compat, software-properties-gtk15Recommends: gksu|kdebase-bin|policykit-1, libgtk2-perl (>= 1:1.130), rarian-compat, software-properties-gtk
16Suggests: dwww, menu, deborphan, apt-xapian-index16Suggests: dwww, menu, deborphan, apt-xapian-index, tasksel
17Description: Graphical package manager 17Description: Graphical package manager
18 Synaptic is a graphical package management tool based on GTK+ and APT.18 Synaptic is a graphical package management tool based on GTK+ and APT.
19 Synaptic enables you to install, upgrade and remove software packages in19 Synaptic enables you to install, upgrade and remove software packages in
2020
=== modified file 'gtk/gsynaptic.cc'
--- gtk/gsynaptic.cc 2011-11-10 16:31:25 +0000
+++ gtk/gsynaptic.cc 2012-04-10 17:44:21 +0000
@@ -427,10 +427,10 @@
427 if (getuid() != 0) {427 if (getuid() != 0) {
428 RGUserDialog userDialog;428 RGUserDialog userDialog;
429 userDialog.warning(g_strdup_printf("<b><big>%s</big></b>\n\n%s",429 userDialog.warning(g_strdup_printf("<b><big>%s</big></b>\n\n%s",
430 _("Starting without administrative "430 _("Starting \"Synaptic Package Manager\" without "
431 "privileges"),431 "administrative privileges"),
432 _("You will not be able to apply "432 _("You will not be able to apply "
433 "any changes. But you can still "433 "any changes, but you can still "
434 "export the marked changes or "434 "export the marked changes or "
435 "create a download script "435 "create a download script "
436 "for them.")));436 "for them.")));
437437
=== modified file 'gtk/gtkbuilder/dialog_change_version.ui'
--- gtk/gtkbuilder/dialog_change_version.ui 2010-10-06 15:22:41 +0000
+++ gtk/gtkbuilder/dialog_change_version.ui 2012-04-10 17:44:21 +0000
@@ -10,7 +10,6 @@
10 <property name="modal">True</property>10 <property name="modal">True</property>
11 <property name="resizable">False</property>11 <property name="resizable">False</property>
12 <property name="destroy_with_parent">False</property>12 <property name="destroy_with_parent">False</property>
13 <property name="icon">synaptic_mini.xpm</property>
14 <property name="has_separator">False</property>13 <property name="has_separator">False</property>
15 <child internal-child="vbox">14 <child internal-child="vbox">
16 <object class="GtkVBox" id="dialog-vbox1">15 <object class="GtkVBox" id="dialog-vbox1">
1716
=== modified file 'gtk/gtkbuilder/dialog_columns.ui'
--- gtk/gtkbuilder/dialog_columns.ui 2010-10-06 15:22:41 +0000
+++ gtk/gtkbuilder/dialog_columns.ui 2012-04-10 17:44:21 +0000
@@ -10,7 +10,6 @@
10 <property name="modal">False</property>10 <property name="modal">False</property>
11 <property name="resizable">True</property>11 <property name="resizable">True</property>
12 <property name="destroy_with_parent">False</property>12 <property name="destroy_with_parent">False</property>
13 <property name="icon">synaptic_mini.xpm</property>
14 <property name="has_separator">False</property>13 <property name="has_separator">False</property>
15 <child internal-child="vbox">14 <child internal-child="vbox">
16 <object class="GtkVBox" id="dialog-vbox1">15 <object class="GtkVBox" id="dialog-vbox1">
1716
=== modified file 'gtk/gtkbuilder/dialog_conffile.ui'
--- gtk/gtkbuilder/dialog_conffile.ui 2010-10-06 15:22:41 +0000
+++ gtk/gtkbuilder/dialog_conffile.ui 2012-04-10 17:44:21 +0000
@@ -10,7 +10,6 @@
10 <property name="modal">True</property>10 <property name="modal">True</property>
11 <property name="resizable">True</property>11 <property name="resizable">True</property>
12 <property name="destroy_with_parent">False</property>12 <property name="destroy_with_parent">False</property>
13 <property name="icon">synaptic_mini.xpm</property>
14 <property name="decorated">True</property>13 <property name="decorated">True</property>
15 <property name="skip_taskbar_hint">False</property>14 <property name="skip_taskbar_hint">False</property>
16 <property name="skip_pager_hint">False</property>15 <property name="skip_pager_hint">False</property>
1716
=== modified file 'gtk/gtkbuilder/dialog_disc_label.ui'
--- gtk/gtkbuilder/dialog_disc_label.ui 2010-10-06 15:22:41 +0000
+++ gtk/gtkbuilder/dialog_disc_label.ui 2012-04-10 17:44:21 +0000
@@ -10,7 +10,6 @@
10 <property name="modal">True</property>10 <property name="modal">True</property>
11 <property name="resizable">False</property>11 <property name="resizable">False</property>
12 <property name="destroy_with_parent">False</property>12 <property name="destroy_with_parent">False</property>
13 <property name="icon">synaptic_mini.xpm</property>
14 <property name="has_separator">False</property>13 <property name="has_separator">False</property>
15 <child internal-child="vbox">14 <child internal-child="vbox">
16 <object class="GtkVBox" id="dialog-vbox1">15 <object class="GtkVBox" id="dialog-vbox1">
1716
=== modified file 'gtk/gtkbuilder/dialog_download_error.ui'
--- gtk/gtkbuilder/dialog_download_error.ui 2010-10-06 15:22:41 +0000
+++ gtk/gtkbuilder/dialog_download_error.ui 2012-04-10 17:44:21 +0000
@@ -12,7 +12,6 @@
12 <property name="default_height">350</property>12 <property name="default_height">350</property>
13 <property name="resizable">True</property>13 <property name="resizable">True</property>
14 <property name="destroy_with_parent">False</property>14 <property name="destroy_with_parent">False</property>
15 <property name="icon">synaptic_mini.xpm</property>
16 <property name="decorated">True</property>15 <property name="decorated">True</property>
17 <property name="skip_taskbar_hint">False</property>16 <property name="skip_taskbar_hint">False</property>
18 <property name="skip_pager_hint">False</property>17 <property name="skip_pager_hint">False</property>
1918
=== modified file 'gtk/gtkbuilder/dialog_example.ui'
--- gtk/gtkbuilder/dialog_example.ui 2010-10-06 15:22:41 +0000
+++ gtk/gtkbuilder/dialog_example.ui 2012-04-10 17:44:21 +0000
@@ -10,7 +10,6 @@
10 <property name="modal">True</property>10 <property name="modal">True</property>
11 <property name="resizable">False</property>11 <property name="resizable">False</property>
12 <property name="destroy_with_parent">False</property>12 <property name="destroy_with_parent">False</property>
13 <property name="icon">synaptic_mini.xpm</property>
14 <property name="decorated">True</property>13 <property name="decorated">True</property>
15 <property name="skip_taskbar_hint">False</property>14 <property name="skip_taskbar_hint">False</property>
16 <property name="skip_pager_hint">False</property>15 <property name="skip_pager_hint">False</property>
1716
=== modified file 'gtk/gtkbuilder/dialog_new_repositroy.ui'
--- gtk/gtkbuilder/dialog_new_repositroy.ui 2010-10-06 15:22:41 +0000
+++ gtk/gtkbuilder/dialog_new_repositroy.ui 2012-04-10 17:44:21 +0000
@@ -10,7 +10,6 @@
10 <property name="modal">False</property>10 <property name="modal">False</property>
11 <property name="resizable">False</property>11 <property name="resizable">False</property>
12 <property name="destroy_with_parent">False</property>12 <property name="destroy_with_parent">False</property>
13 <property name="icon">synaptic_mini.xpm</property>
14 <child>13 <child>
15 <object class="GtkVBox" id="vbox1">14 <object class="GtkVBox" id="vbox1">
16 <property name="visible">True</property>15 <property name="visible">True</property>
1716
=== modified file 'gtk/gtkbuilder/dialog_quit.ui'
--- gtk/gtkbuilder/dialog_quit.ui 2010-10-06 15:22:41 +0000
+++ gtk/gtkbuilder/dialog_quit.ui 2012-04-10 17:44:21 +0000
@@ -10,7 +10,6 @@
10 <property name="modal">False</property>10 <property name="modal">False</property>
11 <property name="resizable">False</property>11 <property name="resizable">False</property>
12 <property name="destroy_with_parent">False</property>12 <property name="destroy_with_parent">False</property>
13 <property name="icon">synaptic_mini.xpm</property>
14 <property name="has_separator">False</property>13 <property name="has_separator">False</property>
15 <child internal-child="vbox">14 <child internal-child="vbox">
16 <object class="GtkVBox" id="dialog-vbox1">15 <object class="GtkVBox" id="dialog-vbox1">
1716
=== modified file 'gtk/gtkbuilder/dialog_task_descr.ui'
--- gtk/gtkbuilder/dialog_task_descr.ui 2010-10-06 15:22:41 +0000
+++ gtk/gtkbuilder/dialog_task_descr.ui 2012-04-10 17:44:21 +0000
@@ -12,7 +12,6 @@
12 <property name="modal">True</property>12 <property name="modal">True</property>
13 <property name="resizable">True</property>13 <property name="resizable">True</property>
14 <property name="destroy_with_parent">False</property>14 <property name="destroy_with_parent">False</property>
15 <property name="icon">synaptic_mini.xpm</property>
16 <property name="has_separator">False</property>15 <property name="has_separator">False</property>
17 <child internal-child="vbox">16 <child internal-child="vbox">
18 <object class="GtkVBox" id="dialog-vbox1">17 <object class="GtkVBox" id="dialog-vbox1">
1918
=== modified file 'gtk/gtkbuilder/dialog_unmet.ui'
--- gtk/gtkbuilder/dialog_unmet.ui 2010-10-06 15:22:41 +0000
+++ gtk/gtkbuilder/dialog_unmet.ui 2012-04-10 17:44:21 +0000
@@ -12,7 +12,6 @@
12 <property name="default_height">350</property>12 <property name="default_height">350</property>
13 <property name="resizable">True</property>13 <property name="resizable">True</property>
14 <property name="destroy_with_parent">False</property>14 <property name="destroy_with_parent">False</property>
15 <property name="icon">synaptic_mini.xpm</property>
16 <property name="has_separator">False</property>15 <property name="has_separator">False</property>
17 <child internal-child="vbox">16 <child internal-child="vbox">
18 <object class="GtkVBox" id="dialog-vbox1">17 <object class="GtkVBox" id="dialog-vbox1">
1918
=== modified file 'gtk/gtkbuilder/dialog_update_failed.ui'
--- gtk/gtkbuilder/dialog_update_failed.ui 2010-10-06 15:22:41 +0000
+++ gtk/gtkbuilder/dialog_update_failed.ui 2012-04-10 17:44:21 +0000
@@ -12,7 +12,6 @@
12 <property name="default_height">350</property>12 <property name="default_height">350</property>
13 <property name="resizable">True</property>13 <property name="resizable">True</property>
14 <property name="destroy_with_parent">False</property>14 <property name="destroy_with_parent">False</property>
15 <property name="icon">synaptic_mini.xpm</property>
16 <property name="has_separator">False</property>15 <property name="has_separator">False</property>
17 <child internal-child="vbox">16 <child internal-child="vbox">
18 <object class="GtkVBox" id="dialog-vbox1">17 <object class="GtkVBox" id="dialog-vbox1">
1918
=== modified file 'gtk/gtkbuilder/dialog_update_outdated.ui'
--- gtk/gtkbuilder/dialog_update_outdated.ui 2010-10-06 15:22:41 +0000
+++ gtk/gtkbuilder/dialog_update_outdated.ui 2012-04-10 17:44:21 +0000
@@ -10,7 +10,6 @@
10 <property name="modal">False</property>10 <property name="modal">False</property>
11 <property name="resizable">False</property>11 <property name="resizable">False</property>
12 <property name="destroy_with_parent">False</property>12 <property name="destroy_with_parent">False</property>
13 <property name="icon">synaptic_mini.xpm</property>
14 <property name="decorated">True</property>13 <property name="decorated">True</property>
15 <property name="skip_taskbar_hint">False</property>14 <property name="skip_taskbar_hint">False</property>
16 <property name="skip_pager_hint">False</property>15 <property name="skip_pager_hint">False</property>
1716
=== modified file 'gtk/gtkbuilder/dialog_upgrade.ui'
--- gtk/gtkbuilder/dialog_upgrade.ui 2010-10-06 15:22:41 +0000
+++ gtk/gtkbuilder/dialog_upgrade.ui 2012-04-10 17:44:21 +0000
@@ -10,7 +10,6 @@
10 <property name="modal">False</property>10 <property name="modal">False</property>
11 <property name="resizable">False</property>11 <property name="resizable">False</property>
12 <property name="destroy_with_parent">False</property>12 <property name="destroy_with_parent">False</property>
13 <property name="icon">synaptic_mini.xpm</property>
14 <property name="decorated">True</property>13 <property name="decorated">True</property>
15 <property name="skip_taskbar_hint">False</property>14 <property name="skip_taskbar_hint">False</property>
16 <property name="skip_pager_hint">False</property>15 <property name="skip_pager_hint">False</property>
1716
=== modified file 'gtk/gtkbuilder/dialog_welcome.ui'
--- gtk/gtkbuilder/dialog_welcome.ui 2010-10-07 22:23:12 +0000
+++ gtk/gtkbuilder/dialog_welcome.ui 2012-04-10 17:44:21 +0000
@@ -10,7 +10,6 @@
10 <property name="modal">False</property>10 <property name="modal">False</property>
11 <property name="resizable">False</property>11 <property name="resizable">False</property>
12 <property name="destroy_with_parent">False</property>12 <property name="destroy_with_parent">False</property>
13 <property name="icon">synaptic_mini.xpm</property>
14 <property name="decorated">True</property>13 <property name="decorated">True</property>
15 <property name="skip_taskbar_hint">False</property>14 <property name="skip_taskbar_hint">False</property>
16 <property name="skip_pager_hint">False</property>15 <property name="skip_pager_hint">False</property>
1716
=== modified file 'gtk/gtkbuilder/window_about.ui'
--- gtk/gtkbuilder/window_about.ui 2012-03-13 08:48:27 +0000
+++ gtk/gtkbuilder/window_about.ui 2012-04-10 17:44:21 +0000
@@ -10,7 +10,6 @@
10 <property name="modal">False</property>10 <property name="modal">False</property>
11 <property name="resizable">False</property>11 <property name="resizable">False</property>
12 <property name="destroy_with_parent">False</property>12 <property name="destroy_with_parent">False</property>
13 <property name="icon">synaptic_mini.xpm</property>
14 <property name="decorated">True</property>13 <property name="decorated">True</property>
15 <property name="skip_taskbar_hint">False</property>14 <property name="skip_taskbar_hint">False</property>
16 <property name="skip_pager_hint">False</property>15 <property name="skip_pager_hint">False</property>
@@ -269,7 +268,6 @@
269 <property name="modal">False</property>268 <property name="modal">False</property>
270 <property name="resizable">False</property>269 <property name="resizable">False</property>
271 <property name="destroy_with_parent">False</property>270 <property name="destroy_with_parent">False</property>
272 <property name="icon">synaptic_mini.xpm</property>
273 <property name="decorated">True</property>271 <property name="decorated">True</property>
274 <property name="skip_taskbar_hint">False</property>272 <property name="skip_taskbar_hint">False</property>
275 <property name="skip_pager_hint">False</property>273 <property name="skip_pager_hint">False</property>
276274
=== modified file 'gtk/gtkbuilder/window_changes.ui'
--- gtk/gtkbuilder/window_changes.ui 2010-10-06 15:22:41 +0000
+++ gtk/gtkbuilder/window_changes.ui 2012-04-10 17:44:21 +0000
@@ -12,7 +12,6 @@
12 <property name="default_height">350</property>12 <property name="default_height">350</property>
13 <property name="resizable">True</property>13 <property name="resizable">True</property>
14 <property name="destroy_with_parent">False</property>14 <property name="destroy_with_parent">False</property>
15 <property name="icon">synaptic_mini.xpm</property>
16 <property name="decorated">True</property>15 <property name="decorated">True</property>
17 <property name="skip_taskbar_hint">True</property>16 <property name="skip_taskbar_hint">True</property>
18 <property name="skip_pager_hint">False</property>17 <property name="skip_pager_hint">False</property>
1918
=== modified file 'gtk/gtkbuilder/window_details.ui'
--- gtk/gtkbuilder/window_details.ui 2010-11-12 21:51:18 +0000
+++ gtk/gtkbuilder/window_details.ui 2012-04-10 17:44:21 +0000
@@ -49,6 +49,7 @@
49 <property name="visible">True</property>49 <property name="visible">True</property>
50 <property name="xalign">0</property>50 <property name="xalign">0</property>
51 <property name="use_markup">True</property>51 <property name="use_markup">True</property>
52 <property name="selectable">True</property>
52 </object>53 </object>
53 <packing>54 <packing>
54 <property name="left_attach">1</property>55 <property name="left_attach">1</property>
@@ -94,6 +95,7 @@
94 <object class="GtkLabel" id="label_priority">95 <object class="GtkLabel" id="label_priority">
95 <property name="visible">True</property>96 <property name="visible">True</property>
96 <property name="xalign">0</property>97 <property name="xalign">0</property>
98 <property name="selectable">True</property>
97 </object>99 </object>
98 <packing>100 <packing>
99 <property name="left_attach">1</property>101 <property name="left_attach">1</property>
@@ -154,6 +156,7 @@
154 <child>156 <child>
155 <object class="GtkLabel" id="label_state">157 <object class="GtkLabel" id="label_state">
156 <property name="visible">True</property>158 <property name="visible">True</property>
159 <property name="selectable">True</property>
157 </object>160 </object>
158 <packing>161 <packing>
159 <property name="expand">False</property>162 <property name="expand">False</property>
@@ -328,6 +331,7 @@
328 <object class="GtkLabel" id="label_installed_size">331 <object class="GtkLabel" id="label_installed_size">
329 <property name="visible">True</property>332 <property name="visible">True</property>
330 <property name="xalign">0</property>333 <property name="xalign">0</property>
334 <property name="selectable">True</property>
331 </object>335 </object>
332 <packing>336 <packing>
333 <property name="left_attach">1</property>337 <property name="left_attach">1</property>
@@ -447,6 +451,7 @@
447 <object class="GtkLabel" id="label_latest_size">451 <object class="GtkLabel" id="label_latest_size">
448 <property name="visible">True</property>452 <property name="visible">True</property>
449 <property name="xalign">0</property>453 <property name="xalign">0</property>
454 <property name="selectable">True</property>
450 </object>455 </object>
451 <packing>456 <packing>
452 <property name="left_attach">1</property>457 <property name="left_attach">1</property>
@@ -461,6 +466,7 @@
461 <object class="GtkLabel" id="label_latest_download_size">466 <object class="GtkLabel" id="label_latest_download_size">
462 <property name="visible">True</property>467 <property name="visible">True</property>
463 <property name="xalign">0</property>468 <property name="xalign">0</property>
469 <property name="selectable">True</property>
464 </object>470 </object>
465 <packing>471 <packing>
466 <property name="left_attach">1</property>472 <property name="left_attach">1</property>
467473
=== modified file 'gtk/gtkbuilder/window_disc_name.ui'
--- gtk/gtkbuilder/window_disc_name.ui 2010-10-06 15:22:41 +0000
+++ gtk/gtkbuilder/window_disc_name.ui 2012-04-10 17:44:21 +0000
@@ -10,7 +10,6 @@
10 <property name="modal">True</property>10 <property name="modal">True</property>
11 <property name="resizable">False</property>11 <property name="resizable">False</property>
12 <property name="destroy_with_parent">False</property>12 <property name="destroy_with_parent">False</property>
13 <property name="icon">synaptic_mini.xpm</property>
14 <child>13 <child>
15 <object class="GtkVBox" id="vbox1">14 <object class="GtkVBox" id="vbox1">
16 <property name="visible">True</property>15 <property name="visible">True</property>
1716
=== modified file 'gtk/gtkbuilder/window_fetch.ui'
--- gtk/gtkbuilder/window_fetch.ui 2010-10-06 15:22:41 +0000
+++ gtk/gtkbuilder/window_fetch.ui 2012-04-10 17:44:21 +0000
@@ -10,7 +10,6 @@
10 <property name="modal">True</property>10 <property name="modal">True</property>
11 <property name="resizable">True</property>11 <property name="resizable">True</property>
12 <property name="destroy_with_parent">False</property>12 <property name="destroy_with_parent">False</property>
13 <property name="icon">synaptic.xpm</property>
14 <property name="decorated">True</property>13 <property name="decorated">True</property>
15 <property name="skip_taskbar_hint">False</property>14 <property name="skip_taskbar_hint">False</property>
16 <property name="skip_pager_hint">False</property>15 <property name="skip_pager_hint">False</property>
@@ -148,7 +147,7 @@
148 <child type="label">147 <child type="label">
149 <object class="GtkLabel" id="label3">148 <object class="GtkLabel" id="label3">
150 <property name="visible">True</property>149 <property name="visible">True</property>
151 <property name="label" translatable="yes">Show for individual files</property>150 <property name="label" translatable="yes">Show individual files</property>
152 <property name="use_underline">False</property>151 <property name="use_underline">False</property>
153 <property name="use_markup">False</property>152 <property name="use_markup">False</property>
154 <property name="justify">GTK_JUSTIFY_LEFT</property>153 <property name="justify">GTK_JUSTIFY_LEFT</property>
155154
=== modified file 'gtk/gtkbuilder/window_filters.ui'
--- gtk/gtkbuilder/window_filters.ui 2010-11-08 23:02:53 +0000
+++ gtk/gtkbuilder/window_filters.ui 2012-04-10 17:44:21 +0000
@@ -48,7 +48,6 @@
48 <property name="modal">True</property>48 <property name="modal">True</property>
49 <property name="default_width">640</property>49 <property name="default_width">640</property>
50 <property name="default_height">480</property>50 <property name="default_height">480</property>
51 <property name="icon">synaptic_mini.xpm</property>
52 <property name="type_hint">dialog</property>51 <property name="type_hint">dialog</property>
53 <child internal-child="vbox">52 <child internal-child="vbox">
54 <object class="GtkVBox" id="dialog-vbox1">53 <object class="GtkVBox" id="dialog-vbox1">
@@ -112,7 +111,6 @@
112 <property name="can_default">True</property>111 <property name="can_default">True</property>
113 <property name="receives_default">False</property>112 <property name="receives_default">False</property>
114 <property name="use_stock">True</property>113 <property name="use_stock">True</property>
115 <signal name="clicked" handler="on_button_filters_add_clicked" swapped="no"/>
116 </object>114 </object>
117 <packing>115 <packing>
118 <property name="expand">False</property>116 <property name="expand">False</property>
@@ -128,7 +126,6 @@
128 <property name="can_default">True</property>126 <property name="can_default">True</property>
129 <property name="receives_default">False</property>127 <property name="receives_default">False</property>
130 <property name="use_stock">True</property>128 <property name="use_stock">True</property>
131 <signal name="clicked" handler="on_button_filters_remove_clicked" swapped="no"/>
132 </object>129 </object>
133 <packing>130 <packing>
134 <property name="expand">False</property>131 <property name="expand">False</property>
@@ -533,7 +530,7 @@
533 <property name="visible">True</property>530 <property name="visible">True</property>
534 <property name="can_focus">True</property>531 <property name="can_focus">True</property>
535 <property name="receives_default">False</property>532 <property name="receives_default">False</property>
536 <property name="tooltip_text" translatable="yes">Installed automatically as part of a dependency</property>533 <property name="tooltip_text" translatable="yes">Packages installed automatically as part of a dependency</property>
537 <property name="use_underline">True</property>534 <property name="use_underline">True</property>
538 <property name="draw_indicator">True</property>535 <property name="draw_indicator">True</property>
539 </object>536 </object>
@@ -549,7 +546,7 @@
549 <property name="visible">True</property>546 <property name="visible">True</property>
550 <property name="can_focus">True</property>547 <property name="can_focus">True</property>
551 <property name="receives_default">False</property>548 <property name="receives_default">False</property>
552 <property name="tooltip_text" translatable="yes">Automatic installed but no longer required by any other package</property>549 <property name="tooltip_text" translatable="yes">Packages installed automatically but no longer required by any other package</property>
553 <property name="use_underline">True</property>550 <property name="use_underline">True</property>
554 <property name="draw_indicator">True</property>551 <property name="draw_indicator">True</property>
555 </object>552 </object>
@@ -581,7 +578,7 @@
581 <property name="visible">True</property>578 <property name="visible">True</property>
582 <property name="can_focus">True</property>579 <property name="can_focus">True</property>
583 <property name="receives_default">False</property>580 <property name="receives_default">False</property>
584 <property name="tooltip_text" translatable="yes">Installed manually (not as a dependency by something else)</property>581 <property name="tooltip_text" translatable="yes">Packages installed manually (not as a dependency of something else)</property>
585 <property name="use_underline">True</property>582 <property name="use_underline">True</property>
586 <property name="draw_indicator">True</property>583 <property name="draw_indicator">True</property>
587 </object>584 </object>
588585
=== modified file 'gtk/gtkbuilder/window_find.ui'
--- gtk/gtkbuilder/window_find.ui 2010-11-12 19:32:38 +0000
+++ gtk/gtkbuilder/window_find.ui 2012-04-10 17:44:21 +0000
@@ -5,7 +5,6 @@
5 <object class="GtkDialog" id="window_find">5 <object class="GtkDialog" id="window_find">
6 <property name="visible">True</property>6 <property name="visible">True</property>
7 <property name="border_width">6</property>7 <property name="border_width">6</property>
8 <property name="icon">synaptic_mini.xpm</property>
9 <property name="type_hint">dialog</property>8 <property name="type_hint">dialog</property>
10 <child internal-child="vbox">9 <child internal-child="vbox">
11 <object class="GtkVBox" id="dialog-vbox2">10 <object class="GtkVBox" id="dialog-vbox2">
1211
=== modified file 'gtk/gtkbuilder/window_iconlegend.ui'
--- gtk/gtkbuilder/window_iconlegend.ui 2010-10-06 15:22:41 +0000
+++ gtk/gtkbuilder/window_iconlegend.ui 2012-04-10 17:44:21 +0000
@@ -10,7 +10,6 @@
10 <property name="modal">False</property>10 <property name="modal">False</property>
11 <property name="resizable">False</property>11 <property name="resizable">False</property>
12 <property name="destroy_with_parent">False</property>12 <property name="destroy_with_parent">False</property>
13 <property name="icon">synaptic_mini.xpm</property>
14 <property name="has_separator">False</property>13 <property name="has_separator">False</property>
15 <child internal-child="vbox">14 <child internal-child="vbox">
16 <object class="GtkVBox" id="dialog-vbox1">15 <object class="GtkVBox" id="dialog-vbox1">
1716
=== modified file 'gtk/gtkbuilder/window_logview.ui'
--- gtk/gtkbuilder/window_logview.ui 2010-10-06 15:22:41 +0000
+++ gtk/gtkbuilder/window_logview.ui 2012-04-10 17:44:21 +0000
@@ -11,7 +11,6 @@
11 <property name="default_height">400</property>11 <property name="default_height">400</property>
12 <property name="resizable">True</property>12 <property name="resizable">True</property>
13 <property name="destroy_with_parent">False</property>13 <property name="destroy_with_parent">False</property>
14 <property name="icon">synaptic_mini.xpm</property>
15 <property name="decorated">True</property>14 <property name="decorated">True</property>
16 <property name="skip_taskbar_hint">False</property>15 <property name="skip_taskbar_hint">False</property>
17 <property name="skip_pager_hint">False</property>16 <property name="skip_pager_hint">False</property>
1817
=== modified file 'gtk/gtkbuilder/window_main.ui'
--- gtk/gtkbuilder/window_main.ui 2012-02-13 12:14:51 +0000
+++ gtk/gtkbuilder/window_main.ui 2012-04-10 17:44:21 +0000
@@ -543,7 +543,7 @@
543 <property name="use_underline">True</property>543 <property name="use_underline">True</property>
544 <property name="image">image16</property>544 <property name="image">image16</property>
545 <property name="use_stock">False</property>545 <property name="use_stock">False</property>
546 <accelerator key="O" signal="activate" modifiers="GDK_CONTROL_MASK"/>546 <accelerator key="Return" signal="activate" modifiers="GDK_MOD1_MASK"/>
547 <signal name="activate" handler="on_button_details_clicked" swapped="no"/>547 <signal name="activate" handler="on_button_details_clicked" swapped="no"/>
548 </object>548 </object>
549 </child>549 </child>
550550
=== modified file 'gtk/gtkbuilder/window_preferences.ui'
--- gtk/gtkbuilder/window_preferences.ui 2011-02-09 13:25:14 +0000
+++ gtk/gtkbuilder/window_preferences.ui 2012-04-10 17:44:21 +0000
@@ -26,12 +26,21 @@
26 <column type="gchararray"/>26 <column type="gchararray"/>
27 </columns>27 </columns>
28 </object>28 </object>
29 <object class="GtkImage" id="move_down_image">
30 <property name="visible">True</property>
31 <property name="can_focus">False</property>
32 <property name="stock">gtk-go-down</property>
33 </object>
34 <object class="GtkImage" id="move_up_image">
35 <property name="visible">True</property>
36 <property name="can_focus">False</property>
37 <property name="stock">gtk-go-up</property>
38 </object>
29 <object class="GtkWindow" id="window_preferences">39 <object class="GtkWindow" id="window_preferences">
30 <property name="title" translatable="yes">Preferences</property>40 <property name="title" translatable="yes">Preferences</property>
31 <property name="resizable">False</property>41 <property name="resizable">False</property>
32 <property name="modal">True</property>42 <property name="modal">True</property>
33 <property name="window_position">center</property>43 <property name="window_position">center</property>
34 <property name="icon">synaptic_mini.xpm</property>
35 <child>44 <child>
36 <object class="GtkVBox" id="vbox8">45 <object class="GtkVBox" id="vbox8">
37 <property name="visible">True</property>46 <property name="visible">True</property>
@@ -515,49 +524,19 @@
515 <child>524 <child>
516 <object class="GtkVBox" id="vbox39">525 <object class="GtkVBox" id="vbox39">
517 <property name="visible">True</property>526 <property name="visible">True</property>
527 <property name="can_focus">False</property>
518 <property name="spacing">6</property>528 <property name="spacing">6</property>
519 <child>529 <child>
520 <object class="GtkButton" id="button_column_up">530 <object class="GtkButton" id="button_column_up">
531 <property name="label" translatable="yes">Move _Up</property>
532 <property name="use_action_appearance">False</property>
521 <property name="visible">True</property>533 <property name="visible">True</property>
522 <property name="can_focus">True</property>534 <property name="can_focus">True</property>
523 <property name="receives_default">False</property>535 <property name="receives_default">False</property>
524 <signal name="clicked" handler="on_button_column_up_clicked"/>536 <property name="use_action_appearance">False</property>
525 <child>537 <property name="image">move_up_image</property>
526 <object class="GtkAlignment" id="alignment4">538 <property name="use_underline">True</property>
527 <property name="visible">True</property>539 <signal name="clicked" handler="on_button_column_up_clicked" swapped="no"/>
528 <property name="xscale">0</property>
529 <property name="yscale">0</property>
530 <child>
531 <object class="GtkHBox" id="hbox80">
532 <property name="visible">True</property>
533 <property name="spacing">2</property>
534 <child>
535 <object class="GtkImage" id="image11">
536 <property name="visible">True</property>
537 <property name="stock">gtk-go-up</property>
538 </object>
539 <packing>
540 <property name="expand">False</property>
541 <property name="fill">False</property>
542 <property name="position">0</property>
543 </packing>
544 </child>
545 <child>
546 <object class="GtkLabel" id="label163">
547 <property name="visible">True</property>
548 <property name="label" translatable="yes">Move _Up</property>
549 <property name="use_underline">True</property>
550 </object>
551 <packing>
552 <property name="expand">False</property>
553 <property name="fill">False</property>
554 <property name="position">1</property>
555 </packing>
556 </child>
557 </object>
558 </child>
559 </object>
560 </child>
561 </object>540 </object>
562 <packing>541 <packing>
563 <property name="expand">False</property>542 <property name="expand">False</property>
@@ -567,46 +546,15 @@
567 </child>546 </child>
568 <child>547 <child>
569 <object class="GtkButton" id="button_column_down">548 <object class="GtkButton" id="button_column_down">
549 <property name="label" translatable="yes">Move D_own</property>
550 <property name="use_action_appearance">False</property>
570 <property name="visible">True</property>551 <property name="visible">True</property>
571 <property name="can_focus">True</property>552 <property name="can_focus">True</property>
572 <property name="receives_default">False</property>553 <property name="receives_default">False</property>
573 <signal name="clicked" handler="on_button_column_down_clicked"/>554 <property name="use_action_appearance">False</property>
574 <child>555 <property name="image">move_down_image</property>
575 <object class="GtkAlignment" id="alignment5">556 <property name="use_underline">True</property>
576 <property name="visible">True</property>557 <signal name="clicked" handler="on_button_column_down_clicked" swapped="no"/>
577 <property name="xscale">0</property>
578 <property name="yscale">0</property>
579 <child>
580 <object class="GtkHBox" id="hbox81">
581 <property name="visible">True</property>
582 <property name="spacing">2</property>
583 <child>
584 <object class="GtkImage" id="image12">
585 <property name="visible">True</property>
586 <property name="stock">gtk-go-down</property>
587 </object>
588 <packing>
589 <property name="expand">False</property>
590 <property name="fill">False</property>
591 <property name="position">0</property>
592 </packing>
593 </child>
594 <child>
595 <object class="GtkLabel" id="label164">
596 <property name="visible">True</property>
597 <property name="label" translatable="yes">Move D_own</property>
598 <property name="use_underline">True</property>
599 </object>
600 <packing>
601 <property name="expand">False</property>
602 <property name="fill">False</property>
603 <property name="position">1</property>
604 </packing>
605 </child>
606 </object>
607 </child>
608 </object>
609 </child>
610 </object>558 </object>
611 <packing>559 <packing>
612 <property name="expand">False</property>560 <property name="expand">False</property>
613561
=== modified file 'gtk/gtkbuilder/window_rgdebinstall_progress.ui'
--- gtk/gtkbuilder/window_rgdebinstall_progress.ui 2010-10-06 15:22:41 +0000
+++ gtk/gtkbuilder/window_rgdebinstall_progress.ui 2012-04-10 17:44:21 +0000
@@ -9,7 +9,6 @@
9 <property name="modal">True</property>9 <property name="modal">True</property>
10 <property name="resizable">False</property>10 <property name="resizable">False</property>
11 <property name="destroy_with_parent">False</property>11 <property name="destroy_with_parent">False</property>
12 <property name="icon">synaptic_mini.xpm</property>
13 <property name="decorated">True</property>12 <property name="decorated">True</property>
14 <property name="skip_taskbar_hint">False</property>13 <property name="skip_taskbar_hint">False</property>
15 <property name="skip_pager_hint">False</property>14 <property name="skip_pager_hint">False</property>
1615
=== modified file 'gtk/gtkbuilder/window_rginstall_progress.ui'
--- gtk/gtkbuilder/window_rginstall_progress.ui 2010-10-06 15:22:41 +0000
+++ gtk/gtkbuilder/window_rginstall_progress.ui 2012-04-10 17:44:21 +0000
@@ -10,7 +10,6 @@
10 <property name="modal">True</property>10 <property name="modal">True</property>
11 <property name="resizable">False</property>11 <property name="resizable">False</property>
12 <property name="destroy_with_parent">False</property>12 <property name="destroy_with_parent">False</property>
13 <property name="icon">synaptic_mini.xpm</property>
14 <child>13 <child>
15 <object class="GtkVBox" id="vbox11">14 <object class="GtkVBox" id="vbox11">
16 <property name="visible">True</property>15 <property name="visible">True</property>
1716
=== modified file 'gtk/gtkbuilder/window_setopt.ui'
--- gtk/gtkbuilder/window_setopt.ui 2010-10-07 18:13:47 +0000
+++ gtk/gtkbuilder/window_setopt.ui 2012-04-10 17:44:21 +0000
@@ -12,7 +12,6 @@
12 <property name="default_height">140</property>12 <property name="default_height">140</property>
13 <property name="resizable">False</property>13 <property name="resizable">False</property>
14 <property name="destroy_with_parent">False</property>14 <property name="destroy_with_parent">False</property>
15 <property name="icon">synaptic_mini.xpm</property>
16 <property name="decorated">True</property>15 <property name="decorated">True</property>
17 <property name="skip_taskbar_hint">False</property>16 <property name="skip_taskbar_hint">False</property>
18 <property name="skip_pager_hint">False</property>17 <property name="skip_pager_hint">False</property>
1918
=== modified file 'gtk/gtkbuilder/window_summary.ui'
--- gtk/gtkbuilder/window_summary.ui 2010-10-06 15:22:41 +0000
+++ gtk/gtkbuilder/window_summary.ui 2012-04-10 17:44:21 +0000
@@ -9,7 +9,6 @@
9 <property name="modal">True</property>9 <property name="modal">True</property>
10 <property name="resizable">True</property>10 <property name="resizable">True</property>
11 <property name="destroy_with_parent">False</property>11 <property name="destroy_with_parent">False</property>
12 <property name="icon">synaptic_mini.xpm</property>
13 <property name="decorated">True</property>12 <property name="decorated">True</property>
14 <property name="skip_taskbar_hint">True</property>13 <property name="skip_taskbar_hint">True</property>
15 <property name="skip_pager_hint">False</property>14 <property name="skip_pager_hint">False</property>
@@ -46,6 +45,7 @@
46 <property name="tooltip-text" translatable="yes">Apply all marked changes</property>45 <property name="tooltip-text" translatable="yes">Apply all marked changes</property>
47 <property name="can_default">True</property>46 <property name="can_default">True</property>
48 <property name="has_default">True</property>47 <property name="has_default">True</property>
48 <property name="has_focus">True</property>
49 <property name="can_focus">True</property>49 <property name="can_focus">True</property>
50 <property name="label">gtk-apply</property>50 <property name="label">gtk-apply</property>
51 <property name="use_stock">True</property>51 <property name="use_stock">True</property>
@@ -181,7 +181,7 @@
181 <property name="headers_visible">False</property>181 <property name="headers_visible">False</property>
182 <property name="rules_hint">False</property>182 <property name="rules_hint">False</property>
183 <property name="reorderable">False</property>183 <property name="reorderable">False</property>
184 <property name="enable_search">True</property>184 <property name="enable_search">False</property>
185 <property name="fixed_height_mode">False</property>185 <property name="fixed_height_mode">False</property>
186 <property name="hover_selection">False</property>186 <property name="hover_selection">False</property>
187 <property name="hover_expand">False</property>187 <property name="hover_expand">False</property>
188188
=== modified file 'gtk/gtkbuilder/window_tasks.ui'
--- gtk/gtkbuilder/window_tasks.ui 2010-10-06 15:22:41 +0000
+++ gtk/gtkbuilder/window_tasks.ui 2012-04-10 17:44:21 +0000
@@ -12,7 +12,6 @@
12 <property name="default_height">400</property>12 <property name="default_height">400</property>
13 <property name="resizable">True</property>13 <property name="resizable">True</property>
14 <property name="destroy_with_parent">False</property>14 <property name="destroy_with_parent">False</property>
15 <property name="icon">synaptic_mini.xpm</property>
16 <child>15 <child>
17 <object class="GtkVBox" id="vbox1">16 <object class="GtkVBox" id="vbox1">
18 <property name="visible">True</property>17 <property name="visible">True</property>
1918
=== modified file 'gtk/gtkbuilder/window_zvtinstallprogress.ui'
--- gtk/gtkbuilder/window_zvtinstallprogress.ui 2010-10-06 15:22:41 +0000
+++ gtk/gtkbuilder/window_zvtinstallprogress.ui 2012-04-10 17:44:21 +0000
@@ -9,7 +9,6 @@
9 <property name="modal">False</property>9 <property name="modal">False</property>
10 <property name="resizable">True</property>10 <property name="resizable">True</property>
11 <property name="destroy_with_parent">False</property>11 <property name="destroy_with_parent">False</property>
12 <property name="icon">synaptic_mini.xpm</property>
13 <property name="decorated">True</property>12 <property name="decorated">True</property>
14 <property name="skip_taskbar_hint">False</property>13 <property name="skip_taskbar_hint">False</property>
15 <property name="skip_pager_hint">False</property>14 <property name="skip_pager_hint">False</property>
1615
=== modified file 'gtk/rgdebinstallprogress.cc'
--- gtk/rgdebinstallprogress.cc 2010-12-07 14:48:38 +0000
+++ gtk/rgdebinstallprogress.cc 2012-04-10 17:44:21 +0000
@@ -669,7 +669,7 @@
669 return res;669 return res;
670670
671 // we need to send the fds from the pipe over a socket because671 // we need to send the fds from the pipe over a socket because
672 // §""!%&§/ vte_terminal closes all our FDs 672 // the vte_terminal closes all our FDs
673 _child_id = vte_terminal_forkpty(VTE_TERMINAL(_term),NULL,NULL,673 _child_id = vte_terminal_forkpty(VTE_TERMINAL(_term),NULL,NULL,
674 false,false,false);674 false,false,false);
675 if (_child_id < 0) {675 if (_child_id < 0) {
@@ -773,8 +773,8 @@
773 GtkWidget *img = GTK_WIDGET(gtk_builder_get_object(_builder, "image_finished"));773 GtkWidget *img = GTK_WIDGET(gtk_builder_get_object(_builder, "image_finished"));
774 switch(res) {774 switch(res) {
775 case 0: // success775 case 0: // success
776 gtk_image_set_from_file(GTK_IMAGE(img),776 gtk_image_set_from_icon_name(GTK_IMAGE(img),
777 PACKAGE_DATA_DIR"/pixmaps/synaptic.png");777 "synaptic", GTK_ICON_SIZE_DIALOG);
778 break;778 break;
779 case 1: // error779 case 1: // error
780 gtk_image_set_from_stock(GTK_IMAGE(img), GTK_STOCK_DIALOG_ERROR,780 gtk_image_set_from_stock(GTK_IMAGE(img), GTK_STOCK_DIALOG_ERROR,
781781
=== modified file 'gtk/rgfiltermanager.cc'
--- gtk/rgfiltermanager.cc 2011-02-10 08:35:34 +0000
+++ gtk/rgfiltermanager.cc 2012-04-10 17:44:21 +0000
@@ -96,7 +96,7 @@
96 "clicked",96 "clicked",
97 G_CALLBACK(addFilterAction), this);97 G_CALLBACK(addFilterAction), this);
9898
99 g_signal_connect(gtk_builder_get_object(_builder, "buttons_filters_remove"),99 g_signal_connect(gtk_builder_get_object(_builder, "button_filters_remove"),
100 "clicked",100 "clicked",
101 G_CALLBACK(removeFilterAction), this);101 G_CALLBACK(removeFilterAction), this);
102102
103103
=== modified file 'gtk/rggtkbuilderwindow.cc'
--- gtk/rggtkbuilderwindow.cc 2010-11-12 18:58:47 +0000
+++ gtk/rggtkbuilderwindow.cc 2012-04-10 17:44:21 +0000
@@ -71,6 +71,8 @@
7171
72 gtk_window_set_position(GTK_WINDOW(_win),72 gtk_window_set_position(GTK_WINDOW(_win),
73 GTK_WIN_POS_CENTER_ON_PARENT);73 GTK_WIN_POS_CENTER_ON_PARENT);
74 GdkPixbuf *icon = get_gdk_pixbuf( "synaptic" );
75 gtk_window_set_icon(GTK_WINDOW(_win), icon);
7476
75 g_free(filename);77 g_free(filename);
76 g_free(local_filename);78 g_free(local_filename);
@@ -117,6 +119,22 @@
117 return true;119 return true;
118}120}
119121
122bool RGGtkBuilderWindow::setMarkup(const char *widget_name, const char *value)
123{
124 GtkWidget *widget = GTK_WIDGET (gtk_builder_get_object (_builder, widget_name));
125 if (widget == NULL) {
126 cout << "widget == NULL with: " << widget_name << endl;
127 return false;
128 }
129
130 const gchar *utf8value=utf8(value);
131
132 if (!utf8value)
133 utf8value = _("N/A");
134 gtk_label_set_markup(GTK_LABEL(widget), utf8value);
135 return true;
136}
137
120bool RGGtkBuilderWindow::setLabel(const char *widget_name, const long value)138bool RGGtkBuilderWindow::setLabel(const char *widget_name, const long value)
121{139{
122 string strVal;140 string strVal;
123141
=== modified file 'gtk/rggtkbuilderwindow.h'
--- gtk/rggtkbuilderwindow.h 2010-10-06 21:07:41 +0000
+++ gtk/rggtkbuilderwindow.h 2012-04-10 17:44:21 +0000
@@ -53,6 +53,7 @@
5353
54 // functions to set various widgets54 // functions to set various widgets
55 bool setLabel(const char *name, const char *value);55 bool setLabel(const char *name, const char *value);
56 bool setMarkup(const char *widget_name, const char *value);
56 bool setLabel(const char *name, const long value);57 bool setLabel(const char *name, const long value);
57 bool setTextView(const char *widget_name, const char *value,58 bool setTextView(const char *widget_name, const char *value,
58 bool useHeadline=false);59 bool useHeadline=false);
5960
=== modified file 'gtk/rgmainwindow.cc'
--- gtk/rgmainwindow.cc 2012-03-02 09:41:07 +0000
+++ gtk/rgmainwindow.cc 2012-04-10 17:44:21 +0000
@@ -77,9 +77,6 @@
77#include "rgutils.h"77#include "rgutils.h"
78#include "sections_trans.h"78#include "sections_trans.h"
7979
80// icons and pixmaps
81#include "synaptic.xpm"
82
83#include "i18n.h"80#include "i18n.h"
8481
85// include it here because depcache.h hates us if we have it before82// include it here because depcache.h hates us if we have it before
@@ -491,8 +488,7 @@
491 RGMainWindow *me = (RGMainWindow *) data;488 RGMainWindow *me = (RGMainWindow *) data;
492 if (me->_blockActions)489 if (me->_blockActions)
493 return;490 return;
494 cout << "RGMainWindow::cbMenuAutoInstalledClickedn()" << endl;491
495
496 bool active = gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(self));492 bool active = gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(self));
497493
498 GtkTreeSelection *selection;494 GtkTreeSelection *selection;
@@ -1200,9 +1196,7 @@
1200 // here is a pointer to rgmainwindow for every widget that needs it1196 // here is a pointer to rgmainwindow for every widget that needs it
1201 g_object_set_data(G_OBJECT(_win), "me", this);1197 g_object_set_data(G_OBJECT(_win), "me", this);
12021198
12031199 GdkPixbuf *icon = get_gdk_pixbuf( "synaptic" );
1204 GdkPixbuf *icon = gdk_pixbuf_new_from_xpm_data((const char **)
1205 synaptic_xpm);
1206 gtk_window_set_icon(GTK_WINDOW(_win), icon);1200 gtk_window_set_icon(GTK_WINDOW(_win), icon);
12071201
1208 gtk_window_resize(GTK_WINDOW(_win),1202 gtk_window_resize(GTK_WINDOW(_win),
@@ -1890,10 +1884,13 @@
1890void RGMainWindow::pkgRemoveHelper(RPackage *pkg, bool purge, bool withDeps)1884void RGMainWindow::pkgRemoveHelper(RPackage *pkg, bool purge, bool withDeps)
1891{1885{
1892 if (pkg->getFlags() & RPackage::FImportant) {1886 if (pkg->getFlags() & RPackage::FImportant) {
1893 if (!_userDialog->confirm(_("Removing this package may render the "1887 gchar* warning = g_strdup_printf(_( "Removing package \"%s\" may render the "
1894 "system unusable.\n"1888 "system unusable.\n"
1895 "Are you sure you want to do that?"),1889 "Are you sure you want to do that?"),
1896 false)) {1890 pkg->name());
1891 bool confirmed = _userDialog->confirm(warning, false);
1892 g_free(warning);
1893 if (!confirmed) {
1897 return;1894 return;
1898 }1895 }
1899 }1896 }
@@ -2398,7 +2395,7 @@
2398 if(me->_pkgDetails == NULL)2395 if(me->_pkgDetails == NULL)
2399 me->_pkgDetails = new RGPkgDetailsWindow(me);2396 me->_pkgDetails = new RGPkgDetailsWindow(me);
24002397
2401 RGPkgDetailsWindow::fillInValues(me->_pkgDetails, pkg);2398 RGPkgDetailsWindow::fillInValues(me->_pkgDetails, pkg, true);
2402 me->_pkgDetails->show();2399 me->_pkgDetails->show();
2403}2400}
24042401
@@ -2465,7 +2462,7 @@
2465 dialog = gtk_message_dialog_new (GTK_WINDOW(me->window()),2462 dialog = gtk_message_dialog_new (GTK_WINDOW(me->window()),
2466 GTK_DIALOG_DESTROY_WITH_PARENT,2463 GTK_DIALOG_DESTROY_WITH_PARENT,
2467 GTK_MESSAGE_INFO,2464 GTK_MESSAGE_INFO,
2468 GTK_BUTTONS_CLOSE,2465 GTK_BUTTONS_NONE,
2469 _("Repositories changed"));2466 _("Repositories changed"));
2470 // TRANSLATORS: this message appears when the user added/removed 2467 // TRANSLATORS: this message appears when the user added/removed
2471 // a repository (sources.list entry) a reload (apt-get update) is 2468 // a repository (sources.list entry) a reload (apt-get update) is
@@ -2481,13 +2478,21 @@
2481#else2478#else
2482 gtk_message_dialog_set_markup(GTK_MESSAGE_DIALOG(dialog), msgstr);2479 gtk_message_dialog_set_markup(GTK_MESSAGE_DIALOG(dialog), msgstr);
2483#endif2480#endif
2481 gtk_dialog_add_buttons(GTK_DIALOG(dialog), GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT, _("_Reload"), GTK_RESPONSE_ACCEPT, NULL);
2482 GtkWidget* reload_button = gtk_dialog_get_widget_for_response(GTK_DIALOG(dialog), GTK_RESPONSE_ACCEPT);
2483 GtkWidget* refresh_image = gtk_image_new_from_stock(GTK_STOCK_REFRESH, GTK_ICON_SIZE_BUTTON);
2484 gtk_button_set_image(GTK_BUTTON(reload_button), refresh_image);
2484 cb = gtk_check_button_new_with_label(_("Never show this message again"));2485 cb = gtk_check_button_new_with_label(_("Never show this message again"));
2485 gtk_box_pack_start_defaults(GTK_BOX(GTK_DIALOG(dialog)->vbox),cb);2486 gtk_box_pack_start_defaults(GTK_BOX(GTK_DIALOG(dialog)->vbox),cb);
2486 gtk_widget_show(cb);2487 gtk_widget_show(cb);
2487 gtk_dialog_run (GTK_DIALOG (dialog));2488 gint response = gtk_dialog_run (GTK_DIALOG (dialog));
2489 gtk_widget_hide(dialog);
2488 if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(cb))) {2490 if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(cb))) {
2489 _config->Set("Synaptic::AskForUpdateAfterSrcChange", false);2491 _config->Set("Synaptic::AskForUpdateAfterSrcChange", false);
2490 }2492 }
2493 if (response == GTK_RESPONSE_ACCEPT) {
2494 me->cbUpdateClicked(NULL, data);
2495 }
2491 gtk_widget_destroy (dialog);2496 gtk_widget_destroy (dialog);
2492 }2497 }
2493}2498}
@@ -2593,41 +2598,27 @@
25932598
2594 me->setStatusText(_("Starting help viewer..."));2599 me->setStatusText(_("Starting help viewer..."));
25952600
2596 string cmd;2601 // FIXME: move this into rgutils as well (or rgspawn.cc)
2597 if (is_binary_in_path("yelp"))2602 vector<const gchar*> cmd;
2598 cmd = "yelp ghelp:synaptic";2603 if (is_binary_in_path("yelp")) {
2599#if 0 // FIXME: khelpcenter can't display this? check again!2604 cmd.push_back("yelp");
2600 else if(is_binary_in_path("khelpcenter")) {2605 cmd.push_back("ghelp:synaptic");
2601 system("konqueror ghelp:///" PACKAGE_DATA_DIR "/gnome/help/synaptic/C/synaptic.xml &");
2602 }
2603#endif
2604 else if (is_binary_in_path("mozilla")) {
2605 cmd = "mozilla " PACKAGE_DATA_DIR "/synaptic/html/index.html";
2606 } else if (is_binary_in_path("konqueror")) {
2607 cmd = "konqueror " PACKAGE_DATA_DIR "/synaptic/html/index.html";
2608 } else {2606 } else {
2607 cmd = GetBrowserCommand(PACKAGE_DATA_DIR "/synaptic/html/index.html");
2608 }
2609
2610 if (cmd.empty()) {
2609 me->_userDialog->error(_("No help viewer is installed!\n\n"2611 me->_userDialog->error(_("No help viewer is installed!\n\n"
2610 "You need either the GNOME help viewer 'yelp', "2612 "You need either the GNOME help viewer 'yelp', "
2611 "the 'konqueror' browser or the 'mozilla' "2613 "the 'konqueror' browser or the 'firefox' "
2612 "browser to view the synaptic manual.\n\n"2614 "browser to view the synaptic manual.\n\n"
2613 "Alternatively you can open the man page "2615 "Alternatively you can open the man page "
2614 "with 'man synaptic' from the "2616 "with 'man synaptic' from the "
2615 "command line or view the html version located "2617 "command line or view the html version located "
2616 "in the 'synaptic/html' folder."));2618 "in the 'synaptic/html' folder."));
2617 }2619 return;
26182620 }
2619 if (!cmd.empty()) {2621 RunAsSudoUserCommand(cmd);
2620 gchar * sudo_user;
2621 sudo_user = g_strdup(getenv("SUDO_USER"));
2622 // if gksu is not found or SUDO_USER is not set, run the help viewer anyway
2623 if(is_binary_in_path("sudo") && (sudo_user != NULL))
2624 cmd = "sudo -u " + string(sudo_user) + " " + cmd;
2625 g_free(sudo_user);
2626 cmd += " &";
2627 if(system(cmd.c_str()) < 0) {
2628 g_warning(_("An error occured while starting the help viewer\n\tCommand: %s"), cmd.c_str());
2629 }
2630 }
2631}2622}
26322623
2633void RGMainWindow::cbCloseFilterManagerAction(void *self, bool okcancel)2624void RGMainWindow::cbCloseFilterManagerAction(void *self, bool okcancel)
@@ -2763,8 +2754,6 @@
27632754
2764void RGMainWindow::cbPkgReconfigureClicked(GtkWidget *self, void *data)2755void RGMainWindow::cbPkgReconfigureClicked(GtkWidget *self, void *data)
2765{2756{
2766 char frontend[] = "gnome";
2767 char *cmd;
2768 RGMainWindow *me = (RGMainWindow *) data;2757 RGMainWindow *me = (RGMainWindow *) data;
2769 //cout << "RGMainWindow::pkgReconfigureClicked()" << endl;2758 //cout << "RGMainWindow::pkgReconfigureClicked()" << endl;
27702759
@@ -2781,9 +2770,15 @@
2781 }2770 }
27822771
2783 me->setStatusText(_("Starting package configuration tool..."));2772 me->setStatusText(_("Starting package configuration tool..."));
2784 cmd = g_strdup_printf("/usr/sbin/dpkg-reconfigure -f%s %s &",2773 const gchar *cmd[] = { "/usr/sbin/dpkg-reconfigure",
2785 frontend, me->selectedPackage()->name());2774 "-fgnome",
2786 system(cmd);2775 me->selectedPackage()->name(),
2776 NULL };
2777 GError *error = NULL;
2778 g_spawn_async("/", (gchar**)cmd, NULL, (GSpawnFlags)0, NULL, NULL, NULL, &error);
2779 if(error != NULL) {
2780 std::cerr << "failed to run dpkg-reconfigure cmd" << std::endl;
2781 }
2787}2782}
27882783
27892784
27902785
=== modified file 'gtk/rgpackagestatus.cc'
--- gtk/rgpackagestatus.cc 2010-07-29 12:14:32 +0000
+++ gtk/rgpackagestatus.cc 2012-04-10 17:44:21 +0000
@@ -29,33 +29,6 @@
29#include "rgutils.h"29#include "rgutils.h"
30#include "rgpackagestatus.h"30#include "rgpackagestatus.h"
3131
32// helper
33static GdkPixbuf *
34get_gdk_pixbuf(const gchar *name, int size=16)
35{
36 GtkIconTheme *theme;
37 GdkPixbuf *pixbuf;
38 GError *error = NULL;
39
40 theme = gtk_icon_theme_get_default();
41 pixbuf = gtk_icon_theme_load_icon(theme, name, size,
42 (GtkIconLookupFlags)0, &error);
43 if (pixbuf == NULL)
44 std::cerr << "Warning, failed to load: " << name
45 << error->message << std::endl;
46
47 return pixbuf;
48}
49
50GtkWidget *get_gtk_image(const gchar *name, int size)
51{
52 GdkPixbuf *buf;
53 buf = get_gdk_pixbuf(name, size);
54 if(!buf)
55 return NULL;
56 return gtk_image_new_from_pixbuf(buf);
57}
58
59// RPackageStatus stuff32// RPackageStatus stuff
60RGPackageStatus RGPackageStatus::pkgStatus;33RGPackageStatus RGPackageStatus::pkgStatus;
6134
6235
=== modified file 'gtk/rgpkgdetails.cc'
--- gtk/rgpkgdetails.cc 2012-02-08 20:39:44 +0000
+++ gtk/rgpkgdetails.cc 2012-04-10 17:44:21 +0000
@@ -181,6 +181,16 @@
181 ShowChangelogDialog(parent, pkg);181 ShowChangelogDialog(parent, pkg);
182}182}
183183
184gboolean RGPkgDetailsWindow::cbOpenHomepage(GtkWidget *button, void* data)
185{
186 RPackage *pkg = (RPackage*)data;
187 std::vector<const gchar*> cmd = GetBrowserCommand(pkg->homepage());
188 std::cerr << "cbOpenHomepage: " << cmd[0] << std::endl;
189 RunAsSudoUserCommand(cmd);
190
191 return TRUE;
192}
193
184void RGPkgDetailsWindow::fillInValues(RGGtkBuilderWindow *me, 194void RGPkgDetailsWindow::fillInValues(RGGtkBuilderWindow *me,
185 RPackage *pkg,195 RPackage *pkg,
186 bool setTitle)196 bool setTitle)
@@ -200,7 +210,17 @@
200 me->setTextView("textview_pkgcommon", pkg_summary, true);210 me->setTextView("textview_pkgcommon", pkg_summary, true);
201 g_free(pkg_summary);211 g_free(pkg_summary);
202212
203 me->setLabel("label_maintainer", pkg->maintainer());213 string maintainer = pkg->maintainer();
214 int start_index = maintainer.find("<");
215 int end_index = maintainer.rfind(">");
216 if (start_index != -1 && end_index != -1) {
217 gchar* maintainer_label = g_markup_printf_escaped("<a href=\"mailto:%s\">%s</a>", maintainer.substr(start_index+1, end_index - start_index - 1).c_str(), maintainer.c_str() );
218 me->setMarkup("label_maintainer", maintainer_label);
219 g_free(maintainer_label);
220 } else {
221 me->setLabel("label_maintainer", pkg->maintainer());
222 }
223
204 me->setPixmap("image_state", RGPackageStatus::pkgStatus.getPixbuf(pkg));224 me->setPixmap("image_state", RGPackageStatus::pkgStatus.getPixbuf(pkg));
205 me->setLabel("label_state", RGPackageStatus::pkgStatus.getLongStatusString(pkg));225 me->setLabel("label_state", RGPackageStatus::pkgStatus.getLongStatusString(pkg));
206 me->setLabel("label_priority", pkg->priority());226 me->setLabel("label_priority", pkg->priority());
@@ -288,6 +308,23 @@
288 gtk_text_view_add_child_at_anchor(GTK_TEXT_VIEW(textview), button, anchor);308 gtk_text_view_add_child_at_anchor(GTK_TEXT_VIEW(textview), button, anchor);
289 gtk_widget_show(button);309 gtk_widget_show(button);
290310
311 // add button to open the homepage
312 if (strlen(pkg->homepage())) {
313 gtk_text_buffer_insert(buf, &it, " ", 1);
314 anchor = gtk_text_buffer_create_child_anchor(buf, &it);
315 button = gtk_link_button_new_with_label("", _("Visit Homepage"));
316 char *homepage_tooltip = g_strdup_printf("Visit %s",
317 pkg->homepage());
318 g_signal_connect(G_OBJECT(button),"clicked",
319 G_CALLBACK(cbOpenHomepage),
320 pkg);
321 gtk_widget_set_tooltip_text(button, homepage_tooltip);
322 g_free(homepage_tooltip);
323 g_object_set_data(G_OBJECT(button), "me", me);
324 gtk_text_view_add_child_at_anchor(GTK_TEXT_VIEW(textview), button, anchor);
325 gtk_widget_show(button);
326 }
327
291 // show the rest of the description328 // show the rest of the description
292 gtk_text_buffer_insert(buf, &it, "\n", 1);329 gtk_text_buffer_insert(buf, &it, "\n", 1);
293 s = utf8(pkg->description());330 s = utf8(pkg->description());
294331
=== modified file 'gtk/rgpkgdetails.h'
--- gtk/rgpkgdetails.h 2012-02-08 20:39:44 +0000
+++ gtk/rgpkgdetails.h 2012-04-10 17:44:21 +0000
@@ -45,6 +45,7 @@
45 static void cbShowScreenshot(GtkWidget *button, void *data);45 static void cbShowScreenshot(GtkWidget *button, void *data);
46 static void cbShowBigScreenshot(GtkWidget *button, GdkEventButton *event, void *data);46 static void cbShowBigScreenshot(GtkWidget *button, GdkEventButton *event, void *data);
47 static void cbShowChangelog(GtkWidget *button, void *data);47 static void cbShowChangelog(GtkWidget *button, void *data);
48 static gboolean cbOpenHomepage(GtkWidget *button, void *data);
48 static void doShowBigScreenshot(RPackage *pkg);49 static void doShowBigScreenshot(RPackage *pkg);
4950
50 public:51 public:
5152
=== modified file 'gtk/rgpreferenceswindow.cc'
--- gtk/rgpreferenceswindow.cc 2010-11-16 15:59:34 +0000
+++ gtk/rgpreferenceswindow.cc 2012-04-10 17:44:21 +0000
@@ -48,8 +48,8 @@
4848
49const char *RGPreferencesWindow::column_visible_names[] = 49const char *RGPreferencesWindow::column_visible_names[] =
50 {_("Status"), _("Supported"), _("Package Name"), _("Section"),50 {_("Status"), _("Supported"), _("Package Name"), _("Section"),
51 _("Component"), _("Installed Version"), _("Available Version"), 51 _("Component"), _("Installed Version"), _("Latest Version"),
52 _("Installed Size"), _("Download Size"),_("Description"), NULL };52 _("Size"), _("Download Size"),_("Description"), NULL };
5353
54const gboolean RGPreferencesWindow::column_visible_defaults[] = 54const gboolean RGPreferencesWindow::column_visible_defaults[] =
55 { TRUE, TRUE, TRUE, FALSE, FALSE, TRUE, TRUE, TRUE, FALSE, TRUE }; 55 { TRUE, TRUE, TRUE, FALSE, FALSE, TRUE, TRUE, TRUE, FALSE, TRUE };
@@ -650,8 +650,8 @@
650 // proxy stuff650 // proxy stuff
651 bool useProxy = _config->FindB("Synaptic::useProxy", false);651 bool useProxy = _config->FindB("Synaptic::useProxy", false);
652 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(gtk_builder_get_object652 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(gtk_builder_get_object
653 (_builder,"radio_use_proxy")),653 (_builder,"radio_no_proxy")),
654 useProxy);654 !useProxy);
655 gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object655 gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object
656 (_builder, "table_proxy")),656 (_builder, "table_proxy")),
657 useProxy);657 useProxy);
658658
=== modified file 'gtk/rgsummarywindow.cc'
--- gtk/rgsummarywindow.cc 2010-10-07 19:51:48 +0000
+++ gtk/rgsummarywindow.cc 2012-04-10 17:44:21 +0000
@@ -393,6 +393,7 @@
393 toDowngrade, unAuthenticated,sizeChange);393 toDowngrade, unAuthenticated,sizeChange);
394 lister->getDownloadSummary(dlCount, dlSize);394 lister->getDownloadSummary(dlCount, dlSize);
395395
396 gtk_widget_set_visible(_dlonlyB, (dlSize > 0));
396#if 0397#if 0
397 if (held) {398 if (held) {
398 char *str = ngettext("%d package is locked\n",399 char *str = ngettext("%d package is locked\n",
399400
=== modified file 'gtk/rguserdialog.cc'
--- gtk/rguserdialog.cc 2010-11-12 17:46:13 +0000
+++ gtk/rguserdialog.cc 2012-04-10 17:44:21 +0000
@@ -76,6 +76,9 @@
76 _("An error occurred"), 76 _("An error occurred"),
77 _("The following details "77 _("The following details "
78 "are provided:")));78 "are provided:")));
79 GdkPixbuf *icon = get_gdk_pixbuf( "synaptic" );
80 gtk_window_set_icon(GTK_WINDOW(dia), icon);
81
79 gtk_widget_set_size_request(dia, 500, 300);82 gtk_widget_set_size_request(dia, 500, 300);
80 gtk_window_set_resizable(GTK_WINDOW(dia), TRUE);83 gtk_window_set_resizable(GTK_WINDOW(dia), TRUE);
81 gtk_container_set_border_width(GTK_CONTAINER(dia), 6);84 gtk_container_set_border_width(GTK_CONTAINER(dia), 6);
@@ -160,7 +163,9 @@
160 GTK_DIALOG_DESTROY_WITH_PARENT,163 GTK_DIALOG_DESTROY_WITH_PARENT,
161 gtkmessage, gtkbuttons, "%s", 164 gtkmessage, gtkbuttons, "%s",
162 NULL);165 NULL);
163 166 GdkPixbuf *icon = get_gdk_pixbuf( "synaptic" );
167 gtk_window_set_icon(GTK_WINDOW(dia), icon);
168
164 gtk_message_dialog_set_markup (GTK_MESSAGE_DIALOG(dia), utf8(msg));169 gtk_message_dialog_set_markup (GTK_MESSAGE_DIALOG(dia), utf8(msg));
165 gtk_container_set_border_width(GTK_CONTAINER(dia), 6);170 gtk_container_set_border_width(GTK_CONTAINER(dia), 6);
166171
@@ -237,6 +242,8 @@
237 }242 }
238 _dialog = GTK_WIDGET(gtk_builder_get_object(builder, main_widget));243 _dialog = GTK_WIDGET(gtk_builder_get_object(builder, main_widget));
239 assert(_dialog);244 assert(_dialog);
245 GdkPixbuf *icon = get_gdk_pixbuf( "synaptic" );
246 gtk_window_set_icon(GTK_WINDOW(_dialog), icon);
240247
241 gtk_window_set_position(GTK_WINDOW(_dialog),248 gtk_window_set_position(GTK_WINDOW(_dialog),
242 GTK_WIN_POS_CENTER_ON_PARENT);249 GTK_WIN_POS_CENTER_ON_PARENT);
243250
=== modified file 'gtk/rgutils.cc'
--- gtk/rgutils.cc 2012-01-05 19:44:16 +0000
+++ gtk/rgutils.cc 2012-04-10 17:44:21 +0000
@@ -34,6 +34,33 @@
34#include "rgutils.h"34#include "rgutils.h"
3535
3636
37// helper
38GdkPixbuf *
39get_gdk_pixbuf(const gchar *name, int size)
40{
41 GtkIconTheme *theme;
42 GdkPixbuf *pixbuf;
43 GError *error = NULL;
44
45 theme = gtk_icon_theme_get_default();
46 pixbuf = gtk_icon_theme_load_icon(theme, name, size,
47 (GtkIconLookupFlags)0, &error);
48 if (pixbuf == NULL)
49 std::cerr << "Warning, failed to load: " << name
50 << error->message << std::endl;
51
52 return pixbuf;
53}
54
55GtkWidget *get_gtk_image(const gchar *name, int size)
56{
57 GdkPixbuf *buf;
58 buf = get_gdk_pixbuf(name, size);
59 if(!buf)
60 return NULL;
61 return gtk_image_new_from_pixbuf(buf);
62}
63
37void RGFlushInterface()64void RGFlushInterface()
38{65{
39 XSync(GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), False);66 XSync(GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), False);
@@ -84,6 +111,76 @@
84 return S;111 return S;
85}112}
86113
114std::vector<const gchar*> GetBrowserCommand(const gchar *link)
115{
116 std::vector<const gchar*> cmd;
117 if (FileExists("/usr/bin/xdg-open")) {
118 cmd.push_back("/usr/bin/xdg-open");
119 cmd.push_back(link);
120 } else if (FileExists("/usr/bin/firefox")) {
121 cmd.push_back("/usr/bin/firefox");
122 cmd.push_back(link);
123 } else if (FileExists("/usr/bin/konqueror")) {
124 cmd.push_back("/usr/bin/konqueror");
125 cmd.push_back(link);
126 }
127 return cmd;
128}
129
130bool RunAsSudoUserCommand(std::vector<const gchar*> cmd)
131{
132 std::vector<const gchar*> prefix;
133 gchar *sudo_user;
134
135 if (cmd.empty()) {
136 std::cerr << "Empty command for RunAsSudoUserCommand" << std::endl;
137 return true;
138 }
139
140 // try pkexec first, then sudo
141 sudo_user = getenv("PKEXEC_UID");
142 if (sudo_user == NULL) {
143 sudo_user = getenv("SUDO_USER");
144 }
145#if 0 // does not work for some reason
146 if(FileExists("/usr/bin/pkexec") && sudo_user != NULL)
147 {
148 prefix.push_back("/usr/bin/pkexec");
149 prefix.push_back("--user");
150 prefix.push_back(sudo_user);
151 }
152#endif
153 if(FileExists("/usr/bin/sudo") && sudo_user != NULL)
154 {
155 prefix.push_back("/usr/bin/sudo");
156 prefix.push_back("-u");
157 prefix.push_back(sudo_user);
158 }
159 // insert the prefix string
160 cmd.insert(cmd.begin(), prefix.begin(), prefix.end());
161
162 for(std::vector<const gchar*>::iterator it = cmd.begin();
163 it != cmd.end(); it++)
164 printf("cmd '%s'\n", *it);
165
166 // build the c stract to make g_spawn_async happy
167 char **c_cmd = new char*[cmd.size()+1];
168 int i;
169 for(i=0; i<cmd.size(); i++)
170 c_cmd[i] = (gchar*)cmd[i];
171 c_cmd[i] = NULL;
172
173 GError *error = NULL;
174 g_spawn_async("/", c_cmd, NULL, (GSpawnFlags)0, NULL, NULL, NULL, &error);
175 if (error != NULL) {
176 std::cerr << "Failed to run cmd: " << cmd[0] << std::endl;
177 }
178
179 // and free the memory again
180 delete c_cmd;
181
182 return true;
183}
87184
88bool is_binary_in_path(const char *program)185bool is_binary_in_path(const char *program)
89{186{
90187
=== modified file 'gtk/rgutils.h'
--- gtk/rgutils.h 2012-01-05 19:44:16 +0000
+++ gtk/rgutils.h 2012-04-10 17:44:21 +0000
@@ -52,8 +52,11 @@
52const char *utf8(const char *str);52const char *utf8(const char *str);
5353
54GtkWidget *get_gtk_image(const char *name, int size=16);54GtkWidget *get_gtk_image(const char *name, int size=16);
55GdkPixbuf *get_gdk_pixbuf(const gchar *name, int size=16);
5556
56std::string SizeToStr(double Bytes);57std::string SizeToStr(double Bytes);
58bool RunAsSudoUserCommand(std::vector<const gchar *> cmd);
59std::vector<const gchar*> GetBrowserCommand(const gchar *link);
5760
58std::string MarkupEscapeString(std::string str);61std::string MarkupEscapeString(std::string str);
59std::string MarkupUnescapeString(std::string str);62std::string MarkupUnescapeString(std::string str);
6063
=== modified file 'gtk/rgwindow.cc'
--- gtk/rgwindow.cc 2004-02-07 21:13:29 +0000
+++ gtk/rgwindow.cc 2012-04-10 17:44:21 +0000
@@ -25,7 +25,7 @@
25#include "config.h"25#include "config.h"
26#include "i18n.h"26#include "i18n.h"
27#include "rgwindow.h"27#include "rgwindow.h"
2828#include "rgutils.h"
2929
30bool RGWindow::windowCloseCallback(GtkWidget *window, GdkEvent * event)30bool RGWindow::windowCloseCallback(GtkWidget *window, GdkEvent * event)
31{31{
@@ -40,6 +40,8 @@
40 //std::cout << "RGWindow::RGWindow(string name, bool makeBox)" << endl;40 //std::cout << "RGWindow::RGWindow(string name, bool makeBox)" << endl;
41 _win = gtk_window_new(GTK_WINDOW_TOPLEVEL);41 _win = gtk_window_new(GTK_WINDOW_TOPLEVEL);
42 gtk_window_set_title(GTK_WINDOW(_win), (char *)name.c_str());42 gtk_window_set_title(GTK_WINDOW(_win), (char *)name.c_str());
43 GdkPixbuf *icon = get_gdk_pixbuf( "synaptic" );
44 gtk_window_set_icon(GTK_WINDOW(_win), icon);
4345
44 gtk_object_set_data(GTK_OBJECT(_win), "me", this);46 gtk_object_set_data(GTK_OBJECT(_win), "me", this);
45 gtk_signal_connect(GTK_OBJECT(_win), "delete-event",47 gtk_signal_connect(GTK_OBJECT(_win), "delete-event",

Subscribers

People subscribed via source and target branches

to status/vote changes: