summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-07-21 16:57:27 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-07-21 16:57:27 +0000
commit2fc6b91025bb1932fe86e9124068934c0729c379 (patch)
tree6c43cad6cc21a0c03a3b2c4f51b4019ae8886264
parent82195e1af36b6806999270626dfb33d4ae7745bc (diff)
downloadcontrol-center-2fc6b91025bb1932fe86e9124068934c0729c379.tar
control-center-2fc6b91025bb1932fe86e9124068934c0729c379.tar.gz
control-center-2fc6b91025bb1932fe86e9124068934c0729c379.tar.bz2
control-center-2fc6b91025bb1932fe86e9124068934c0729c379.tar.xz
control-center-2fc6b91025bb1932fe86e9124068934c0729c379.zip
- display hostname in main window title
- really fix the spacing that left around embedded tools: unlike the old inline binding; the new gtk2-perl-xs binding do refcount for us on gtk+ objects; thus gtk+ sockets are not really destroyed until we've no more references on it... :-( as we save our socket ref in a global variable ... fix is just to explicitely unreference it :-)
-rwxr-xr-xcontrol-center3
1 files changed, 2 insertions, 1 deletions
diff --git a/control-center b/control-center
index ec0a58fa..f6725a1c 100755
--- a/control-center
+++ b/control-center
@@ -382,7 +382,7 @@ gtkadd($window_global,
);
$window_global->signal_connect(delete_event => \&quit_global);
-$window_global->set_title(N("Mandrake Control Center %s", $version));
+$window_global->set_title(N("Mandrake Control Center %s", $version) . " [" . chomp_(`hostname`) . "]");
$window_global->set_position('center');
$notebook_global->set_property('show-border', 0);
@@ -630,6 +630,7 @@ sub child_just_exited() {
gtkset_mousecursor_normal();
$notebook_global->show;
Glib::Source->remove($timeout) if $timeout;
+ undef $emb_socket;
}
sub hide_socket_and_clean() {