Browse Source

Fix FTBFS

Héctor García 6 years ago
parent
commit
51bddc2323
3 changed files with 30 additions and 0 deletions
  1. 7 0
      debian/changelog
  2. 22 0
      debian/patches/button_2_chooser.patch
  3. 1 0
      debian/patches/series

+ 7 - 0
debian/changelog

@@ -1,3 +1,10 @@
+mssh (2.2-5) unstable; urgency=medium
+
+  * Fix FTBFS due to deprecated function by adding upstream patch
+    (Closes: #890853) 
+
+ -- Héctor García Álvarez <[email protected]>  Sat, 10 Mar 2018 15:47:07 +0100
+
 mssh (2.2-4) unstable; urgency=medium
 
   * Fixed VCS url

+ 22 - 0
debian/patches/button_2_chooser.patch

@@ -0,0 +1,22 @@
+diff --git a/src/mssh-pref.c b/src/mssh-pref.c
+index 8b874d3..9185ec0 100644
+--- a/src/mssh-pref.c
++++ b/src/mssh-pref.c
+@@ -31,7 +31,7 @@ static void mssh_pref_font_select(GtkWidget *widget, gpointer data)
+ 
+     client = gconf_client_get_default();
+ 
+-    font = gtk_font_button_get_font_name(GTK_FONT_BUTTON(widget));
++    font = gtk_font_chooser_get_font (GTK_FONT_CHOOSER(widget));
+ 
+     gconf_client_set_string(client, MSSH_GCONF_KEY_FONT, font, NULL);
+ }
+@@ -383,7 +383,7 @@ static void mssh_pref_init(MSSHPref* pref)
+     entry = gconf_client_get_entry(client, MSSH_GCONF_KEY_FONT, NULL,
+         TRUE, NULL);
+     value = gconf_entry_get_value(entry);
+-    gtk_font_button_set_font_name(GTK_FONT_BUTTON(font_select),
++    gtk_font_chooser_set_font(GTK_FONT_CHOOSER(font_select),
+         gconf_value_get_string(value));
+ 
+     entry = gconf_client_get_entry(client, MSSH_GCONF_KEY_FG_COLOUR, NULL,

+ 1 - 0
debian/patches/series

@@ -1,3 +1,4 @@
 disable-pedantic-errors.patch
 intltools_update
 fix-ftbfs-with-libvte-0.50.patch
+button_2_chooser.patch