Author: cazfi
Date: Sat Apr  1 22:40:00 2017
New Revision: 35191

URL: http://svn.gna.org/viewcvs/freeciv?rev=35191&view=rev
Log:
Drop third parameter from gtk_css_provider_load_from_file() call

See hrm Feature #647928

Modified:
    trunk/client/gui-gtk-4.0/themes.c

Modified: trunk/client/gui-gtk-4.0/themes.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-gtk-4.0/themes.c?rev=35191&r1=35190&r2=35191&view=diff
==============================================================================
--- trunk/client/gui-gtk-4.0/themes.c   (original)
+++ trunk/client/gui-gtk-4.0/themes.c   Sat Apr  1 22:40:00 2017
@@ -43,7 +43,6 @@
 void gui_load_theme(const char *directory, const char *theme_name)
 {
   static GtkCssProvider *fc_css_provider = NULL;
-  GError *error = NULL;
   char buf[strlen(directory) + strlen(theme_name) + 32];
 
   if (fc_css_provider == NULL) {
@@ -57,11 +56,7 @@
   fc_snprintf(buf, sizeof(buf), "%s/%s/gtk-3.0/gtk.css", directory,
               theme_name);
 
-  gtk_css_provider_load_from_file(fc_css_provider, g_file_new_for_path(buf), 
&error);
-
-  if (error) {
-    g_warning("%s\n", error->message);
-  }
+  gtk_css_provider_load_from_file(fc_css_provider, g_file_new_for_path(buf));
 }
 
 /*****************************************************************************


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to