Skip to content
Snippets Groups Projects
Commit 3f28a0a6 authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

Minimize the window on delete-event

parent a4cacf9c
No related branches found
No related tags found
No related merge requests found
icondir = $(datadir)/pixmaps icondir = $(datadir)/pixmaps
icon_DATA = sflphone.png icon_DATA = sflphone.png
buttons_DATA = accept.svg current.svg transfert.svg hang_up.svg hold.svg unhold.svg refuse.svg call.svg ring.svg dial.svg mic.svg mic_25.svg mic_50.svg mic_75.svg speaker.svg speaker_25.svg speaker_50.svg speaker_75.svg fail.svg incoming.svg outgoing.svg missed.svg mailbox.svg busy.svg icon_accept.svg icon_hold.svg icon_unhold.svg icon_hangup.svg icon_call.svg icon_dialpad.svg icon_volume.svg icon_dialpad_off.svg icon_volume_off.svg history.svg history2.svg history.png buttons_DATA = accept.svg current.svg transfert.svg hang_up.svg hold.svg unhold.svg refuse.svg call.svg ring.svg dial.svg mic.svg mic_25.svg mic_50.svg mic_75.svg speaker.svg speaker_25.svg speaker_50.svg speaker_75.svg fail.svg incoming.svg outgoing.svg missed.svg mailbox.svg busy.svg icon_accept.svg icon_hold.svg icon_unhold.svg icon_hangup.svg icon_call.svg icon_dialpad.svg icon_volume.svg icon_dialpad_off.svg icon_volume_off.svg history.svg history2.svg
buttonsdir = $(datadir)/sflphone buttonsdir = $(datadir)/sflphone
EXTRA_DIST = $(icon_DATA) $(buttons_DATA) EXTRA_DIST = $(icon_DATA) $(buttons_DATA)
/* /*
* Copyright (C) 2007 Savoir-Faire Linux inc. * Copyright (C) 2007 - 2008 Savoir-Faire Linux inc.
* Author: Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com>
* Author: Emmanuel Milou <emmanuel.milou@savoirfairelinux.com> * Author: Emmanuel Milou <emmanuel.milou@savoirfairelinux.com>
* Author: Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
...@@ -706,10 +706,9 @@ sflphone_fill_codec_list() ...@@ -706,10 +706,9 @@ sflphone_fill_codec_list()
} }
} }
if( codec_list_get_size() == 0) { if( codec_list_get_size() == 0) {
gchar* markup = malloc(1000); /*
sprintf(markup , _("<b>Error: No audio codecs found.\n\n</b> SFL audio codecs have to be placed in <i>%s</i> or in the <b>.sflphone</b> directory in your home( <i>%s</i> )"), CODECS_DIR , g_get_home_dir()); gchar* markup = g_markup_printf_escape(_("<b>Error: No audio codecs found.\n\n</b> SFL audio codecs have to be placed in <i>%s</i> or in the <b>.sflphone</b> directory in your home( <i>%s</i> )") , CODECS_DIR , g_get_home_dir());
main_window_error_message( markup ); main_window_error_message( markup );*/
g_free( markup );
dbus_unregister(getpid()); dbus_unregister(getpid());
exit(0); exit(0);
} }
......
...@@ -46,7 +46,10 @@ static gboolean ...@@ -46,7 +46,10 @@ static gboolean
on_delete (GtkWidget * widget, gpointer data) on_delete (GtkWidget * widget, gpointer data)
{ {
/* Must return FALSE to have the window destroyed */ /* Must return FALSE to have the window destroyed */
return !sflphone_quit(); //return !sflphone_quit();
gtk_widget_hide(GTK_WIDGET( get_main_window() ));
set_minimized( TRUE );
return TRUE;
} }
/** Ask the user if he wants to hangup current calls */ /** Ask the user if he wants to hangup current calls */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment