diff options
author | Larry Hajali <larryhaja@gmail.com> | 2017-08-28 15:52:14 -0700 |
---|---|---|
committer | David Spencer <idlemoor@slackbuilds.org> | 2017-09-02 10:22:28 +0100 |
commit | 4c1ac05c560b43760c553c0807db644cb3f33402 (patch) | |
tree | 8ad5e73bcf9663ef75fc1f19134b8c72f78f0621 /academic | |
parent | e97c03f5d3183d0e7de2b80f6e85ac9b6a5a335a (diff) |
academic/qalculate-gtk: Updated for version 2.0.0
Signed-off-by: Larry Hajali <larryhaja[at]gmail[dot]com>
Diffstat (limited to 'academic')
-rw-r--r-- | academic/qalculate-gtk/qalculate-gtk.SlackBuild | 6 | ||||
-rw-r--r-- | academic/qalculate-gtk/qalculate-gtk.info | 6 | ||||
-rw-r--r-- | academic/qalculate-gtk/revert-gtk3-deprecation.patch | 66 |
3 files changed, 4 insertions, 74 deletions
diff --git a/academic/qalculate-gtk/qalculate-gtk.SlackBuild b/academic/qalculate-gtk/qalculate-gtk.SlackBuild index cfec1b49d6113..023460b2da827 100644 --- a/academic/qalculate-gtk/qalculate-gtk.SlackBuild +++ b/academic/qalculate-gtk/qalculate-gtk.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=qalculate-gtk -VERSION=${VERSION:-1.0.0} +VERSION=${VERSION:-2.0.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -69,10 +69,6 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# Revert gtk+3 deprecation. -# https://github.com/Qalculate/qalculate-gtk/commit/652371c4575cbbcd62351f07f45e369a2de7e101 -patch -p1 < $CWD/revert-gtk3-deprecation.patch - # Fix .desktop file. sed -i 's|.png||' data/$PRGNAM.desktop.in diff --git a/academic/qalculate-gtk/qalculate-gtk.info b/academic/qalculate-gtk/qalculate-gtk.info index 65a4c7bd5b949..198a89b100c1d 100644 --- a/academic/qalculate-gtk/qalculate-gtk.info +++ b/academic/qalculate-gtk/qalculate-gtk.info @@ -1,8 +1,8 @@ PRGNAM="qalculate-gtk" -VERSION="1.0.0" +VERSION="2.0.0" HOMEPAGE="http://qalculate.github.io/" -DOWNLOAD="https://github.com/Qalculate/qalculate-gtk/releases/download/v1.0.0/qalculate-gtk-1.0.0.tar.gz" -MD5SUM="330c97b46ca51da3f4ec788d68725e30" +DOWNLOAD="https://github.com/Qalculate/qalculate-gtk/releases/download/v2.0.0a/qalculate-gtk-2.0.0.tar.gz" +MD5SUM="795ceba9b61a102a5082bd0cacaadc3d" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="libqalculate" diff --git a/academic/qalculate-gtk/revert-gtk3-deprecation.patch b/academic/qalculate-gtk/revert-gtk3-deprecation.patch deleted file mode 100644 index 9eb81e6797355..0000000000000 --- a/academic/qalculate-gtk/revert-gtk3-deprecation.patch +++ /dev/null @@ -1,66 +0,0 @@ -diff -Naur qalculate-gtk-0.9.12.orig/src/callbacks.cc qalculate-gtk-0.9.12/src/callbacks.cc ---- qalculate-gtk-0.9.12.orig/src/callbacks.cc 2017-03-19 07:28:32.000000000 +0000 -+++ qalculate-gtk-0.9.12/src/callbacks.cc 2017-06-04 16:43:47.433439521 +0000 -@@ -7194,7 +7194,7 @@ - } else if(response == GTK_RESPONSE_HELP) { - GError *error = NULL; - //gtk_show_uri(NULL, "ghelp:qalculate-gtk?qalculate-unit-creation", gtk_get_current_event_time(), &error); -- gtk_show_uri_on_window(GTK_WINDOW(gtk_builder_get_object(unitedit_builder, "unit_edit_dialog")), "file://" PACKAGE_DOC_DIR "/html/qalculate-units.html#qalculate-unit-creation", gtk_get_current_event_time(), &error); -+ gtk_show_uri(NULL, "file://" PACKAGE_DOC_DIR "/html/qalculate-units.html#qalculate-unit-creation", gtk_get_current_event_time(), &error); - if(error) { - gchar *error_str = g_locale_to_utf8(error->message, -1, NULL, NULL, NULL); - GtkWidget *d = gtk_message_dialog_new (GTK_WINDOW(gtk_builder_get_object(unitedit_builder, "unit_edit_dialog")), (GtkDialogFlags) 0, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, _("Could not display help.\n%s"), error_str); -@@ -7539,7 +7539,7 @@ - } else if(response == GTK_RESPONSE_HELP) { - GError *error = NULL; - //gtk_show_uri(NULL, "ghelp:qalculate-gtk?qalculate-function-creation", gtk_get_current_event_time(), &error); -- gtk_show_uri_on_window(GTK_WINDOW(gtk_builder_get_object(functionedit_builder, "function_edit_dialog")), "file://" PACKAGE_DOC_DIR "/html/qalculate-functions.html#qalculate-function-creation", gtk_get_current_event_time(), &error); -+ gtk_show_uri(NULL, "file://" PACKAGE_DOC_DIR "/html/qalculate-functions.html#qalculate-function-creation", gtk_get_current_event_time(), &error); - if(error) { - gchar *error_str = g_locale_to_utf8(error->message, -1, NULL, NULL, NULL); - GtkWidget *d = gtk_message_dialog_new (GTK_WINDOW(gtk_builder_get_object(functionedit_builder, "function_edit_dialog")), (GtkDialogFlags) 0, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, _("Could not display help.\n%s"), error_str); -@@ -7730,7 +7730,7 @@ - } else if(response == GTK_RESPONSE_HELP) { - GError *error = NULL; - //gtk_show_uri(NULL, "ghelp:qalculate-gtk?qalculate-variable-creation", gtk_get_current_event_time(), &error); -- gtk_show_uri_on_window(GTK_WINDOW(gtk_builder_get_object(unknownedit_builder, "unknown_edit_dialog")), "file://" PACKAGE_DOC_DIR "/html/qalculate-variables.html#qalculate-variable-creation", gtk_get_current_event_time(), &error); -+ gtk_show_uri(NULL, "file://" PACKAGE_DOC_DIR "/html/qalculate-variables.html#qalculate-variable-creation", gtk_get_current_event_time(), &error); - if(error) { - gchar *error_str = g_locale_to_utf8(error->message, -1, NULL, NULL, NULL); - GtkWidget *d = gtk_message_dialog_new (GTK_WINDOW(gtk_builder_get_object(unknownedit_builder, "unknown_edit_dialog")), (GtkDialogFlags) 0, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, _("Could not display help.\n%s"), error_str); -@@ -7899,7 +7899,7 @@ - } else if(response == GTK_RESPONSE_HELP) { - GError *error = NULL; - //gtk_show_uri(NULL, "ghelp:qalculate-gtk?qalculate-variable-creation", gtk_get_current_event_time(), &error); -- gtk_show_uri_on_window(GTK_WINDOW(gtk_builder_get_object(variableedit_builder, "variable_edit_dialog")), "file://" PACKAGE_DOC_DIR "/html/qalculate-variables.html#qalculate-variable-creation", gtk_get_current_event_time(), &error); -+ gtk_show_uri(NULL, "file://" PACKAGE_DOC_DIR "/html/qalculate-variables.html#qalculate-variable-creation", gtk_get_current_event_time(), &error); - if(error) { - gchar *error_str = g_locale_to_utf8(error->message, -1, NULL, NULL, NULL); - GtkWidget *d = gtk_message_dialog_new (GTK_WINDOW(gtk_builder_get_object(variableedit_builder, "variable_edit_dialog")), (GtkDialogFlags) 0, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, _("Could not display help.\n%s"), error_str); -@@ -8189,7 +8189,7 @@ - } else if(response == GTK_RESPONSE_HELP) { - GError *error = NULL; - //gtk_show_uri(NULL, "ghelp:qalculate-gtk?qalculate-vectors-matrices", gtk_get_current_event_time(), &error); -- gtk_show_uri_on_window(GTK_WINDOW(gtk_builder_get_object(matrixedit_builder, "matrix_edit_dialog")), "file://" PACKAGE_DOC_DIR "/html/qalculate-variables.html#qalculate-vectors-matrices", gtk_get_current_event_time(), &error); -+ gtk_show_uri(NULL, "file://" PACKAGE_DOC_DIR "/html/qalculate-variables.html#qalculate-vectors-matrices", gtk_get_current_event_time(), &error); - if(error) { - gchar *error_str = g_locale_to_utf8(error->message, -1, NULL, NULL, NULL); - GtkWidget *d = gtk_message_dialog_new (GTK_WINDOW(gtk_builder_get_object(matrixedit_builder, "matrix_edit_dialog")), (GtkDialogFlags) 0, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, _("Could not display help.\n%s"), error_str); -@@ -14755,7 +14755,7 @@ - void on_menu_item_help_activate(GtkMenuItem*, gpointer) { - GError *error = NULL; - //gtk_show_uri(NULL, "ghelp:qalculate-gtk", gtk_get_current_event_time(), &error); -- gtk_show_uri_on_window(GTK_WINDOW(gtk_builder_get_object(main_builder, "main_window")), "file://" PACKAGE_DOC_DIR "/html/index.html", gtk_get_current_event_time(), &error); -+ gtk_show_uri(NULL, "file://" PACKAGE_DOC_DIR "/html/index.html", gtk_get_current_event_time(), &error); - if(error) { - gchar *error_str = g_locale_to_utf8(error->message, -1, NULL, NULL, NULL); - GtkWidget *dialog = gtk_message_dialog_new(GTK_WINDOW(gtk_builder_get_object(main_builder, "main_window")), (GtkDialogFlags) 0, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, _("Could not display help for Qalculate!.\n%s"), error_str); -@@ -15699,7 +15699,7 @@ - void on_plot_button_help_clicked(GtkButton, gpointer) { - GError *error = NULL; - //gtk_show_uri(NULL, "ghelp:qalculate-gtk?qalculate-plotting", gtk_get_current_event_time(), &error); -- gtk_show_uri_on_window(GTK_WINDOW(gtk_builder_get_object(plot_builder, "plot_dialog")), "file://" PACKAGE_DOC_DIR "/html/qalculate-plotting.html", gtk_get_current_event_time(), &error); -+ gtk_show_uri(NULL, "file://" PACKAGE_DOC_DIR "/html/qalculate-plotting.html", gtk_get_current_event_time(), &error); - if(error) { - gchar *error_str = g_locale_to_utf8(error->message, -1, NULL, NULL, NULL); - GtkWidget *d = gtk_message_dialog_new (GTK_WINDOW(gtk_builder_get_object(plot_builder, "plot_dialog")), (GtkDialogFlags) 0, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, _("Could not display help.\n%s"), error_str); |