I think your girlfriend could help you prevent gambling if she really care about you, but if not of course she can never help you from gambling. But if she really loves you, she can do everything just to make you quit from gambling.
Just an observation, I noticed that a gambler is always dominant over other members of the family, so I think it is hard for your girlfriend or wife to keep you away from gambling...Showing your affection to those addicts almost has no effect... All you can do is to advise them to stop, and let them realize it, coz if you impose it to them and you keep on insisting that they should stop, it might end up to a fight.
It maybe work but honestly its not the same what i do in my wife because she is addicted in gambling..
For me i always advice her but its not working instead I accompanied where she was gambling i saw that she is game in bingo or egames .
But honestly our money from i withdraw from a bank is the last money we can not make any other for our child we need money but she think that only gambling can save our lives.. while she was gamble she making a profit.. and i told her that better to withdraw it right now because its enough we can buy anything additional for our needs.
But she's not follow what i said instead she gamble again.. i cant prevent her because of addiction but after that all money are lost and we have no money to go home i told her that dont gamble again because you have no good future in gambling but she is angry what i say.. we are fighting in that time because we have no money to go home.. also for milk for our baby.. i repeated it and i explain it well that gambling has no good future if you are addicted .. and its a miracle that until now she not gamble again.. in that time i have bitcoin and emergency i can withdraw bitcoin instantly and use it to go home..
Its a miracle that she understand all what i saw before..
That's what I am saying,usually a gambler is more dominant than others, and that's the result, you ended up just joining her, so you really make this words came true " if you cannot beat them, join them "
The thing that happened to you and your wife is not really a miracle, I think it's more of a realization, it is a normal thing between couples, when they know that a thing could affect the relationship or could worsen their life or their family's life, they will sacrifice their urge.
I commend you for your comment bro, in what I see in the construction of your post, it is real... congrats that you made it.