After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 771225 - Bijiben fails to build
Bijiben fails to build
Status: RESOLVED FIXED
Product: bijiben
Classification: Applications
Component: general
3.21.x
Other Linux
: Normal critical
: ---
Assigned To: Bijiben maintainer(s)
Bijiben maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2016-09-11 02:50 UTC by Mohammed Sadiq
Modified: 2017-05-24 01:16 UTC
See Also:
GNOME target: ---
GNOME version: 3.23/3.24


Attachments
declared note changed callback as static (862 bytes, patch)
2017-05-09 15:54 UTC, Iñigo Martínez
committed Details | Review
added const qualifier to return type (2.03 KB, patch)
2017-05-09 15:54 UTC, Iñigo Martínez
committed Details | Review
fixed editor set selection switch (1.41 KB, patch)
2017-05-09 15:54 UTC, Iñigo Martínez
committed Details | Review
fixed toggle block format switch (1.63 KB, patch)
2017-05-09 15:55 UTC, Iñigo Martínez
committed Details | Review
fixed mixed declarations and code (1.45 KB, patch)
2017-05-09 15:55 UTC, Iñigo Martínez
committed Details | Review
added not covered cases to switch (1.75 KB, patch)
2017-05-09 15:56 UTC, Iñigo Martínez
committed Details | Review
add explicit code for cases covered by default (1.10 KB, patch)
2017-05-09 15:57 UTC, Iñigo Martínez
committed Details | Review
add explicit code for missing case (815 bytes, patch)
2017-05-09 15:57 UTC, Iñigo Martínez
committed Details | Review
removed unused constructor code (1.47 KB, patch)
2017-05-09 15:58 UTC, Iñigo Martínez
committed Details | Review
fixed const qualifier discard message (869 bytes, patch)
2017-05-09 15:58 UTC, Iñigo Martínez
committed Details | Review
stop using deprecated function (1.63 KB, patch)
2017-05-09 15:59 UTC, Iñigo Martínez
committed Details | Review
removed unused constructor code (1.54 KB, patch)
2017-05-09 15:59 UTC, Iñigo Martínez
committed Details | Review
add explicit code for missing case (753 bytes, patch)
2017-05-09 15:59 UTC, Iñigo Martínez
committed Details | Review
replaced deprecated functions (1.30 KB, patch)
2017-05-09 16:00 UTC, Iñigo Martínez
committed Details | Review
removed trailing whitespaces (1.84 KB, patch)
2017-05-09 16:00 UTC, Iñigo Martínez
committed Details | Review
replaced deprecated function (983 bytes, patch)
2017-05-09 16:01 UTC, Iñigo Martínez
none Details | Review
replaced deprecated function (1.94 KB, patch)
2017-05-09 16:01 UTC, Iñigo Martínez
none Details | Review
Replaced gtk_get_current_event_time for GDK_CURRENT_TIME (970 bytes, patch)
2017-05-16 11:24 UTC, Iñigo Martínez
none Details | Review
replaced deprecated function (966 bytes, patch)
2017-05-17 09:41 UTC, Iñigo Martínez
committed Details | Review
replaced deprecated function (2.10 KB, patch)
2017-05-17 09:44 UTC, Iñigo Martínez
committed Details | Review

Description Mohammed Sadiq 2016-09-11 02:50:14 UTC
Bijiben can't be compiled on jhbuild. Builds fine when not using jhbuild, using make command.

The relevant error from log:

/home/sadiq/jhbuild/checkout/bijiben/src/libbiji/provider/biji-provider.c:30:32: fatal error: ../biji-marshalers.h: No such file or directory
 #include "../biji-marshalers.h"
                                ^
Comment 1 Iñigo Martínez 2017-05-09 15:53:21 UTC
There are also some issues when compiling that are now treated as errors due to AX_COMPILER_FLAGS addition. Those are happening when not using jhbuild.
Comment 2 Iñigo Martínez 2017-05-09 15:54:04 UTC
Created attachment 351449 [details] [review]
declared note changed callback as static
Comment 3 Iñigo Martínez 2017-05-09 15:54:27 UTC
Created attachment 351450 [details] [review]
added const qualifier to return type
Comment 4 Iñigo Martínez 2017-05-09 15:54:53 UTC
Created attachment 351451 [details] [review]
fixed editor set selection switch
Comment 5 Iñigo Martínez 2017-05-09 15:55:22 UTC
Created attachment 351452 [details] [review]
fixed toggle block format switch
Comment 6 Iñigo Martínez 2017-05-09 15:55:51 UTC
Created attachment 351453 [details] [review]
fixed mixed declarations and code
Comment 7 Iñigo Martínez 2017-05-09 15:56:16 UTC
Created attachment 351454 [details] [review]
added not covered cases to switch
Comment 8 Iñigo Martínez 2017-05-09 15:57:15 UTC
Created attachment 351455 [details] [review]
add explicit code for cases covered by default
Comment 9 Iñigo Martínez 2017-05-09 15:57:49 UTC
Created attachment 351456 [details] [review]
add explicit code for missing case
Comment 10 Iñigo Martínez 2017-05-09 15:58:12 UTC
Created attachment 351457 [details] [review]
removed unused constructor code
Comment 11 Iñigo Martínez 2017-05-09 15:58:39 UTC
Created attachment 351458 [details] [review]
fixed const qualifier discard message
Comment 12 Iñigo Martínez 2017-05-09 15:59:05 UTC
Created attachment 351459 [details] [review]
stop using deprecated function
Comment 13 Iñigo Martínez 2017-05-09 15:59:32 UTC
Created attachment 351460 [details] [review]
removed unused constructor code
Comment 14 Iñigo Martínez 2017-05-09 15:59:55 UTC
Created attachment 351461 [details] [review]
add explicit code for missing case
Comment 15 Iñigo Martínez 2017-05-09 16:00:18 UTC
Created attachment 351462 [details] [review]
replaced deprecated functions
Comment 16 Iñigo Martínez 2017-05-09 16:00:39 UTC
Created attachment 351463 [details] [review]
removed trailing whitespaces
Comment 17 Iñigo Martínez 2017-05-09 16:01:06 UTC
Created attachment 351464 [details] [review]
replaced deprecated function
Comment 18 Iñigo Martínez 2017-05-09 16:01:28 UTC
Created attachment 351465 [details] [review]
replaced deprecated function
Comment 19 Jonathan Kang 2017-05-11 07:25:11 UTC
Review of attachment 351449 [details] [review]:

Looks good.

Pushed to master as commit 812448a3c62c3dd17f954a8219b802afc2d693f5.
Comment 20 Jonathan Kang 2017-05-12 01:28:09 UTC
Review of attachment 351450 [details] [review]:

Pushed to master as commit 59540468524d86524f51bd08fd7702a38a0aa4b1.
Comment 21 Jonathan Kang 2017-05-12 07:10:25 UTC
Review of attachment 351451 [details] [review]:

looks good.
Comment 22 Jonathan Kang 2017-05-12 07:10:28 UTC
Review of attachment 351451 [details] [review]:

looks good.
Comment 23 Jonathan Kang 2017-05-12 07:16:41 UTC
Review of attachment 351452 [details] [review]:

Looks good to me.
Comment 24 Jonathan Kang 2017-05-12 07:17:54 UTC
Review of attachment 351453 [details] [review]:

Looks good.
Comment 25 Jonathan Kang 2017-05-16 08:14:03 UTC
Review of attachment 351454 [details] [review]:

Looks good to me.
Comment 26 Jonathan Kang 2017-05-16 08:23:32 UTC
Review of attachment 351455 [details] [review]:

::: src/bjb-main-toolbar.c
@@ +1018,3 @@
+    case BJB_WINDOW_BASE_SPINNER_VIEW:
+    case BJB_WINDOW_BASE_ERROR_TRACKER:
+    case BJB_WINDOW_BASE_NO_VIEW:

I suggest adding "break;" in every case even it doesn't do anything in that case.

The same as some previous patches. I forgot to mention this.
Comment 27 Iñigo Martínez 2017-05-16 08:31:32 UTC
IMHO, this way does help on identifying what those options really do. Without any break you know that their behaiour would be the same. If you add a break, you are suggesting that they are going to have a different behavior, at least sometime in the future.

Anyway, almost in every case that the compiler suggested that those missing should be added, I wondered myself if they should be removed, at least until they have some real behavior, though I didn't have any proof about what they actually do, so I kept those.
Comment 28 Jonathan Kang 2017-05-16 08:47:08 UTC
Review of attachment 351457 [details] [review]:

Looks good to me.
Comment 29 Jonathan Kang 2017-05-16 09:02:08 UTC
Review of attachment 351458 [details] [review]:

Looks good.
Comment 30 Jonathan Kang 2017-05-16 09:04:30 UTC
Review of attachment 351459 [details] [review]:

Looks good.
Comment 31 Jonathan Kang 2017-05-16 09:09:02 UTC
Review of attachment 351460 [details] [review]:

Looks good.
Comment 32 Jonathan Kang 2017-05-16 09:12:25 UTC
Review of attachment 351461 [details] [review]:

::: src/bjb-window-base.c
@@ +551,1 @@
+    case BJB_WINDOW_BASE_NO_VIEW:

Add "break;" in this case as described before.
Comment 33 Jonathan Kang 2017-05-16 09:29:33 UTC
Review of attachment 351462 [details] [review]:

Looks good.
Comment 34 Jonathan Kang 2017-05-16 09:30:17 UTC
Review of attachment 351456 [details] [review]:

::: src/bjb-empty-results-box.c
@@ +163,3 @@
       break;
 
+    case BJB_EMPTY_RESULTS_TYPE:

The same as what's mentioned previously. Add "break;".
Comment 35 Jonathan Kang 2017-05-16 09:30:45 UTC
Review of attachment 351463 [details] [review]:

Looks good.
Comment 36 Jonathan Kang 2017-05-16 09:39:07 UTC
Review of attachment 351464 [details] [review]:

::: src/bjb-app-menu.c
@@ +128,3 @@
   GError *error = NULL;
+
+  gtk_show_uri_on_window  (gtk_application_get_active_window (user_data),

one more useless space before "("

@@ +130,3 @@
+  gtk_show_uri_on_window  (gtk_application_get_active_window (user_data),
+                           "help:bijiben",
+                           gtk_get_current_event_time (),

use GDK_CURRENT_TIME macro directly to get the current time.
Comment 37 Iñigo Martínez 2017-05-16 11:24:01 UTC
Created attachment 351963 [details] [review]
Replaced gtk_get_current_event_time for GDK_CURRENT_TIME

Replaced gtk_get_current_event_time for GDK_CURRENT_TIME.
Comment 38 Iñigo Martínez 2017-05-16 11:24:40 UTC
(In reply to Jonathan Kang from comment #36)
> Review of attachment 351464 [details] [review] [review]:
> 
> ::: src/bjb-app-menu.c
> @@ +128,3 @@
>    GError *error = NULL;
> +
> +  gtk_show_uri_on_window  (gtk_application_get_active_window (user_data),
> 
> one more useless space before "("
> 
> @@ +130,3 @@
> +  gtk_show_uri_on_window  (gtk_application_get_active_window (user_data),
> +                           "help:bijiben",
> +                           gtk_get_current_event_time (),
> 
> use GDK_CURRENT_TIME macro directly to get the current time.

I have updated the patch regarding GDK_CURRENT_TIME. I don't get what do you mean about the useless space.
Comment 39 Jonathan Kang 2017-05-17 08:41:59 UTC
Review of attachment 351465 [details] [review]:

::: src/libbiji/editor/biji-webkit-editor.c
@@ +353,3 @@
     return FALSE;
 
+  gtk_show_uri_on_window (NULL,

WebKitWebView is an implementation of GtkWidget, so calling gtk_widget_get_toplevel to get the toplevel window should be enough.
Comment 40 Jonathan Kang 2017-05-17 08:44:55 UTC
(In reply to Iñigo Martínez from comment #38)
> 
> I have updated the patch regarding GDK_CURRENT_TIME. I don't get what do you
> mean about the useless space.

There are two spaces instead of one right after "gtk_show_uri_on_window".

It should be "gtk_show_uri_on_window ()" instead of
"gtk_show_uri_on_window  ()".
Comment 41 Iñigo Martínez 2017-05-17 09:41:23 UTC
Created attachment 352012 [details] [review]
replaced deprecated function

Fixed useless space.
Comment 42 Iñigo Martínez 2017-05-17 09:44:19 UTC
Created attachment 352013 [details] [review]
replaced deprecated function

Use gtk_widget_get_toplevel to get the top level window when showing an uri.
Comment 43 Iñigo Martínez 2017-05-17 09:46:38 UTC
(In reply to Jonathan Kang from comment #40)
> (In reply to Iñigo Martínez from comment #38)
> > 
> > I have updated the patch regarding GDK_CURRENT_TIME. I don't get what do you
> > mean about the useless space.
> 
> There are two spaces instead of one right after "gtk_show_uri_on_window".
> 
> It should be "gtk_show_uri_on_window ()" instead of
> "gtk_show_uri_on_window  ()".

I haven't seen it. I have fixed it now, thanks!

I have also changed the issue regarding gtk_widget_get_toplevel.
Comment 44 Jonathan Kang 2017-05-19 05:41:31 UTC
Review of attachment 352012 [details] [review]:

Looks good.
Comment 45 Jonathan Kang 2017-05-19 05:43:31 UTC
Review of attachment 352013 [details] [review]:

Looks good.
Comment 46 Jonathan Kang 2017-05-19 05:49:34 UTC
Comment on attachment 351451 [details] [review]
fixed editor set selection switch

Pushed to master as commit 5be656f70a2b02acf055112f2762ed6bf5fa7f46.
Comment 47 Jonathan Kang 2017-05-19 05:51:52 UTC
Comment on attachment 351452 [details] [review]
fixed toggle block format switch

Pushed to master as commit 533c0f6a7207a0a72083734c16ec603784c50804.
Comment 48 Jonathan Kang 2017-05-19 05:54:18 UTC
Comment on attachment 351453 [details] [review]
fixed mixed declarations and code

Pushed to master as commit f55eefec841486a448a9f29cae7baaf1440c0b33.
Comment 49 Jonathan Kang 2017-05-19 05:59:55 UTC
Comment on attachment 351454 [details] [review]
added not covered cases to switch

Pushed to master as commit 45ea3f63580cfbedb22ff781522c3f952078bb03.
Comment 50 Jonathan Kang 2017-05-22 08:28:58 UTC
Comment on attachment 351455 [details] [review]
add explicit code for cases covered by default

Pushed to master as commit 0461a0150d15d844faf0ad98c24f7fce05784a39.
Comment 51 Jonathan Kang 2017-05-22 08:30:45 UTC
Comment on attachment 351456 [details] [review]
add explicit code for missing case

Pushed to master as commit 6e781feb7ce06a13c3d618a0f661beb1f876b34e.
Comment 52 Jonathan Kang 2017-05-22 08:38:55 UTC
Comment on attachment 351457 [details] [review]
removed unused constructor code

Rebased with attachment#351460 [details] into one commit and pushed to master as commit 1b1abc27ba04998439eca3c394100ee293f99c0b.
Comment 53 Jonathan Kang 2017-05-22 08:39:13 UTC
Comment on attachment 351460 [details] [review]
removed unused constructor code

Rebased with attachment#351457 [details] into one commit and pushed to master as commit 1b1abc27ba04998439eca3c394100ee293f99c0b.
Comment 54 Jonathan Kang 2017-05-22 08:56:39 UTC
Comment on attachment 351458 [details] [review]
fixed const qualifier discard message

Pushed to master as commit 0d2a4292283d183e7841bae31cf9e1da5ff2061f.
Comment 55 Jonathan Kang 2017-05-22 09:00:10 UTC
Comment on attachment 351459 [details] [review]
stop using deprecated function

Pushed to master as commit 1f04ac55ca027e9a571ca91d79d67acd0726c056.
Comment 56 Jonathan Kang 2017-05-22 09:07:09 UTC
Comment on attachment 351461 [details] [review]
add explicit code for missing case

Pushed to master as commit 2b7386a485ea4bef81d5246d96e6f19f71784f0e.
Comment 57 Jonathan Kang 2017-05-22 09:19:09 UTC
Comment on attachment 351462 [details] [review]
replaced deprecated functions

Pushed to master as commit da294bd800e8fac886039993e12a8d0c0a1e2d53.
Comment 58 Jonathan Kang 2017-05-22 09:22:01 UTC
Comment on attachment 351463 [details] [review]
removed trailing whitespaces

Pushed to master as commit 79688a38ce6cd4ab876262a2102f97422a92104e.
Comment 59 Jonathan Kang 2017-05-22 09:48:31 UTC
Comment on attachment 352013 [details] [review]
replaced deprecated function

Rebased with attachment#352012 [details] into one commit and pushed to master as commit 5ff688e564ea2d17be4b4836307ce9c27f10c606.
Comment 60 Jonathan Kang 2017-05-22 09:48:37 UTC
Comment on attachment 352012 [details] [review]
replaced deprecated function

Rebased with attachment#352013 [details] into one commit and pushed to master as commit 5ff688e564ea2d17be4b4836307ce9c27f10c606.